2067c5db4d43fdbd41b1ac9c6311dfd4cc796b0d
[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 if WANT_FTICKS
28 librsp_a_SOURCES += fticks.c fticks.h
29 endif
30
31 radsecproxy_conf_SOURCES = \
32         catgconf.c \
33         debug.c debug.h \
34         gconfig.c gconfig.h \
35         util.c util.h
36
37 librsp_a_CFLAGS = \
38         -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
39 librsp_a_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
40 radsecproxy_CFLAGS = $(librsp_a_CFLAGS)
41 radsecproxy_LDFLAGS = $(librsp_a_LDFLAGS)
42 radsecproxy_LDADD = librsp.a @SSL_LIBS@
43
44 catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@
45 catgconf_LDFLAGS = @TARGET_LDFLAGS@
46
47 dist_man_MANS = radsecproxy.1 $(GENMANPAGES)
48 EXTRA_DIST = \
49         LICENSE THANKS radsecproxy.conf-example radsecproxy.conf.5.xml \
50         tools/naptr-eduroam.sh tools/radsec-dynsrv.sh tools/README
51
52 if HAVE_DOCBOOK2X_MAN
53 GENMANPAGES = radsecproxy.conf.5
54 endif
55
56 radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
57         docbook2x-man $<
58
59 # Build HTML version of radsecproxy.conf.5.  NOTE: Only tested with
60 # 'openjade' package installed on Ubuntu 9.10.
61 html: $(srcdir)/radsecproxy.conf.5.xml
62         -openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $<
63
64 clean-local:
65         -rm radsecproxy.conf.5