summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-09-29 11:22:43 +0200
committerLinus Nordberg <linus@nordu.net>2011-09-29 11:22:43 +0200
commit35d05b2ded37fda1aec6e7c144c07548081b9553 (patch)
tree834167fa9c30fc205e69c4e588879e073fe5803c /Makefile.am
parent4806ddac9fc1dd243f9297c031689c23be6ee8b0 (diff)
Build radsecproxy-hash.
Reorganize Makefile.am and make specific CFLAGS general (AM_CFLAGS).
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am27
1 files 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)