1# $FreeBSD$ 2 3.include <bsd.own.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 defined(RELEASE_CRUNCH) || ${MK_OPENSSL} == "no" || \ 80 defined(PPP_NO_DES) 81CFLAGS+=-DNODES 82.else 83SRCS+= chap_ms.c mppe.c 84LDADD+= -lcrypto 85DPADD+= ${LIBCRYPTO} 86.endif 87 88.if defined(PPP_NO_RADIUS) 89CFLAGS+=-DNORADIUS 90.else 91SRCS+= radius.c 92LDADD+= -lradius 93DPADD+= ${LIBRADIUS} 94.endif 95 96.if defined(PPP_NO_NETGRAPH) 97CFLAGS+=-DNONETGRAPH 98.else 99SRCS+= ether.c 100LDADD+= -lnetgraph 101DPADD+= ${LIBNETGRAPH} 102.if defined(EXPERIMENTAL_NETGRAPH) 103CFLAGS+=-DEXPERIMENTAL_NETGRAPH 104SRCS+= netgraph.c 105.endif 106.endif 107 108.if defined(PPP_NO_PAM) 109CFLAGS+=-DNOPAM 110.else 111LDADD+= ${MINUSLPAM} 112DPADD+= ${LIBPAM} 113.endif 114 115.include <bsd.prog.mk> 116