1# $FreeBSD$ 2 3PROG= ppp 4SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 5 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 6 id.c iface.c ip.c ipcp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 7 mbuf.c mp.c pap.c physical.c pred.c probe.c prompt.c proto.c route.c \ 8 server.c sig.c slcompress.c sync.c systems.c tcp.c throughput.c \ 9 timer.c tty.c tun.c udp.c vjcomp.c 10CFLAGS+=-Wall 11LDADD+= -lcrypt -lmd -lutil -lz 12DPADD+= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 13BINMODE=4554 14BINOWN= root 15BINGRP= network 16MAN8= ppp.8 17 18.if defined(RELEASE_CRUNCH) 19CFLAGS+=-DRELEASE_CRUNCH 20.endif 21 22.if defined(NOKLDLOAD) 23CFLAGS+=-DNOKLDLOAD 24.endif 25 26.if defined(NOALIAS) || defined(NONAT) 27CFLAGS+=-DNONAT 28.else 29.if !defined(RELEASE_CRUNCH) 30SRCS+= nat_cmd.c 31LDADD+= -lalias 32DPADD+= ${LIBALIAS} 33.endif 34.endif 35 36.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH) 37DISTRIBUTION=des 38CFLAGS+=-DHAVE_DES 39SRCS+= chap_ms.c 40LDADD+= -lcrypto 41DPADD+= ${LIBCRYPTO} 42.if defined(RSAREF) && ${RSAREF} == YES 43LDADD+= -lRSAglue 44DPADD+= ${LIBRSAGLUE} 45.endif 46.endif 47 48.if defined(NORADIUS) 49CFLAGS+=-DNORADIUS 50.else 51.if !defined(RELEASE_CRUNCH) 52SRCS+= radius.c 53LDADD+= -lradius 54DPADD+= ${LIBRADIUS} 55.endif 56.endif 57 58.if defined(NOI4B) || ${MACHINE_ARCH} == "alpha" 59CFLAGS+=-DNOI4B 60.else 61SRCS+= i4b.c 62.endif 63 64.if defined(NONETGRAPH) 65CFLAGS+=-DNONETGRAPH 66.else 67SRCS+= ether.c 68LDADD+= -lnetgraph 69DPADD+= ${LIBNETGRAPH} 70.endif 71 72.if defined(RELEASE_CRUNCH) 73# We must create these objects because crunchgen will link them, 74# and we don't want any unused symbols to spoil the final link. 75CFLAGS+=-DNONAT -DNORADIUS -DNOI4B 76OBJS+= chap_ms.o nat_cmd.o radius.o 77chap_ms.o nat_cmd.o radius.o: 78 >null_${.PREFIX}.c 79 cc -c -o ${.TARGET} null_${.PREFIX}.c 80.endif 81 82.include <bsd.prog.mk> 83