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