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.SUFFIXES: .8 .8.m4 48 49.8.m4.8: 50 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET} 51 52CLEANFILES= ppp.8 53 54.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 55CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 56.endif 57 58.if defined(PPP_NO_KLDLOAD) 59CFLAGS+=-DNOKLDLOAD 60.endif 61 62.if ${MK_INET6_SUPPORT} == "no" 63CFLAGS+=-DNOINET6 64.endif 65 66.if defined(PPP_NO_NAT) 67CFLAGS+=-DNONAT 68.else 69SRCS+= nat_cmd.c 70LDADD+= -lalias 71DPADD+= ${LIBALIAS} 72.endif 73 74.if defined(PPP_NO_ATM) 75CFLAGS+=-DNOATM 76.else 77SRCS+= atm.c 78.endif 79 80.if defined(PPP_NO_SUID) 81CFLAGS+=-DNOSUID 82.else 83SRCS+= id.c 84.endif 85 86.if defined(RELEASE_CRUNCH) || ${MK_OPENSSL} == "no" || \ 87 defined(PPP_NO_DES) 88CFLAGS+=-DNODES 89.else 90SRCS+= chap_ms.c mppe.c 91LDADD+= -lcrypto 92DPADD+= ${LIBCRYPTO} 93.endif 94 95.if defined(PPP_NO_RADIUS) 96CFLAGS+=-DNORADIUS 97.else 98SRCS+= radius.c 99LDADD+= -lradius 100DPADD+= ${LIBRADIUS} 101.endif 102 103.if defined(PPP_NO_NETGRAPH) 104CFLAGS+=-DNONETGRAPH 105.else 106SRCS+= ether.c 107LDADD+= -lnetgraph 108DPADD+= ${LIBNETGRAPH} 109.if defined(EXPERIMENTAL_NETGRAPH) 110CFLAGS+=-DEXPERIMENTAL_NETGRAPH 111SRCS+= netgraph.c 112.endif 113.endif 114 115.if defined(PPP_NO_PAM) 116CFLAGS+=-DNOPAM 117.else 118LDADD+= ${MINUSLPAM} 119DPADD+= ${LIBPAM} 120.endif 121 122.include <bsd.prog.mk> 123