kernel - swapcache - Fix snocache and cache flags propagation, fix PG_NOTMETA
[dragonfly.git] / usr.sbin / ppp / Makefile
blobc46a29e64129a5ffbfacd72b2972f29fa73c16c1
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
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=
22 LDADD= -lcrypt -lmd -lutil -lz
23 DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
25 WARNS?= 1
27 .SUFFIXES: .8 .8.m4
29 .8.m4.8:
30 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
32 CLEANFILES= ppp.8
34 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
35 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
36 .endif
38 .if defined(NOKLDLOAD)
39 CFLAGS+=-DNOKLDLOAD
40 .endif
42 .if defined(NOINET6)
43 CFLAGS+=-DNOINET6
44 .endif
46 .if defined(NOALIAS) || defined(NONAT)
47 CFLAGS+=-DNONAT
48 .else
49 SRCS+= nat_cmd.c
50 LDADD+= -lalias
51 DPADD+= ${LIBALIAS}
52 .endif
54 .if defined(NOATM)
55 CFLAGS+=-DNOATM
56 .else
57 SRCS+= atm.c
58 .endif
60 .if defined(NOSUID) || defined(PPP_NOSUID)
61 CFLAGS+=-DNOSUID
62 .else
63 SRCS+= id.c
64 .endif
66 .if !exists(${.CURDIR}/../../secure) || defined(NO_CRYPT) || defined(NO_OPENSSL) || defined(NODES)
67 CFLAGS+=-DNODES
68 .else
69 SRCS+= chap_ms.c mppe.c
70 LDADD+= -lcrypto
71 DPADD+= ${LIBCRYPTO}
72 .endif
74 .if defined(NORADIUS)
75 CFLAGS+=-DNORADIUS
76 .else
77 SRCS+= radius.c
78 LDADD+= -lradius
79 DPADD+= ${LIBRADIUS}
80 .endif
82 .if defined(NOI4B) || ${MACHINE_ARCH} != "i386"
83 CFLAGS+=-DNOI4B
84 .else
85 SRCS+= i4b.c
86 .endif
88 .if defined(NONETGRAPH)
89 CFLAGS+=-DNONETGRAPH
90 .else
91 SRCS+= ether.c
92 LDADD+= -lnetgraph
93 DPADD+= ${LIBNETGRAPH}
94 .if defined(EXPERIMENTAL_NETGRAPH)
95 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
96 SRCS+= netgraph.c
97 .endif
98 .endif
100 .include <bsd.prog.mk>