Add --enable-fticks to configure.
[radsecproxy.git] / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 SUBDIRS = tests
4
5 sbin_PROGRAMS = radsecproxy
6 bin_PROGRAMS = catgconf
7 noinst_LIBRARIES = librsp.a
8
9 radsecproxy_SOURCES = main.c
10
11 librsp_a_SOURCES = \
12         radsecproxy.c \
13         tlscommon.c \
14         gconfig.c \
15         util.c \
16         debug.c \
17         list.c \
18         hash.c \
19         tlv11.c \
20         hostport.c \
21         radmsg.c \
22         udp.c \
23         tcp.c \
24         tls.c \
25         dtls.c
26
27 if WANT_FTICKS
28 librsp_a_SOURCES += fticks.c
29 endif
30
31 catgconf_SOURCES = \
32         debug.c \
33         util.c \
34         gconfig.c \
35         catgconf.c
36
37 radsecproxy_CFLAGS = \
38         -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
39 radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
40 radsecproxy_LDADD = librsp.a @SSL_LIBS@
41
42 catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@
43 catgconf_LDFLAGS = @TARGET_LDFLAGS@
44
45 dist_man_MANS = radsecproxy.1 $(GENMANPAGES)
46 EXTRA_DIST = \
47         LICENSE THANKS radsecproxy.conf-example radsecproxy.conf.5.xml \
48         tools/naptr-eduroam.sh tools/radsec-dynsrv.sh tools/README
49
50 if HAVE_DOCBOOK2X_MAN
51 GENMANPAGES = radsecproxy.conf.5
52 endif
53
54 radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
55         docbook2x-man $<
56
57 # Build HTML version of radsecproxy.conf.5.  NOTE: Only tested with
58 # 'openjade' package installed on Ubuntu 9.10.
59 html: $(srcdir)/radsecproxy.conf.5.xml
60         -openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $<
61
62 clean-local:
63         -rm radsecproxy.conf.5