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