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