ppp(8): Raise WARNS to 6.
[dragonfly.git] / usr.sbin / ppp / Makefile
1 # $FreeBSD: src/usr.sbin/ppp/Makefile,v 1.73.2.8 2002/09/01 02:12:22 brian Exp $
2
3 PROG=   ppp
4 MAN=    ppp.8
5 SRCS=   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
11
12 .if defined(NOSUID) || defined(PPP_NOSUID)
13 BINMODE=554
14 .else
15 BINMODE=4554
16 BINOWN= root
17 .endif
18 BINGRP= network
19 M4FLAGS=
20
21 LDADD= -lcrypt -lmd -lutil -lz
22 DPADD=  ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
23
24 .SUFFIXES: .8 .8.m4
25
26 .8.m4.8:
27         m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
28
29 CLEANFILES= ppp.8
30
31 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
32 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
33 .endif
34
35 .if defined(NOKLDLOAD)
36 CFLAGS+=-DNOKLDLOAD
37 .endif
38
39 .if defined(NOINET6)
40 CFLAGS+=-DNOINET6
41 .endif
42
43 .if defined(NOALIAS) || defined(NONAT)
44 CFLAGS+=-DNONAT
45 .else
46 SRCS+=  nat_cmd.c
47 LDADD+= -lalias
48 DPADD+= ${LIBALIAS}
49 .endif
50
51 .if defined(NOATM)
52 CFLAGS+=-DNOATM
53 .else
54 SRCS+=  atm.c
55 .endif
56
57 .if defined(NOSUID) || defined(PPP_NOSUID)
58 CFLAGS+=-DNOSUID
59 .else
60 SRCS+=  id.c
61 .endif
62
63 .if !exists(${.CURDIR}/../../secure) || defined(NO_CRYPT) || defined(NO_OPENSSL) || defined(NODES)
64 CFLAGS+=-DNODES
65 .else
66 SRCS+=  chap_ms.c mppe.c
67 LDADD+= -lcrypto
68 DPADD+= ${LIBCRYPTO}
69 .endif
70
71 .if defined(NORADIUS)
72 CFLAGS+=-DNORADIUS
73 .else
74 SRCS+=  radius.c
75 LDADD+= -lradius
76 DPADD+= ${LIBRADIUS}
77 .endif
78
79 .if defined(WANT_NETGRAPH7)
80 CFLAGS+=-DWANT_NETGRAPH7
81 .endif
82
83 .if defined(NONETGRAPH)
84 CFLAGS+=-DNONETGRAPH
85 .else
86 SRCS+=  ether.c
87 LDADD+= -lnetgraph
88 DPADD+= ${LIBNETGRAPH}
89 .if defined(EXPERIMENTAL_NETGRAPH)
90 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
91 SRCS+=  netgraph.c
92 .endif
93 .endif
94
95 .include <bsd.prog.mk>