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