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