1# $Id: Makefile,v 1.46 1998/08/30 23:53:25 brian Exp $ 2 3PROG= ppp 4SRCS= arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c command.c \ 5 datalink.c deflate.c defs.c filter.c fsm.c hdlc.c id.c ip.c \ 6 ipcp.c iplist.c lcp.c link.c log.c lqr.c main.c mbuf.c modem.c \ 7 mp.c pap.c physical.c pred.c probe.c prompt.c route.c server.c \ 8 sig.c slcompress.c systems.c throughput.c timer.c tun.c vjcomp.c 9CFLAGS+=-Wall 10LDADD+= -lutil -lz 11DPADD+= ${LIBUTIL} ${LIBZ} 12BINMODE=4554 13BINOWN= root 14BINGRP= network 15MAN8= ppp.8 16LDADD+= -lmd -lcrypt 17DPADD+= ${LIBMD} ${LIBCRYPT} 18 19.if defined(RELEASE_CRUNCH) 20CFLAGS+=-DRELEASE_CRUNCH 21.endif 22 23.if defined(NOALIAS) 24CFLAGS+=-DNOALIAS 25.else 26.if !defined(RELEASE_CRUNCH) 27SRCS+= alias_cmd.c 28LDADD+= -lalias 29DPADD+= ${LIBALIAS} 30.endif 31.endif 32 33.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH) 34DISTRIBUTION=des 35CFLAGS+=-DHAVE_DES 36SRCS+= chap_ms.c 37LDADD+= -ldes 38DPADD+= ${LIBDES} 39.endif 40 41.if defined(RELEASE_CRUNCH) 42# We must create these objects because the crunchgen will link them, 43# and we don't want any unused symbols to spoil the final link. 44CFLAGS+=-DNOALIAS 45SRCS+= alias_cmd.c chap_ms.c 46chap_ms.o alias_cmd.o: 47 >null_${.PREFIX}.c 48 cc -c -o ${.TARGET} null_${.PREFIX}.c 49.endif 50 51.include <bsd.prog.mk> 52