1# $FreeBSD$ 2 3PROG= ppp 4MAN= ppp.8 5SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 6 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 7 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 8 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \ 9 proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \ 10 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c 11.if defined(NOSUID) || defined(PPP_NOSUID) 12BINMODE=554 13.else 14BINMODE=4554 15BINOWN= root 16.endif 17BINGRP= network 18M4FLAGS= 19 20LDADD= -lcrypt -lmd -lutil -lz 21DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 22 23.SUFFIXES: .8 .8.m4 24 25.8.m4.8: 26 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET} 27 28.if defined(RELEASE_CRUNCH) 29CFLAGS+=-DRELEASE_CRUNCH 30.endif 31 32.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 33CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 34.endif 35 36.if defined(NOKLDLOAD) 37CFLAGS+=-DNOKLDLOAD 38.endif 39 40.if defined(NOINET6) 41CFLAGS+=-DNOINET6 42.endif 43 44.if defined(NOALIAS) || defined(NONAT) 45CFLAGS+=-DNONAT 46.else 47.if !defined(RELEASE_CRUNCH) 48SRCS+= nat_cmd.c 49LDADD+= -lalias 50DPADD+= ${LIBALIAS} 51.endif 52.endif 53 54.if defined(NOATM) || defined(RELEASE_CRUNCH) 55CFLAGS+=-DNOATM 56.else 57SRCS+= atm.c 58.endif 59 60.if defined(NOSUID) || defined(PPP_NOSUID) 61CFLAGS+=-DNOSUID 62.else 63.if !defined(RELEASE_CRUNCH) 64SRCS+= id.c 65.endif 66.endif 67 68.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) 69DISTRIBUTION=crypto 70CFLAGS+=-DHAVE_DES 71SRCS+= chap_ms.c mppe.c 72LDADD+= -lcrypto 73DPADD+= ${LIBCRYPTO} 74.endif 75 76.if defined(NORADIUS) 77CFLAGS+=-DNORADIUS 78.else 79.if !defined(RELEASE_CRUNCH) 80SRCS+= radius.c 81LDADD+= -lradius 82DPADD+= ${LIBRADIUS} 83.endif 84.endif 85 86.if defined(NOI4B) || ${MACHINE_ARCH} != "i386" 87CFLAGS+=-DNOI4B 88.else 89SRCS+= i4b.c 90.endif 91 92.if defined(NONETGRAPH) 93CFLAGS+=-DNONETGRAPH 94.else 95SRCS+= ether.c 96LDADD+= -lnetgraph 97DPADD+= ${LIBNETGRAPH} 98.endif 99 100.if defined(RELEASE_CRUNCH) 101CFLAGS+=-DNONAT -DNORADIUS -DNOI4B -DNOSUID 102.endif 103 104.include <bsd.prog.mk> 105