X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libradsec.git;a=blobdiff_plain;f=Makefile.am;h=3636c3d1338637318668e4c332978476ed429972;hp=702e089f30fafb9f0bddf42a86951fe32b3df98b;hb=refs%2Fheads%2Fmaint-1.6;hpb=380b907aa703c3bbdb9a74255c4955afda028bb4 diff --git a/Makefile.am b/Makefile.am index 702e089..3636c3d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,13 +1,76 @@ -bin_PROGRAMS = radsecproxy +AUTOMAKE_OPTIONS = foreign -radsecproxy_SOURCES = radsecproxy.c \ - util.c \ - debug.c \ - radsecproxy.h \ - debug.h +if WANT_FTICKS +fticks_sources = fticks.c fticks.h fticks_hashmac.c fticks_hashmac.h +fticks_programs = radsecproxy-hash +radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o +endif -radsecproxy_CFLAGS = -g -Wall -pedantic -pthread @SSL_CFLAGS@ -radsecproxy_LDFLAGS = @SSL_LDFLAGS@ -radsecproxy_LDADD = @SSL_LIBS@ +if HAVE_DOCBOOK2X_MAN +GENMANPAGES = radsecproxy.conf.5 +endif -dist_sysconf_DATA = $(srcdir)/radsecproxy.conf-example +SUBDIRS = tests + + +sbin_PROGRAMS = radsecproxy +bin_PROGRAMS = radsecproxy-conf $(fticks_programs) +noinst_LIBRARIES = librsp.a + +radsecproxy_SOURCES = main.c + +librsp_a_SOURCES = \ + $(fticks_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_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\" +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@ + +dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 $(GENMANPAGES) + +EXTRA_DIST = \ + LICENSE THANKS \ + configure Makefile.in tests/Makefile.in \ + compile config.guess config.sub install-sh missing depcomp \ + radsecproxy.conf.5.xml radsecproxy.conf-example \ + tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh + +DISTCHECK_CONFIGURE_FLAGS = --enable-fticks + +#################### +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)