Makefile revision 65862
182498Sroberto# $FreeBSD: head/usr.sbin/ppp/Makefile 65862 2000-09-14 22:02:54Z brian $ 282498Sroberto 382498SrobertoPROG= ppp 482498SrobertoSRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 582498Sroberto command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 682498Sroberto iface.c ip.c ipcp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 782498Sroberto mbuf.c mp.c pap.c physical.c pred.c probe.c prompt.c proto.c route.c \ 882498Sroberto server.c sig.c slcompress.c sync.c systems.c tcp.c throughput.c \ 982498Sroberto timer.c tty.c tun.c udp.c vjcomp.c 1082498SrobertoCFLAGS+=-Wall 1182498SrobertoLDADD+= -lcrypt -lmd -lutil -lz 1282498SrobertoDPADD+= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 1382498Sroberto.if defined(NOSUID) || defined(PPP_NOSUID) 1482498SrobertoBINMODE=554 1582498Sroberto.else 1682498SrobertoBINMODE=4554 1782498SrobertoBINOWN= root 1882498Sroberto.endif 1982498SrobertoBINGRP= network 2082498SrobertoMAN8= ppp.8 2182498Sroberto 2282498Sroberto.if defined(RELEASE_CRUNCH) 2382498SrobertoCFLAGS+=-DRELEASE_CRUNCH 2482498Sroberto.endif 2582498Sroberto 2682498Sroberto.if defined(NOKLDLOAD) 2782498SrobertoCFLAGS+=-DNOKLDLOAD 2882498Sroberto.endif 2982498Sroberto 3082498Sroberto.if defined(NOINET6) 3182498SrobertoCFLAGS+=-DNOINET6 3282498Sroberto.endif 3382498Sroberto 3482498Sroberto.if defined(NOALIAS) || defined(NONAT) 3582498SrobertoCFLAGS+=-DNONAT 3682498Sroberto.else 3782498Sroberto.if !defined(RELEASE_CRUNCH) 3882498SrobertoSRCS+= nat_cmd.c 3982498SrobertoLDADD+= -lalias 4082498SrobertoDPADD+= ${LIBALIAS} 4182498Sroberto.endif 4282498Sroberto.endif 43 44NOATM= /usr/include/netnatm required 45.if defined(NOATM) || defined(RELEASE_CRUNCH) 46CFLAGS+=-DNOATM 47.else 48SRCS+= atm.c 49.endif 50 51.if defined(NOSUID) || defined(PPP_NOSUID) 52CFLAGS+=-DNOSUID 53.else 54.if !defined(RELEASE_CRUNCH) 55SRCS+= id.c 56.endif 57.endif 58 59.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH) 60DISTRIBUTION=crypto 61CFLAGS+=-DHAVE_DES 62SRCS+= chap_ms.c 63LDADD+= -lcrypto 64DPADD+= ${LIBCRYPTO} 65.endif 66 67.if defined(NORADIUS) 68CFLAGS+=-DNORADIUS 69.else 70.if !defined(RELEASE_CRUNCH) 71SRCS+= radius.c 72LDADD+= -lradius 73DPADD+= ${LIBRADIUS} 74.endif 75.endif 76 77.if defined(NOI4B) || ${MACHINE_ARCH} == "alpha" 78CFLAGS+=-DNOI4B 79.else 80SRCS+= i4b.c 81.endif 82 83.if defined(NONETGRAPH) 84CFLAGS+=-DNONETGRAPH 85.else 86SRCS+= ether.c 87LDADD+= -lnetgraph 88DPADD+= ${LIBNETGRAPH} 89.endif 90 91.if defined(RELEASE_CRUNCH) 92# We must create these objects because crunchgen will link them, 93# and we don't want any unused symbols to spoil the final link. 94CFLAGS+=-DNONAT -DNORADIUS -DNOI4B -DNOSUID 95OBJS+= chap_ms.o id.o nat_cmd.o radius.o 96chap_ms.o id.o nat_cmd.o radius.o: 97 >null_${.PREFIX}.c 98 cc -c -o ${.TARGET} null_${.PREFIX}.c 99.endif 100 101.include <bsd.prog.mk> 102