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