]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/ppp/Makefile
Fix multiple vulnerabilities in bzip2.
[FreeBSD/FreeBSD.git] / usr.sbin / ppp / Makefile
1 # $FreeBSD$
2
3 .include <src.opts.mk>
4
5 PROG=   ppp
6 MAN=    ppp.8
7 SRCS=   acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
8         command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \
9         iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
10         mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \
11         proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \
12         tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
13 WARNS?= 3
14 .if defined(RELEASE_CRUNCH)
15 CFLAGS+=-DRELEASE_CRUNCH
16 PPP_NO_ATM=
17 PPP_NO_DES=
18 PPP_NO_KLDLOAD=
19 PPP_NO_NAT=
20 PPP_NO_PAM=
21 PPP_NO_RADIUS=
22 PPP_NO_SUID=
23 .endif
24 CONFS=  ppp.conf
25 CONFSDIR=       ${CONFDIR}/ppp
26 CONFSMODE=      600
27
28 .if ${MK_ATM} == "no"
29 PPP_NO_ATM=
30 .endif
31 .if ${MK_NETGRAPH} == "no"
32 PPP_NO_NETGRAPH=
33 .endif
34 .if ${MK_PAM_SUPPORT} == "no"
35 PPP_NO_PAM=
36 .endif
37 .if ${MK_RADIUS_SUPPORT} == "no"
38 PPP_NO_RADIUS=
39 .endif
40
41 .if defined(PPP_NO_SUID)
42 BINMODE=554
43 .else
44 BINMODE=4554
45 BINOWN= root
46 .endif
47 BINGRP= network
48 M4FLAGS=
49
50 LIBADD= md util z
51
52 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
53 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
54 .endif
55
56 .if defined(PPP_NO_KLDLOAD)
57 CFLAGS+=-DNOKLDLOAD
58 .endif
59
60 .if ${MK_INET6_SUPPORT} == "no"
61 CFLAGS+=-DNOINET6
62 .endif
63
64 .if defined(PPP_NO_NAT)
65 CFLAGS+=-DNONAT
66 .else
67 SRCS+=  nat_cmd.c
68 LIBADD+=        alias
69 .endif
70
71 .if defined(PPP_NO_ATM)
72 CFLAGS+=-DNOATM
73 .else
74 SRCS+=  atm.c
75 .endif
76
77 .if defined(PPP_NO_SUID)
78 CFLAGS+=-DNOSUID
79 .else
80 SRCS+=  id.c
81 .endif
82
83 .if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES)
84 CFLAGS+=-DNODES
85 .else
86 SRCS+=  chap_ms.c mppe.c
87 LIBADD+=        crypto
88 .endif
89
90 .if defined(PPP_NO_RADIUS)
91 CFLAGS+=-DNORADIUS
92 .else
93 SRCS+=  radius.c
94 LIBADD+=        radius
95 .endif
96
97 .if defined(PPP_NO_NETGRAPH)
98 CFLAGS+=-DNONETGRAPH
99 .else
100 SRCS+=  ether.c
101 LIBADD+=        netgraph
102 .if defined(EXPERIMENTAL_NETGRAPH)
103 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
104 SRCS+=  netgraph.c
105 .endif
106 .endif
107
108 .if defined(PPP_NO_PAM)
109 CFLAGS+=-DNOPAM
110 LIBADD+=        crypt
111 .else
112 LIBADD+=        pam
113 .endif
114
115 .include <bsd.prog.mk>