Makefile revision 47061
147061Sbrian# $Id: Makefile,v 1.53 1999/05/08 11:05:54 brian Exp $ 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} 1536732SbrianBINMODE=4554 1640530SbrianBINOWN= root 1729083SbrianBINGRP= network 1836285SbrianMAN8= ppp.8 1936285Sbrian 2032860Sbrian.if defined(RELEASE_CRUNCH) 2132860SbrianCFLAGS+=-DRELEASE_CRUNCH 2232860Sbrian.endif 2332860Sbrian 2437191Sbrian.if defined(NOALIAS) 2531343SbrianCFLAGS+=-DNOALIAS 2631343Sbrian.else 2737191Sbrian.if !defined(RELEASE_CRUNCH) 2837191SbrianSRCS+= alias_cmd.c 2937191SbrianLDADD+= -lalias 3037191SbrianDPADD+= ${LIBALIAS} 3131343Sbrian.endif 3237191Sbrian.endif 3331343Sbrian 3432589Sbrian.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH) 3537173SbrianDISTRIBUTION=des 3629840SbrianCFLAGS+=-DHAVE_DES 3729840SbrianSRCS+= chap_ms.c 3829840SbrianLDADD+= -ldes 3929840SbrianDPADD+= ${LIBDES} 4029840Sbrian.endif 4129840Sbrian 4243313Sbrian.if defined(NORADIUS) 4343313SbrianCFLAGS+=-DNORADIUS 4443313Sbrian.else 4543313Sbrian.if !defined(RELEASE_CRUNCH) 4643313SbrianSRCS+= radius.c 4743313SbrianLDADD+= -lradius 4843313SbrianDPADD+= ${LIBRADIUS} 4943313Sbrian.endif 5043313Sbrian.endif 5143313Sbrian 5232589Sbrian.if defined(RELEASE_CRUNCH) 5343313Sbrian# We must create these objects because crunchgen will link them, 5432589Sbrian# and we don't want any unused symbols to spoil the final link. 5543313SbrianCFLAGS+=-DNOALIAS -DNORADIUS 5643313SbrianSRCS+= alias_cmd.c chap_ms.c radius.c 5743313Sbrianchap_ms.o alias_cmd.o radius.o: 5836799Simp >null_${.PREFIX}.c 5936799Simp cc -c -o ${.TARGET} null_${.PREFIX}.c 6032589Sbrian.endif 6132589Sbrian 626059Samurai.include <bsd.prog.mk> 63