ppp(8): Raise WARNS to 6.
[dragonfly.git] / usr.sbin / ppp / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/usr.sbin/ppp/Makefile,v 1.73.2.8 2002/09/01 02:12:22 brian Exp $
2
3PROG= ppp
4MAN= ppp.8
5SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
6 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \
7 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
8 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \
9 proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \
10 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
984263bc
MD
11
12.if defined(NOSUID) || defined(PPP_NOSUID)
13BINMODE=554
14.else
15BINMODE=4554
16BINOWN= root
17.endif
18BINGRP= network
19M4FLAGS=
20
21LDADD= -lcrypt -lmd -lutil -lz
22DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
23
24.SUFFIXES: .8 .8.m4
25
26.8.m4.8:
27 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
28
29CLEANFILES= ppp.8
30
31.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
32CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
33.endif
34
35.if defined(NOKLDLOAD)
36CFLAGS+=-DNOKLDLOAD
37.endif
38
39.if defined(NOINET6)
40CFLAGS+=-DNOINET6
41.endif
42
43.if defined(NOALIAS) || defined(NONAT)
44CFLAGS+=-DNONAT
45.else
46SRCS+= nat_cmd.c
47LDADD+= -lalias
48DPADD+= ${LIBALIAS}
49.endif
50
51.if defined(NOATM)
52CFLAGS+=-DNOATM
53.else
54SRCS+= atm.c
55.endif
56
57.if defined(NOSUID) || defined(PPP_NOSUID)
58CFLAGS+=-DNOSUID
59.else
60SRCS+= id.c
61.endif
62
cecff5c1 63.if !exists(${.CURDIR}/../../secure) || defined(NO_CRYPT) || defined(NO_OPENSSL) || defined(NODES)
984263bc
MD
64CFLAGS+=-DNODES
65.else
984263bc
MD
66SRCS+= chap_ms.c mppe.c
67LDADD+= -lcrypto
68DPADD+= ${LIBCRYPTO}
69.endif
70
71.if defined(NORADIUS)
72CFLAGS+=-DNORADIUS
73.else
74SRCS+= radius.c
75LDADD+= -lradius
76DPADD+= ${LIBRADIUS}
77.endif
78
f0f93f7f
NA
79.if defined(WANT_NETGRAPH7)
80CFLAGS+=-DWANT_NETGRAPH7
81.endif
82
984263bc
MD
83.if defined(NONETGRAPH)
84CFLAGS+=-DNONETGRAPH
85.else
86SRCS+= ether.c
87LDADD+= -lnetgraph
88DPADD+= ${LIBNETGRAPH}
89.if defined(EXPERIMENTAL_NETGRAPH)
90CFLAGS+=-DEXPERIMENTAL_NETGRAPH
91SRCS+= netgraph.c
92.endif
93.endif
94
95.include <bsd.prog.mk>