Makefile.am 1.86 KB
Newer Older
1 2
AUTOMAKE_OPTIONS = foreign

3 4 5 6 7 8 9 10 11 12
if WANT_FTICKS
fticks_sources = fticks.c fticks.h fticks_hashmac.c fticks_hashmac.h
fticks_programs = radsecproxy-hash
radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o
endif

if HAVE_DOCBOOK2X_MAN
GENMANPAGES = radsecproxy.conf.5
endif

13 14
SUBDIRS = tests

15

kolla's avatar
kolla committed
16
sbin_PROGRAMS = radsecproxy
17
bin_PROGRAMS = radsecproxy-conf $(fticks_programs)
Linus Nordberg's avatar
Linus Nordberg committed
18
noinst_LIBRARIES = librsp.a
venaas's avatar
venaas committed
19

Linus Nordberg's avatar
Linus Nordberg committed
20 21
radsecproxy_SOURCES = main.c

22
librsp_a_SOURCES = \
23
	$(fticks_sources) \
24 25 26 27 28 29 30 31 32 33 34 35 36 37
	debug.c debug.h \
	dtls.c dtls.h \
	gconfig.c gconfig.h \
	hash.c hash.h \
	hostport.c hostport.h \
	list.c list.h \
	radmsg.c radmsg.h \
	radsecproxy.c radsecproxy.h \
	tcp.c tcp.h \
	tls.c tls.h \
	tlscommon.c tlscommon.h \
	tlv11.c tlv11.h \
	udp.c udp.h \
	util.c util.h
38

39
radsecproxy_conf_SOURCES = \
40 41 42 43
	catgconf.c \
	debug.c debug.h \
	gconfig.c gconfig.h \
	util.c util.h
kolla's avatar
kolla committed
44

Linus Nordberg's avatar
Linus Nordberg committed
45
####################
46
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
Linus Nordberg's avatar
Linus Nordberg committed
47
AM_CFLAGS = \
48
	-g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
Linus Nordberg's avatar
Linus Nordberg committed
49

50
radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
51
radsecproxy_LDADD = librsp.a @SSL_LIBS@
venaas's avatar
venaas committed
52

53
radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@
kolla's avatar
kolla committed
54

55
dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 $(GENMANPAGES)
56

Linus Nordberg's avatar
Linus Nordberg committed
57
EXTRA_DIST = \
Linus Nordberg's avatar
Linus Nordberg committed
58
	LICENSE THANKS \
59 60
	configure Makefile.in tests/Makefile.in \
	compile config.guess config.sub install-sh missing depcomp \
Linus Nordberg's avatar
Linus Nordberg committed
61 62
	radsecproxy.conf.5.xml radsecproxy.conf-example \
	tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh
63

64 65
DISTCHECK_CONFIGURE_FLAGS = --enable-fticks

Linus Nordberg's avatar
Linus Nordberg committed
66
####################
67
radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
68 69
	docbook2x-man $<

70 71 72 73 74
# Build HTML version of radsecproxy.conf.5.  NOTE: Only tested with
# 'openjade' package installed on Ubuntu 9.10.
html: $(srcdir)/radsecproxy.conf.5.xml
	-openjade -E2000 -t sgml-raw -d /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl -o radsecproxy.conf.html $<

75
clean-local:
Linus Nordberg's avatar
Linus Nordberg committed
76
	-rm $(GENMANPAGES)