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