| 1 |
sbin_PROGRAMS = pppd |
| 2 |
dist_man8_MANS = pppd.8 |
| 3 |
check_PROGRAMS = |
| 4 |
|
| 5 |
utest_chap_SOURCES = chap_ms.c utils.c crypto_ms.c |
| 6 |
utest_chap_CPPFLAGS = -DUNIT_TEST |
| 7 |
utest_chap_LDFLAGS = |
| 8 |
|
| 9 |
utest_peap_SOURCES = peap.c utils.c mppe.c |
| 10 |
utest_peap_CPPFLAGS = -DUNIT_TEST |
| 11 |
utest_peap_LDFLAGS = |
| 12 |
|
| 13 |
utest_crypto_SOURCES = crypto.c utils.c |
| 14 |
utest_crypto_CPPFLAGS = -DUNIT_TEST |
| 15 |
utest_crypto_LDFLAGS = |
| 16 |
|
| 17 |
utest_pppcrypt_SOURCES = crypto_ms.c |
| 18 |
utest_pppcrypt_CPPFLAGS = -DUNIT_TEST_MSCRYPTO |
| 19 |
utest_pppcrypt_LDFLAGS = |
| 20 |
|
| 21 |
check_PROGRAMS += utest_crypto |
| 22 |
|
| 23 |
utest_utils_SOURCES = utils.c utils_utest.c |
| 24 |
utest_utils_CPPFLAGS = -DUNIT_TEST |
| 25 |
utest_utils_LDFLAGS = |
| 26 |
|
| 27 |
check_PROGRAMS += utest_utils |
| 28 |
|
| 29 |
if WITH_SRP |
| 30 |
sbin_PROGRAMS += srp-entry |
| 31 |
endif |
| 32 |
|
| 33 |
pkgconfigdir = $(libdir)/pkgconfig |
| 34 |
pkgconfig_DATA = pppd.pc |
| 35 |
|
| 36 |
pppd_includedir = $(includedir)/pppd |
| 37 |
pppd_include_HEADERS = \ |
| 38 |
cbcp.h \ |
| 39 |
ccp.h \ |
| 40 |
chap.h \ |
| 41 |
chap_ms.h \ |
| 42 |
crypto.h \ |
| 43 |
crypto_ms.h \ |
| 44 |
eap.h \ |
| 45 |
ecp.h \ |
| 46 |
eui64.h \ |
| 47 |
fsm.h \ |
| 48 |
ipcp.h \ |
| 49 |
ipv6cp.h \ |
| 50 |
lcp.h \ |
| 51 |
magic.h \ |
| 52 |
mppe.h \ |
| 53 |
multilink.h \ |
| 54 |
pppd.h \ |
| 55 |
options.h \ |
| 56 |
pppdconf.h \ |
| 57 |
session.h \ |
| 58 |
upap.h |
| 59 |
|
| 60 |
# Headers to be distributed, but not installed in /usr/include/pppd |
| 61 |
noinst_HEADERS = \ |
| 62 |
chap-md5.h \ |
| 63 |
crypto-priv.h \ |
| 64 |
eap-tls.h \ |
| 65 |
pathnames.h \ |
| 66 |
peap.h \ |
| 67 |
pppd-private.h \ |
| 68 |
spinlock.h \ |
| 69 |
tls.h \ |
| 70 |
tdb.h |
| 71 |
|
| 72 |
pppd_SOURCES = \ |
| 73 |
auth.c \ |
| 74 |
ccp.c \ |
| 75 |
chap-md5.c \ |
| 76 |
chap.c \ |
| 77 |
demand.c \ |
| 78 |
eap.c \ |
| 79 |
ecp.c \ |
| 80 |
fsm.c \ |
| 81 |
ipcp.c \ |
| 82 |
lcp.c \ |
| 83 |
magic.c \ |
| 84 |
main.c \ |
| 85 |
options.c \ |
| 86 |
session.c \ |
| 87 |
tty.c \ |
| 88 |
upap.c \ |
| 89 |
utils.c |
| 90 |
|
| 91 |
# Things produced by the build process, to be installed but not distributed |
| 92 |
BUILT_SOURCE = \ |
| 93 |
pppdconf.h |
| 94 |
|
| 95 |
pppd_CPPFLAGS = -DSYSCONFDIR=\"${sysconfdir}\" -DPPPD_RUNTIME_DIR='"@PPPD_RUNTIME_DIR@"' -DPPPD_LOGFILE_DIR='"@PPPD_LOGFILE_DIR@"' |
| 96 |
pppd_LDFLAGS = |
| 97 |
pppd_LIBS = |
| 98 |
|
| 99 |
if PPP_WITH_SYSTEM_CA_PATH |
| 100 |
pppd_CPPFLAGS += -DSYSTEM_CA_PATH='"@SYSTEM_CA_PATH@"' |
| 101 |
endif |
| 102 |
|
| 103 |
if LINUX |
| 104 |
pppd_SOURCES += sys-linux.c |
| 105 |
noinst_HEADERS += termios_linux.h |
| 106 |
pppd_LIBS += $(CRYPT_LIBS) $(UTIL_LIBS) |
| 107 |
endif |
| 108 |
|
| 109 |
if SUNOS |
| 110 |
pppd_SOURCES += sys-solaris.c |
| 111 |
pppd_CPPFLAGS += -I${top_srcdir}/include |
| 112 |
pppd_LIBS += -lsocket -lnsl |
| 113 |
endif |
| 114 |
|
| 115 |
if PPP_WITH_CHAPMS |
| 116 |
pppd_SOURCES += chap_ms.c crypto_ms.c |
| 117 |
check_PROGRAMS += utest_chap |
| 118 |
check_PROGRAMS += utest_pppcrypt |
| 119 |
else |
| 120 |
if WITH_SRP |
| 121 |
pppd_SOURCES += crypto_ms.c |
| 122 |
check_PROGRAMS += utest_pppcrypt |
| 123 |
endif |
| 124 |
endif |
| 125 |
|
| 126 |
if PPP_WITH_CBCP |
| 127 |
pppd_SOURCES += cbcp.c |
| 128 |
endif |
| 129 |
|
| 130 |
if PPP_WITH_MPPE |
| 131 |
pppd_SOURCES += mppe.c |
| 132 |
endif |
| 133 |
|
| 134 |
if PPP_WITH_FILTER |
| 135 |
pppd_CPPFLAGS += $(PCAP_CFLAGS) |
| 136 |
pppd_LDFLAGS += $(PCAP_LDFLAGS) |
| 137 |
pppd_LIBS += $(PCAP_LIBS) |
| 138 |
endif |
| 139 |
|
| 140 |
if PPP_WITH_PLUGINS |
| 141 |
pppd_CPPFLAGS += -DPPPD_PLUGIN_DIR='"@PPPD_PLUGIN_DIR@"' |
| 142 |
pppd_LIBS += -ldl |
| 143 |
if LINUX |
| 144 |
pppd_LDFLAGS += -Wl,-E |
| 145 |
endif |
| 146 |
endif |
| 147 |
|
| 148 |
if PPP_WITH_MULTILINK |
| 149 |
pppd_SOURCES += multilink.c |
| 150 |
endif |
| 151 |
|
| 152 |
if PPP_WITH_TDB |
| 153 |
pppd_SOURCES += tdb.c spinlock.c |
| 154 |
endif |
| 155 |
|
| 156 |
if PPP_WITH_IPV6CP |
| 157 |
pppd_SOURCES += ipv6cp.c eui64.c |
| 158 |
endif |
| 159 |
|
| 160 |
if PPP_WITH_PAM |
| 161 |
pppd_CPPFLAGS += $(PAM_CFLAGS) |
| 162 |
pppd_LIBS += $(PAM_LIBS) -ldl |
| 163 |
pppd_LDFLAGS += $(PAM_LDFLAGS) |
| 164 |
endif |
| 165 |
|
| 166 |
if PPP_WITH_EAPTLS |
| 167 |
pppd_SOURCES += eap-tls.c tls.c |
| 168 |
else |
| 169 |
if PPP_WITH_PEAP |
| 170 |
pppd_SOURCES += tls.c |
| 171 |
endif |
| 172 |
endif |
| 173 |
|
| 174 |
if PPP_WITH_PEAP |
| 175 |
pppd_SOURCES += peap.c |
| 176 |
check_PROGRAMS += utest_peap |
| 177 |
endif |
| 178 |
|
| 179 |
noinst_LTLIBRARIES = libppp_crypto.la |
| 180 |
libppp_crypto_la_SOURCES=crypto.c ppp-md5.c ppp-md4.c ppp-sha1.c ppp-des.c |
| 181 |
|
| 182 |
if PPP_WITH_OPENSSL |
| 183 |
pppd_CPPFLAGS += $(OPENSSL_INCLUDES) |
| 184 |
|
| 185 |
libppp_crypto_la_CPPFLAGS=$(OPENSSL_INCLUDES) |
| 186 |
libppp_crypto_la_LDFLAGS=$(OPENSSL_LDFLAGS) |
| 187 |
libppp_crypto_la_LIBADD=$(OPENSSL_LIBS) |
| 188 |
endif |
| 189 |
|
| 190 |
utest_peap_LDADD = libppp_crypto.la |
| 191 |
utest_chap_LDADD = libppp_crypto.la |
| 192 |
utest_crypto_LDADD = libppp_crypto.la |
| 193 |
utest_pppcrypt_LDADD = libppp_crypto.la |
| 194 |
|
| 195 |
pppd_LIBS += libppp_crypto.la |
| 196 |
|
| 197 |
if WITH_SYSTEMD |
| 198 |
pppd_CPPFLAGS += $(SYSTEMD_CFLAGS) |
| 199 |
pppd_LIBS += $(SYSTEMD_LIBS) |
| 200 |
endif |
| 201 |
|
| 202 |
if WITH_SRP |
| 203 |
srp_entry_SOURCES = srp-entry.c |
| 204 |
srp_entry_CPPFLAGS = $(OPENSSL_INCLUDES) $(SRP_CFLAGS) |
| 205 |
srp_entry_LDADD = $(SRP_LIBS) $(OPENSSL_LIBS) |
| 206 |
srp_entry_LDFLAGS = $(OPENSSL_LDFLAGS) $(SRP_LDFLAGS) |
| 207 |
dist_srp_entry_MANS = srp-entry.8 |
| 208 |
|
| 209 |
pppd_CPPFLAGS += $(SRP_CFLAGS) |
| 210 |
pppd_LDFLAGS += $(SRP_LDFLAGS) |
| 211 |
pppd_LIBS += $(SRP_LIBS) |
| 212 |
endif |
| 213 |
|
| 214 |
pppd_LDADD = $(pppd_LIBS) |
| 215 |
|
| 216 |
EXTRA_DIST = \ |
| 217 |
ppp.pam \ |
| 218 |
srp-entry.8 |
| 219 |
|
| 220 |
TESTS = $(check_PROGRAMS) |
| 221 |
|