Add support for 'make check' and a dummy test.
[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         fticks.c \
27         radsecproxy.h \
28         tlscommon.h \
29         gconfig.h \
30         debug.h \
31         util.h \
32         list.h \
33         hash.h \
34         tlv11.h \
35         hostport.h \
36         radmsg.h \
37         udp.h \
38         tcp.h \
39         tls.h \
40         dtls.h \
41         fticks.h
42
43 catgconf_SOURCES = \
44         debug.c \
45         util.c \
46         gconfig.c \
47         catgconf.c
48
49 radsecproxy_CFLAGS = \
50         -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
51 radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
52 radsecproxy_LDADD = librsp.a @SSL_LIBS@
53
54 catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@
55 catgconf_LDFLAGS = @TARGET_LDFLAGS@
56
57 dist_man_MANS = radsecproxy.1 $(GENMANPAGES)
58 EXTRA_DIST = LICENSE THANKS radsecproxy.conf-example radsecproxy.conf.5.xml \
59         tools/naptr-eduroam.sh tools/radsec-dynsrv.sh tools/README
60
61 if HAVE_DOCBOOK2X_MAN
62 GENMANPAGES = radsecproxy.conf.5
63 endif
64
65 radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
66         docbook2x-man $<
67
68 # Build HTML version of radsecproxy.conf.5.  NOTE: Only tested with
69 # 'openjade' package installed on Ubuntu 9.10.
70 html: $(srcdir)/radsecproxy.conf.5.xml
71         -openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $<
72
73 clean-local:
74         -rm radsecproxy.conf.5