1# $FreeBSD$ 2 3PROG= ppp 4MAN= ppp.8 5SRCS= 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 11.if defined(RELEASE_CRUNCH) 12CFLAGS+=-DRELEASE_CRUNCH 13NOATM= true 14NOI4B= true 15NONAT= true 16NOKLDLOAD= true 17NORADIUS= true 18NOSECURE= 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(NOCRYPT) || defined(NOSECURE) || 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