radsecproxy-1.6.5.
[radsecproxy.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 if WANT_FTICKS
4 fticks_sources = fticks.c fticks.h fticks_hashmac.c fticks_hashmac.h
5 fticks_programs = radsecproxy-hash
6 radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o
7 endif
8
9 if HAVE_DOCBOOK2X_MAN
10 GENMANPAGES = radsecproxy.conf.5
11 endif
12
13 SUBDIRS = tests
14
15
16 sbin_PROGRAMS = radsecproxy
17 bin_PROGRAMS = radsecproxy-conf $(fticks_programs)
18 noinst_LIBRARIES = librsp.a
19
20 radsecproxy_SOURCES = main.c
21
22 librsp_a_SOURCES = \
23         $(fticks_sources) \
24         debug.c debug.h \
25         dtls.c dtls.h \
26         gconfig.c gconfig.h \
27         hash.c hash.h \
28         hostport.c hostport.h \
29         list.c list.h \
30         radmsg.c radmsg.h \
31         radsecproxy.c radsecproxy.h \
32         tcp.c tcp.h \
33         tls.c tls.h \
34         tlscommon.c tlscommon.h \
35         tlv11.c tlv11.h \
36         udp.c udp.h \
37         util.c util.h
38
39 radsecproxy_conf_SOURCES = \
40         catgconf.c \
41         debug.c debug.h \
42         gconfig.c gconfig.h \
43         util.c util.h
44
45 ####################
46 AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
47 AM_CFLAGS = \
48         -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
49
50 radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
51 radsecproxy_LDADD = librsp.a @SSL_LIBS@
52
53 radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@
54
55 dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 $(GENMANPAGES)
56
57 EXTRA_DIST = \
58         LICENSE THANKS \
59         configure Makefile.in tests/Makefile.in \
60         compile config.guess config.sub install-sh missing depcomp \
61         radsecproxy.conf.5.xml radsecproxy.conf-example \
62         tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh
63
64 DISTCHECK_CONFIGURE_FLAGS = --enable-fticks
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)