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