1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5PROG= ppp 6MAN= ppp.8 7SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 8 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 9 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 10 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \ 11 proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \ 12 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c 13WARNS?= 3 14.if defined(RELEASE_CRUNCH) 15CFLAGS+=-DRELEASE_CRUNCH 16PPP_NO_DES= 17PPP_NO_KLDLOAD= 18PPP_NO_NAT= 19PPP_NO_PAM= 20PPP_NO_RADIUS= 21PPP_NO_SUID= 22.endif 23CONFS= ppp.conf 24CONFSDIR= ${CONFDIR}/ppp 25CONFSMODE= 600 26 27.if ${MK_NETGRAPH} == "no" 28PPP_NO_NETGRAPH= 29.endif 30.if ${MK_PAM_SUPPORT} == "no" 31PPP_NO_PAM= 32.endif 33.if ${MK_RADIUS_SUPPORT} == "no" 34PPP_NO_RADIUS= 35.endif 36 37.if defined(PPP_NO_SUID) 38BINMODE=554 39.else 40BINMODE=4554 41BINOWN= root 42.endif 43BINGRP= network 44M4FLAGS= 45 46LIBADD= md util z 47 48.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 49CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 50.endif 51 52.if defined(PPP_NO_KLDLOAD) 53CFLAGS+=-DNOKLDLOAD 54.endif 55 56.if ${MK_INET6_SUPPORT} == "no" 57CFLAGS+=-DNOINET6 58.endif 59 60.if defined(PPP_NO_NAT) 61CFLAGS+=-DNONAT 62.else 63SRCS+= nat_cmd.c 64LIBADD+= alias 65.endif 66 67.if defined(PPP_NO_SUID) 68CFLAGS+=-DNOSUID 69.else 70SRCS+= id.c 71.endif 72 73.if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES) 74CFLAGS+=-DNODES 75.else 76SRCS+= chap_ms.c mppe.c 77LIBADD+= crypto 78.endif 79 80.if defined(PPP_NO_RADIUS) 81CFLAGS+=-DNORADIUS 82.else 83SRCS+= radius.c 84LIBADD+= radius 85.endif 86 87.if defined(PPP_NO_NETGRAPH) 88CFLAGS+=-DNONETGRAPH 89.else 90SRCS+= ether.c 91LIBADD+= netgraph 92.if defined(EXPERIMENTAL_NETGRAPH) 93CFLAGS+=-DEXPERIMENTAL_NETGRAPH 94SRCS+= netgraph.c 95.endif 96.endif 97 98.if defined(PPP_NO_PAM) 99CFLAGS+=-DNOPAM 100LIBADD+= crypt 101.else 102LIBADD+= pam 103.endif 104 105.include <bsd.prog.mk> 106