X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=b9a9b8f06f767dedd49e26cc5b7cfc92f5417c53;hb=a9da84af5738e8eb5b8751cb4d6c00d1beb2810d;hp=a040ff54c10d7845ce7f90754317b5c6d29a0b98;hpb=30c9519e38b5c55b80a12911795c6c04a5fd4625;p=libradsec.git diff --git a/Makefile.am b/Makefile.am index a040ff5..b9a9b8f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,14 +1,76 @@ -sbin_PROGRAMS = radsecproxy +AUTOMAKE_OPTIONS = foreign -radsecproxy_SOURCES = radsecproxy.c \ - util.c \ - debug.c \ - radsecproxy.h \ - debug.h +SUBDIRS = tests -radsecproxy_CFLAGS = -g -Wall -pedantic -pthread @SSL_CFLAGS@ -radsecproxy_LDFLAGS = @SSL_LDFLAGS@ -radsecproxy_LDADD = @SSL_LIBS@ +sbin_PROGRAMS = radsecproxy +bin_PROGRAMS = radsecproxy-conf +noinst_LIBRARIES = librsp.a -dist_sysconf_DATA = $(srcdir)/radsecproxy.conf-example -dist_man_MANS = radsecproxy.1 radsecproxy.conf.5 +radsecproxy_SOURCES = main.c + +librsp_a_SOURCES = \ + debug.c debug.h \ + dtls.c dtls.h \ + gconfig.c gconfig.h \ + hash.c hash.h \ + hostport.c hostport.h \ + list.c list.h \ + radmsg.c radmsg.h \ + radsecproxy.c radsecproxy.h \ + tcp.c tcp.h \ + tls.c tls.h \ + tlscommon.c tlscommon.h \ + tlv11.c tlv11.h \ + udp.c udp.h \ + util.c util.h + +radsecproxy_conf_SOURCES = \ + catgconf.c \ + debug.c debug.h \ + gconfig.c gconfig.h \ + util.c util.h + +#################### +AM_CFLAGS = \ + -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@ + +radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@ +radsecproxy_LDADD = librsp.a @SSL_LIBS@ + +radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@ + +#################### +if HAVE_DOCBOOK2X_MAN +GENMANPAGES = radsecproxy.conf.5 +endif + +dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 $(GENMANPAGES) + +EXTRA_DIST = \ + configure Makefile.in tests/Makefile.in \ + compile config.guess config.sub install-sh missing depcomp +EXTRA_DIST += \ + LICENSE THANKS \ + radsecproxy.conf.5.xml radsecproxy.conf-example \ + tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh + +DISTCHECK_CONFIGURE_FLAGS = --enable-fticks + +#################### +if WANT_FTICKS +librsp_a_SOURCES += fticks.c fticks.h fticks_hashmac.c fticks_hashmac.h +bin_PROGRAMS += radsecproxy-hash +radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o +endif + +#################### +radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml + docbook2x-man $< + +# Build HTML version of radsecproxy.conf.5. NOTE: Only tested with +# 'openjade' package installed on Ubuntu 9.10. +html: $(srcdir)/radsecproxy.conf.5.xml + -openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $< + +clean-local: + -rm $(GENMANPAGES)