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_ATM= 17PPP_NO_DES= 18PPP_NO_KLDLOAD= 19PPP_NO_NAT= 20PPP_NO_PAM= 21PPP_NO_RADIUS= 22PPP_NO_SUID= 23.endif 24 25.if ${MK_ATM} == "no" 26PPP_NO_ATM= 27.endif 28.if ${MK_NETGRAPH} == "no" 29PPP_NO_NETGRAPH= 30.endif 31.if ${MK_PAM_SUPPORT} == "no" 32PPP_NO_PAM= 33.endif 34 35.if defined(PPP_NO_SUID) 36BINMODE=550 37.else 38BINMODE=4550 39BINOWN= root 40.endif 41BINGRP= network 42M4FLAGS= 43 44LDADD= -lcrypt -lmd -lutil -lz 45DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 46 47.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 48CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 49.endif 50 51.if defined(PPP_NO_KLDLOAD) 52CFLAGS+=-DNOKLDLOAD 53.endif 54 55.if ${MK_INET6_SUPPORT} == "no" 56CFLAGS+=-DNOINET6 57.endif 58 59.if defined(PPP_NO_NAT) 60CFLAGS+=-DNONAT 61.else 62SRCS+= nat_cmd.c 63LDADD+= -lalias 64DPADD+= ${LIBALIAS} 65.endif 66 67.if defined(PPP_NO_ATM) 68CFLAGS+=-DNOATM 69.else 70SRCS+= atm.c 71.endif 72 73.if defined(PPP_NO_SUID) 74CFLAGS+=-DNOSUID 75.else 76SRCS+= id.c 77.endif 78 79.if ${MK_OPENSSL} == "no" || defined(PPP_NO_DES) 80CFLAGS+=-DNODES 81.else 82SRCS+= chap_ms.c mppe.c 83LDADD+= -lcrypto 84DPADD+= ${LIBCRYPTO} 85.endif 86 87.if defined(PPP_NO_RADIUS) 88CFLAGS+=-DNORADIUS 89.else 90SRCS+= radius.c 91LDADD+= -lradius 92DPADD+= ${LIBRADIUS} 93.endif 94 95.if defined(PPP_NO_NETGRAPH) 96CFLAGS+=-DNONETGRAPH 97.else 98SRCS+= ether.c 99LDADD+= -lnetgraph 100DPADD+= ${LIBNETGRAPH} 101.if defined(EXPERIMENTAL_NETGRAPH) 102CFLAGS+=-DEXPERIMENTAL_NETGRAPH 103SRCS+= netgraph.c 104.endif 105.endif 106 107.if defined(PPP_NO_PAM) 108CFLAGS+=-DNOPAM 109.else 110LDADD+= ${MINUSLPAM} 111DPADD+= ${LIBPAM} 112.endif 113 114.include <bsd.prog.mk> 115