]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - usr.sbin/ppp/Makefile
Update llvm/clang to r241361.
[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
25 .if ${MK_ATM} == "no"
26 PPP_NO_ATM=
27 .endif
28 .if ${MK_NETGRAPH} == "no"
29 PPP_NO_NETGRAPH=
30 .endif
31 .if ${MK_PAM_SUPPORT} == "no"
32 PPP_NO_PAM=
33 .endif
34 .if ${MK_RADIUS_SUPPORT} == "no"
35 PPP_NO_RADIUS=
36 .endif
37
38 .if defined(PPP_NO_SUID)
39 BINMODE=554
40 .else
41 BINMODE=4554
42 BINOWN= root
43 .endif
44 BINGRP= network
45 M4FLAGS=
46
47 LIBADD= md util z
48
49 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
50 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
51 .endif
52
53 .if defined(PPP_NO_KLDLOAD)
54 CFLAGS+=-DNOKLDLOAD
55 .endif
56
57 .if ${MK_INET6_SUPPORT} == "no"
58 CFLAGS+=-DNOINET6
59 .endif
60
61 .if defined(PPP_NO_NAT)
62 CFLAGS+=-DNONAT
63 .else
64 SRCS+=  nat_cmd.c
65 LIBADD+=        alias
66 .endif
67
68 .if defined(PPP_NO_ATM)
69 CFLAGS+=-DNOATM
70 .else
71 SRCS+=  atm.c
72 .endif
73
74 .if defined(PPP_NO_SUID)
75 CFLAGS+=-DNOSUID
76 .else
77 SRCS+=  id.c
78 .endif
79
80 .if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES)
81 CFLAGS+=-DNODES
82 .else
83 SRCS+=  chap_ms.c mppe.c
84 LIBADD+=        crypto
85 .endif
86
87 .if defined(PPP_NO_RADIUS)
88 CFLAGS+=-DNORADIUS
89 .else
90 SRCS+=  radius.c
91 LIBADD+=        radius
92 .endif
93
94 .if defined(PPP_NO_NETGRAPH)
95 CFLAGS+=-DNONETGRAPH
96 .else
97 SRCS+=  ether.c
98 LIBADD+=        netgraph
99 .if defined(EXPERIMENTAL_NETGRAPH)
100 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
101 SRCS+=  netgraph.c
102 .endif
103 .endif
104
105 .if defined(PPP_NO_PAM)
106 CFLAGS+=-DNOPAM
107 .else
108 LIBADD+=        pam
109 .endif
110
111 .include <bsd.prog.mk>