Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[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.2 2003/06/17 04:30:00 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 .if defined(RELEASE_CRUNCH)
13 CFLAGS+=-DRELEASE_CRUNCH
14 NOATM=          true
15 NOI4B=          true
16 NONAT=          true
17 NOKLDLOAD=      true
18 NORADIUS=       true
19 NOSECURE=       true
20 NOSUID=         true
21 .endif
22
23 .if defined(NOSUID) || defined(PPP_NOSUID)
24 BINMODE=554
25 .else
26 BINMODE=4554
27 BINOWN= root
28 .endif
29 BINGRP= network
30 M4FLAGS=
31
32 LDADD= -lcrypt -lmd -lutil -lz
33 DPADD=  ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
34
35 .SUFFIXES: .8 .8.m4
36
37 .8.m4.8:
38         m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
39
40 CLEANFILES= ppp.8
41
42 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
43 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
44 .endif
45
46 .if defined(NOKLDLOAD)
47 CFLAGS+=-DNOKLDLOAD
48 .endif
49
50 .if defined(NOINET6)
51 CFLAGS+=-DNOINET6
52 .endif
53
54 .if defined(NOALIAS) || defined(NONAT)
55 CFLAGS+=-DNONAT
56 .else
57 SRCS+=  nat_cmd.c
58 LDADD+= -lalias
59 DPADD+= ${LIBALIAS}
60 .endif
61
62 .if defined(NOATM)
63 CFLAGS+=-DNOATM
64 .else
65 SRCS+=  atm.c
66 .endif
67
68 .if defined(NOSUID) || defined(PPP_NOSUID)
69 CFLAGS+=-DNOSUID
70 .else
71 SRCS+=  id.c
72 .endif
73
74 .if !exists(${.CURDIR}/../../secure) || defined(NOCRYPT) || defined(NOSECURE) || defined(NO_OPENSSL) || defined(NODES)
75 CFLAGS+=-DNODES
76 .else
77 DISTRIBUTION=crypto
78 SRCS+=  chap_ms.c mppe.c
79 LDADD+= -lcrypto
80 DPADD+= ${LIBCRYPTO}
81 .endif
82
83 .if defined(NORADIUS)
84 CFLAGS+=-DNORADIUS
85 .else
86 SRCS+=  radius.c
87 LDADD+= -lradius
88 DPADD+= ${LIBRADIUS}
89 .endif
90
91 .if defined(NOI4B) || ${MACHINE_ARCH} != "i386"
92 CFLAGS+=-DNOI4B
93 .else
94 SRCS+=  i4b.c
95 .endif
96
97 .if defined(NONETGRAPH)
98 CFLAGS+=-DNONETGRAPH
99 .else
100 SRCS+=  ether.c
101 LDADD+= -lnetgraph
102 DPADD+= ${LIBNETGRAPH}
103 .if defined(EXPERIMENTAL_NETGRAPH)
104 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
105 SRCS+=  netgraph.c
106 .endif
107 .endif
108
109 .include <bsd.prog.mk>