From 35d05b2ded37fda1aec6e7c144c07548081b9553 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Thu, 29 Sep 2011 11:22:43 +0200 Subject: Build radsecproxy-hash. Reorganize Makefile.am and make specific CFLAGS general (AM_CFLAGS). --- Makefile.am | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9f864e2..d9f7154 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,25 +24,26 @@ librsp_a_SOURCES = \ udp.c udp.h \ util.c util.h -if WANT_FTICKS -librsp_a_SOURCES += fticks.c fticks.h -endif - radsecproxy_conf_SOURCES = \ catgconf.c \ debug.c debug.h \ gconfig.c gconfig.h \ util.c util.h -librsp_a_CFLAGS = \ +#################### +AM_CFLAGS = \ -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@ -radsecproxy_CFLAGS = $(librsp_a_CFLAGS) + radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@ radsecproxy_LDADD = librsp.a @SSL_LIBS@ -radsecproxy_conf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@ radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@ +#################### +if HAVE_DOCBOOK2X_MAN +GENMANPAGES = radsecproxy.conf.5 +endif + dist_man_MANS = radsecproxy.1 $(GENMANPAGES) EXTRA_DIST = \ @@ -55,10 +56,16 @@ EXTRA_DIST += \ DISTCHECK_CONFIGURE_FLAGS = --enable-fticks -if HAVE_DOCBOOK2X_MAN -GENMANPAGES = radsecproxy.conf.5 +#################### +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 +#radsecproxy_hash_LDFLAGS = @TARGET_LDFLAGS@ +dist_man_MANS += radsecproxy-hash.1 endif +#################### radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml docbook2x-man $< @@ -68,4 +75,4 @@ 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 radsecproxy.conf.5 + -rm $(GENMANPAGES) -- cgit v1.1