]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/radius/Makefile.am
pppd: Fix compilation on Linux when IPV6 is disabled (#360)
[ppp.git] / pppd / plugins / radius / Makefile.am
1 pppd_plugin_LTLIBRARIES = radius.la radattr.la radrealms.la
2 pppd_plugindir = $(PPPD_PLUGIN_DIR)
3
4 noinst_LTLIBRARIES = libradiusclient.la
5 dist_man8_MANS = pppd-radius.8 pppd-radattr.8
6 noinst_HEADERS = \
7     includes.h \
8     options.h \
9     pathnames.h \
10     radiusclient.h
11
12 EXTRA_FILES = \
13     COPYRIGHT
14
15 EXTRA_ETC = \
16     etc/dictionary \
17     etc/dictionary.ascend \
18     etc/dictionary.compat \
19     etc/dictionary.merit \
20     etc/dictionary.microsoft \
21     etc/issue \
22     etc/port-id-map \
23     etc/radiusclient.conf \
24     etc/radiusclient.conf.in \
25     etc/realms \
26     etc/servers
27
28 RADIUS_CPPFLAGS = -I${top_srcdir} -DRC_LOG_FACILITY=LOG_DAEMON
29 RADIUS_LDFLAGS = -module -avoid-version $(LDFLAGS)
30
31 radius_la_CPPFLAGS = $(RADIUS_CPPFLAGS)
32 radius_la_LDFLAGS = $(RADIUS_LDFLAGS)
33 radius_la_SOURCES = radius.c
34 radius_la_LIBADD = libradiusclient.la
35 if WITH_OPENSSL
36 radius_la_LIBADD += $(OPENSSL_LIBS)
37 endif
38
39 radattr_la_CPPFLAGS = $(RADIUS_CPPFLAGS)
40 radattr_la_LDFLAGS = $(RADIUS_LDFLAGS)
41 radattr_la_SOURCES = radattr.c
42
43 radrealms_la_CPPFLAGS = $(RADIUS_CPPFLAGS)
44 radrealms_la_LDFLAGS = $(RADIUS_LDFLAGS)
45 radrealms_la_SOURCES = radrealms.c
46
47 libradiusclient_la_SOURCES = \
48     avpair.c buildreq.c config.c dict.c ip_util.c \
49         clientid.c sendserver.c lock.c util.c
50 libradiusclient_la_CPPFLAGS = $(RADIUS_CPPFLAGS)
51
52 if !WITH_OPENSSL
53 libradiusclient_la_SOURCES += md5.c
54 else
55 if OPENSSL_HAVE_MD5
56 libradiusclient_la_SOURCES += md5.c
57 else
58 libradiusclient_la_CPPFLAGS += $(OPENSSL_INCLUDES)
59 endif
60 endif
61
62 EXTRA_DIST = \
63     $(EXTRA_FILES) \
64     $(EXTRA_ETC)