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