blob: 94197fdaa24afcbc5ede4ed87a220a7a8acecd70 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
|
sbin_PROGRAMS = pppd
dist_man8_MANS = pppd.8
check_PROGRAMS =
utest_chap_SOURCES = chap_ms.c pppcrypt.c utils.c
utest_chap_CPPFLAGS = -DUNIT_TEST
utest_chap_LDFLAGS =
utest_peap_SOURCES = peap.c utils.c mppe.c
utest_peap_CPPFLAGS = -DUNIT_TEST -I${top_srcdir}/include
utest_peap_LDFLAGS =
if WITH_SRP
sbin_PROGRAMS += srp-entry
dist_man8_MANS += srp-entry.8
endif
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pppd.pc
pppd_includedir = $(includedir)/pppd
pppd_include_HEADERS = \
cbcp.h \
ccp.h \
chap-md5.h \
chap_ms.h \
chap-new.h \
eap.h \
eap-tls.h \
ecp.h \
eui64.h \
fsm.h \
ipcp.h \
ipv6cp.h \
lcp.h \
magic.h \
md4.h \
md5.h \
mppe.h \
patchlevel.h \
pathnames.h \
peap.h \
pppcrypt.h \
pppd.h \
pppdconf.h \
session.h \
sha1.h \
spinlock.h \
tls.h \
tdb.h \
upap.h
pppd_SOURCES = \
auth.c \
ccp.c \
chap-md5.c \
chap-new.c \
demand.c \
eap.c \
ecp.c \
fsm.c \
ipcp.c \
lcp.c \
magic.c \
main.c \
options.c \
session.c \
tty.c \
upap.c \
utils.c
pppd_CPPFLAGS = -I${top_srcdir}/include -DPPPD_RUNTIME_DIR='"@PPPD_RUNTIME_DIR@"' -DPPPD_LOGFILE_DIR='"@PPPD_LOGFILE_DIR@"'
pppd_LDFLAGS =
pppd_LIBS =
if LINUX
pppd_SOURCES += sys-linux.c termios_linux.h
pppd_LIBS += $(CRYPT_LIBS) $(UTIL_LIBS)
endif
if SUNOS
pppd_SOURCES += sys-solaris.c
pppd_LIBS += -lsocket -lnsl
endif
if PPP_WITH_CHAPMS
pppd_SOURCES += chap_ms.c
pppd_SOURCES += pppcrypt.c
check_PROGRAMS += utest_chap
else
if WITH_SRP
pppd_SOURCES += pppcrypt.c
endif
endif
if WITH_CBCP
pppd_SOURCES += cbcp.c
endif
if PPP_WITH_MPPE
pppd_SOURCES += mppe.c
endif
if WITH_FILTER
pppd_CPPFLAGS += $(PCAP_CFLAGS)
pppd_LDFLAGS += $(PCAP_LDFLAGS)
pppd_LIBS += $(PCAP_LIBS)
endif
if WITH_PLUGINS
pppd_CPPFLAGS += -DPPPD_PLUGIN_DIR='"@PPPD_PLUGIN_DIR@"'
pppd_LIBS += -ldl
if LINUX
pppd_LDFLAGS += -Wl,-E
endif
endif
if WITH_MULTILINK
pppd_SOURCES += multilink.c
endif
if WITH_TDB
pppd_SOURCES += tdb.c spinlock.c
endif
if PPP_WITH_IPV6CP
pppd_SOURCES += ipv6cp.c eui64.c
endif
if WITH_PAM
pppd_LIBS += -lpam -ldl
endif
if WITH_EAPTLS
pppd_SOURCES += eap-tls.c tls.c
else
if WITH_PEAP
pppd_SOURCES += tls.c
endif
endif
if WITH_PEAP
pppd_SOURCES += peap.c
check_PROGRAMS += utest_peap
endif
noinst_LTLIBRARIES = libppp_crypt.la
libppp_crypt_la_SOURCES=
if !WITH_OPENSSL
libppp_crypt_la_SOURCES += md4.c md5.c sha1.c
else
libppp_crypt_la_CPPFLAGS=$(OPENSSL_INCLUDES)
libppp_crypt_la_LDFLAGS=$(OPENSSL_LDFLAGS)
libppp_crypt_la_LIBADD=$(OPENSSL_LIBS)
if !OPENSSL_HAVE_SHA
libppp_crypt_la_SOURCES += sha1.c
endif
if !OPENSSL_HAVE_MD5
libppp_crypt_la_SOURCES += md5.c
endif
if !OPENSSL_HAVE_MD4
libppp_crypt_la_SOURCES += md4.c
endif
endif
utest_peap_LDADD = libppp_crypt.la
utest_chap_LDADD = libppp_crypt.la
pppd_LIBS += libppp_crypt.la
if WITH_SYSTEMD
pppd_LIBS += -lsystemd
endif
if WITH_SRP
srp_entry_SOURCES = srp-entry.c
srp_entry_CPPFLAGS = $(OPENSSL_INCLUDES) $(SRP_CFLAGS)
srp_entry_LDADD = $(SRP_LIBS) $(OPENSSL_LIBS)
srp_entry_LDFLAGS = $(OPENSSL_LDFLAGS) $(SRP_LDFLAGS)
pppd_CPPFLAGS += $(SRP_CFLAGS)
pppd_LDFLAGS += $(SRP_LDFLAGS)
pppd_LIBS += $(SRP_LIBS)
endif
pppd_LDADD = $(pppd_LIBS)
EXTRA_DIST = \
ppp.pam
TESTS = $(check_PROGRAMS)
|