gifconfig(8): Staticize and remove some unused variables.
[dragonfly.git] / usr.sbin / ppp / Makefile
blobe286a283245ed2fd6c0043ae3e967cf7e1d3160e
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(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 -lprivate_crypto
72 DPADD+= ${LIBRADIUS} ${LIBRECRYPTO}
73 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
74 .endif
76 .if defined(WANT_NETGRAPH7)
77 CFLAGS+=-DWANT_NETGRAPH7
78 .endif
80 .if defined(NONETGRAPH)
81 CFLAGS+=-DNONETGRAPH
82 .else
83 SRCS+= ether.c
84 LDADD+= -lnetgraph
85 DPADD+= ${LIBNETGRAPH}
86 .if defined(EXPERIMENTAL_NETGRAPH)
87 CFLAGS+=-DEXPERIMENTAL_NETGRAPH
88 SRCS+= netgraph.c
89 .endif
90 .endif
92 NO_STRICT_ALIASING=
94 # XXX sys/md5.h shim errata for bootstrap REMOVE_OPENSSL_FILES
95 CFLAGS+= -I${_SHLIBDIRPREFIX}/usr/include/priv
97 .include <bsd.prog.mk>