Makefile.am 1.73 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

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

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

21
librsp_a_SOURCES = \
22
	$(fticks_sources) \
23 24 25 26 27 28 29 30 31 32 33 34 35 36
	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
37

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

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

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

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

54
dist_man_MANS = radsecproxy.1 radsecproxy-hash.1 radsecproxy.conf.5
55

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

63 64
DISTCHECK_CONFIGURE_FLAGS = --enable-fticks

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

Linus Nordberg's avatar
Linus Nordberg committed
69 70 71 72 73 74
html: radsecproxy.html radsecproxy-hash.html radsecproxy.conf.html

%.html: %.1
	groff -mandoc -Thtml $< >$@
%.html: %.5
	groff -mandoc -Thtml $< >$@
75

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