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