Makefile revision 53455
150479Speter# $FreeBSD: head/usr.sbin/ppp/Makefile 53455 1999-11-20 10:55:27Z brian $ 26059Samurai 343344SbrianMAINTAINER=brian@FreeBSD.org 443344Sbrian 56059SamuraiPROG= ppp 646686SbrianSRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 746686Sbrian command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 846686Sbrian id.c iface.c ip.c ipcp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 946686Sbrian mbuf.c mp.c pap.c physical.c pred.c probe.c prompt.c proto.c route.c \ 1046686Sbrian server.c sig.c slcompress.c sync.c systems.c tcp.c throughput.c \ 1147061Sbrian timer.c tty.c tun.c udp.c vjcomp.c 1236288SbrianCFLAGS+=-Wall 1343313SbrianLDADD+= -lcrypt -lmd -lutil -lz 1443313SbrianDPADD+= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 1550438SjkhBINMODE=4554 1640530SbrianBINOWN= root 1729083SbrianBINGRP= network 1836285SbrianMAN8= ppp.8 1936285Sbrian 2032860Sbrian.if defined(RELEASE_CRUNCH) 2132860SbrianCFLAGS+=-DRELEASE_CRUNCH 2232860Sbrian.endif 2332860Sbrian 2451526Sbrian.if defined(NOKLDLOAD) 2551526SbrianCFLAGS+=-DNOKLDLOAD 2651526Sbrian.endif 2751526Sbrian 2850264Sbrian.if defined(NOALIAS) || defined(NONAT) 2950191SbrianCFLAGS+=-DNONAT 3031343Sbrian.else 3137191Sbrian.if !defined(RELEASE_CRUNCH) 3251075SbrianSRCS+= nat_cmd.c 3337191SbrianLDADD+= -lalias 3437191SbrianDPADD+= ${LIBALIAS} 3531343Sbrian.endif 3637191Sbrian.endif 3731343Sbrian 3832589Sbrian.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH) 3937173SbrianDISTRIBUTION=des 4029840SbrianCFLAGS+=-DHAVE_DES 4129840SbrianSRCS+= chap_ms.c 4229840SbrianLDADD+= -ldes 4329840SbrianDPADD+= ${LIBDES} 4429840Sbrian.endif 4529840Sbrian 4643313Sbrian.if defined(NORADIUS) 4743313SbrianCFLAGS+=-DNORADIUS 4843313Sbrian.else 4943313Sbrian.if !defined(RELEASE_CRUNCH) 5043313SbrianSRCS+= radius.c 5143313SbrianLDADD+= -lradius 5243313SbrianDPADD+= ${LIBRADIUS} 5343313Sbrian.endif 5443313Sbrian.endif 5543313Sbrian 5650264Sbrian.if defined(NOI4B) || ${MACHINE_ARCH} == "alpha" 5749472SbrianCFLAGS+=-DNOI4B 5849472Sbrian.else 5949472SbrianSRCS+= i4b.c 6049472Sbrian.endif 6149472Sbrian 6252942Sbrian.if defined(NONETGRAPH) 6352942SbrianCFLAGS+=-DNONETGRAPH 6452942Sbrian.else 6552942SbrianSRCS+= ether.c 6652942SbrianLDADD+= -lnetgraph 6752942SbrianDPADD+= ${LIBNETGRAPH} 6852942Sbrian.endif 6952942Sbrian 7032589Sbrian.if defined(RELEASE_CRUNCH) 7143313Sbrian# We must create these objects because crunchgen will link them, 7232589Sbrian# and we don't want any unused symbols to spoil the final link. 7353455SbrianCFLAGS+=-DNONAT -DNORADIUS -DNOI4B 7453455SbrianOBJS+= chap_ms.o nat_cmd.o radius.o 7553455Sbrianchap_ms.o nat_cmd.o radius.o: 7636799Simp >null_${.PREFIX}.c 7736799Simp cc -c -o ${.TARGET} null_${.PREFIX}.c 7832589Sbrian.endif 7932589Sbrian 806059Samurai.include <bsd.prog.mk> 81