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 14CONFS= ppp.conf 15CONFSDIR= ${CONFDIR}/ppp 16CONFSMODE= 600 17 18.if ${MK_NETGRAPH} == "no" 19PPP_NO_NETGRAPH= 20.endif 21.if ${MK_PAM_SUPPORT} == "no" 22PPP_NO_PAM= 23.endif 24.if ${MK_RADIUS_SUPPORT} == "no" 25PPP_NO_RADIUS= 26.endif 27 28.if defined(PPP_NO_SUID) 29BINMODE=554 30.else 31BINMODE=4554 32BINOWN= root 33.endif 34BINGRP= network 35M4FLAGS= 36 37LIBADD= md util z 38 39.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 40CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 41.endif 42 43.if defined(PPP_NO_KLDLOAD) 44CFLAGS+=-DNOKLDLOAD 45.endif 46 47.if ${MK_INET6_SUPPORT} == "no" 48CFLAGS+=-DNOINET6 49.endif 50 51.if defined(PPP_NO_NAT) 52CFLAGS+=-DNONAT 53.else 54SRCS+= nat_cmd.c 55LIBADD+= alias 56.endif 57 58.if defined(PPP_NO_SUID) 59CFLAGS+=-DNOSUID 60.else 61SRCS+= id.c 62.endif 63 64.if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES) 65CFLAGS+=-DNODES 66.else 67SRCS+= chap_ms.c mppe.c 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