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