kernel: Fix a -Wundef warning.
[dragonfly.git] / usr.sbin / ppp / Makefile
blobc2df856259ad07cc452eb984cb7d4476f341c0f6
1 # $FreeBSD: src/usr.sbin/ppp/Makefile,v 1.73.2.8 2002/09/01 02:12:22 brian Exp $
3 PROG= ppp
4 MAN= ppp.8
5 SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \
6 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \
7 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \
8 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \
9 proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \
10 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c
12 .if defined(NOSUID) || defined(PPP_NOSUID)
13 BINMODE=554
14 .else
15 BINMODE=4554
16 BINOWN= root
17 .endif
18 BINGRP= network
19 M4FLAGS=
21 LDADD= -lcrypt -lmd -lutil -lz
22 DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ}
24 .SUFFIXES: .8 .8.m4
26 .8.m4.8:
27 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET}
29 CLEANFILES= ppp.8
31 .if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR)
32 CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\"
33 .endif
35 .if defined(NOKLDLOAD)
36 CFLAGS+=-DNOKLDLOAD
37 .endif
39 .if defined(NOINET6)
40 CFLAGS+=-DNOINET6
41 .endif
43 .if defined(NOALIAS) || defined(NONAT)
44 CFLAGS+=-DNONAT
45 .else
46 SRCS+= nat_cmd.c
47 LDADD+= -lalias
48 DPADD+= ${LIBALIAS}
49 .endif
51 .if defined(NOSUID) || defined(PPP_NOSUID)
52 CFLAGS+=-DNOSUID
53 .else
54 SRCS+= id.c
55 .endif
57 .if defined(NO_CRYPT) || defined(NODES)
58 CFLAGS+=-DNODES
59 .else
60 SRCS+= chap_ms.c mppe.c
61 LDADD+= -lprivate_crypto
62 DPADD+= ${LIBRECRYPTO}
63 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
64 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
65 .endif
67 .if defined(NORADIUS)
68 CFLAGS+=-DNORADIUS
69 .else
70 SRCS+= radius.c
71 LDADD+= -lradius
72 DPADD+= ${LIBRADIUS}
73 .endif
75 .if defined(WANT_NETGRAPH7)
76 CFLAGS+=-DWANT_NETGRAPH7
77 .endif
79 .if defined(NONETGRAPH)
80 CFLAGS+=-DNONETGRAPH
81 .else
82 SRCS+= ether.c
83 LDADD+= -lnetgraph
84 DPADD+= ${LIBNETGRAPH}
85 .if defined(EXPERIMENTAL_NETGRAPH)
86 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
87 SRCS+= netgraph.c
88 .endif
89 .endif
91 NO_STRICT_ALIASING=
93 .include <bsd.prog.mk>