blob: 55c605da61e6be0c123d1dfbc6891b2bbf74f6ec (
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
|
# $FreeBSD$
PROG= ppp
MAN= ppp.8
SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \
iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \
proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \
tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
.if defined(NOSUID) || defined(PPP_NOSUID)
BINMODE=554
.else
BINMODE=4554
BINOWN= root
.endif
BINGRP= network
M4FLAGS=
LDADD= -lcrypt -lmd -lutil -lz
DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
.SUFFIXES: .8 .8.m4
.8.m4.8:
m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
.if defined(RELEASE_CRUNCH)
CFLAGS+=-DRELEASE_CRUNCH
.endif
.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
.endif
.if defined(NOKLDLOAD)
CFLAGS+=-DNOKLDLOAD
.endif
.if defined(NOINET6)
CFLAGS+=-DNOINET6
.endif
.if defined(NOALIAS) || defined(NONAT)
CFLAGS+=-DNONAT
.else
.if !defined(RELEASE_CRUNCH)
SRCS+= nat_cmd.c
LDADD+= -lalias
DPADD+= ${LIBALIAS}
.endif
.endif
.if defined(NOATM) || defined(RELEASE_CRUNCH)
CFLAGS+=-DNOATM
.else
SRCS+= atm.c
.endif
.if defined(NOSUID) || defined(PPP_NOSUID)
CFLAGS+=-DNOSUID
.else
.if !defined(RELEASE_CRUNCH)
SRCS+= id.c
.endif
.endif
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
DISTRIBUTION=crypto
CFLAGS+=-DHAVE_DES
SRCS+= chap_ms.c mppe.c
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.endif
.if defined(NORADIUS)
CFLAGS+=-DNORADIUS
.else
.if !defined(RELEASE_CRUNCH)
SRCS+= radius.c
LDADD+= -lradius
DPADD+= ${LIBRADIUS}
.endif
.endif
.if defined(NOI4B) || ${MACHINE_ARCH} != "i386"
CFLAGS+=-DNOI4B
.else
SRCS+= i4b.c
.endif
.if defined(NONETGRAPH)
CFLAGS+=-DNONETGRAPH
.else
SRCS+= ether.c
LDADD+= -lnetgraph
DPADD+= ${LIBNETGRAPH}
.endif
.if defined(RELEASE_CRUNCH)
CFLAGS+=-DNONAT -DNORADIUS -DNOI4B -DNOSUID
.endif
.include <bsd.prog.mk>
|