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