summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 5ae77208aed83a58d659a804332b7767e5767615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## Copyright (c) 2006-2010, UNINETT AS
## Copyright (c) 2010-2012,2016, NORDUnet A/S
## See LICENSE for licensing information.

AUTOMAKE_OPTIONS = foreign

if HAVE_DOCBOOK2X_MAN
GENMANPAGES = radsecproxy.conf.5
endif

SUBDIRS = tests

sbin_PROGRAMS = radsecproxy
bin_PROGRAMS = radsecproxy-conf radsecproxy-hash
noinst_LIBRARIES = librsp.a

radsecproxy_SOURCES = main.c

librsp_a_SOURCES = \
	debug.c debug.h \
	dtls.c dtls.h \
	fticks.c fticks.h fticks_hashmac.c fticks_hashmac.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

radsecproxy_conf_SOURCES = \
	catgconf.c \
	debug.c debug.h \
	gconfig.c gconfig.h \
	util.c util.h

####################
AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
AM_CFLAGS = \
	-g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@

radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@
radsecproxy_LDADD = librsp.a @SSL_LIBS@
radsecproxy_conf_LDFLAGS = @TARGET_LDFLAGS@
radsecproxy_hash_LDADD = fticks_hashmac.o hash.o list.o

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

EXTRA_DIST = \
	LICENSE THANKS \
	configure Makefile.in tests/Makefile.in \
	compile config.guess config.sub install-sh missing depcomp \
	radsecproxy.conf.5.xml radsecproxy.conf-example \
	tools/README tools/naptr-eduroam.sh tools/radsec-dynsrv.sh

####################
radsecproxy.conf.5: $(srcdir)/radsecproxy.conf.5.xml
	docbook2x-man $<

html: radsecproxy.html radsecproxy-hash.html radsecproxy.conf.html

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

clean-local:
	-rm $(GENMANPAGES)