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