1.include <src.opts.mk> 2 3PACKAGE= ppp 4PROG= ppp 5MAN= ppp.8 6SRCS= 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 12WARNS?= 3 13CONFS= ppp.conf 14CONFSDIR= ${CONFDIR}/ppp 15CONFSMODE= 600 16 17.if ${MK_NETGRAPH} == "no" 18PPP_NO_NETGRAPH= 19.endif 20.if ${MK_PAM_SUPPORT} == "no" 21PPP_NO_PAM= 22.endif 23.if ${MK_RADIUS_SUPPORT} == "no" 24PPP_NO_RADIUS= 25.endif 26 27.if defined(PPP_NO_SUID) 28BINMODE=554 29.else 30BINMODE=4554 31BINOWN= root 32.endif 33BINGRP= network 34M4FLAGS= 35 36LIBADD= md util z 37 38.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 39CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 40.endif 41 42.if defined(PPP_NO_KLDLOAD) 43CFLAGS+=-DNOKLDLOAD 44.endif 45 46.if ${MK_INET6_SUPPORT} == "no" 47CFLAGS+=-DNOINET6 48.endif 49 50.if defined(PPP_NO_NAT) 51CFLAGS+=-DNONAT 52.else 53SRCS+= nat_cmd.c 54LIBADD+= alias 55.endif 56 57.if defined(PPP_NO_SUID) 58CFLAGS+=-DNOSUID 59.else 60SRCS+= id.c 61.endif 62 63.if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES) 64CFLAGS+=-DNODES 65.else 66SRCS+= chap_ms.c mppe.c 67CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L 68LIBADD+= crypto 69.endif 70 71.if defined(PPP_NO_RADIUS) 72CFLAGS+=-DNORADIUS 73.else 74SRCS+= radius.c 75LIBADD+= radius 76.endif 77 78.if defined(PPP_NO_NETGRAPH) 79CFLAGS+=-DNONETGRAPH 80.else 81SRCS+= ether.c 82LIBADD+= netgraph 83.if defined(EXPERIMENTAL_NETGRAPH) 84CFLAGS+=-DEXPERIMENTAL_NETGRAPH 85SRCS+= netgraph.c 86.endif 87.endif 88 89.if defined(PPP_NO_PAM) 90CFLAGS+=-DNOPAM 91LIBADD+= crypt 92.else 93LIBADD+= pam 94.endif 95 96.include <bsd.prog.mk> 97