A DynamicLookupCommand exiting with 10 is treated like an empty server stanza.
[libradsec.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = tests
4
5 sbin_PROGRAMS = radsecproxy
6 bin_PROGRAMS = radsecproxy-conf
7 noinst_LIBRARIES = librsp.a
8
9 radsecproxy_SOURCES = main.c
10
11 librsp_a_SOURCES = \
12         debug.c debug.h \
13         dtls.c dtls.h \
14         gconfig.c gconfig.h \
15         hash.c hash.h \
16         hostport.c hostport.h \
17         list.c list.h \
18         radmsg.c radmsg.h \
19         radsecproxy.c radsecproxy.h \
20         tcp.c tcp.h \
21         tls.c tls.h \
22         tlscommon.c tlscommon.h \
23         tlv11.c tlv11.h \
24         udp.c udp.h \
25         util.c util.h
26
27 radsecproxy_conf_SOURCES = \
28         catgconf.c \
29         debug.c debug.h \
30         gconfig.c gconfig.h \
31         util.c util.h
32
33 ####################
34 AM_CFLAGS = \
35         -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
36
37 radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
38 radsecproxy_LDADD = librsp.a @SSL_LIBS@
39
40 radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@
41
42 ####################
43 if HAVE_DOCBOOK2X_MAN
44 GENMANPAGES = radsecproxy.conf.5
45 endif
46
47 dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 $(GENMANPAGES)
48
49 EXTRA_DIST = \
50         configure Makefile.in tests/Makefile.in \
51         compile config.guess config.sub install-sh missing depcomp
52 EXTRA_DIST += \
53         LICENSE THANKS \
54         radsecproxy.conf.5.xml radsecproxy.conf-example \
55         tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh
56
57 DISTCHECK_CONFIGURE_FLAGS = --enable-fticks
58
59 ####################
60 if WANT_FTICKS
61 librsp_a_SOURCES += fticks.c fticks.h fticks_hashmac.c fticks_hashmac.h
62 bin_PROGRAMS += radsecproxy-hash
63 radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o
64 endif
65
66 ####################
67 radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
68         docbook2x-man $<
69
70 # Build HTML version of radsecproxy.conf.5.  NOTE: Only tested with
71 # 'openjade' package installed on Ubuntu 9.10.
72 html: $(srcdir)/radsecproxy.conf.5.xml
73         -openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $<
74
75 clean-local:
76         -rm $(GENMANPAGES)