Makefile revision 36288
1# $Id: Makefile,v 1.37 1998/05/21 21:43:36 brian Exp $ 2 3PROG= ppp 4SRCS= arp.c async.c auth.c bundle.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 prompt.c route.c server.c sig.c \ 8 slcompress.c systems.c throughput.c timer.c tun.c vjcomp.c 9CFLAGS+=-Wall 10LDADD+= -lutil -lz 11DPADD+= ${LIBUTIL} ${LIBZ} 12BINMODE=4550 13BINOWN= root 14BINGRP= network 15 16OPSYS!= uname -s 17.if (${OPSYS} == "OpenBSD") 18MAN= ppp.8 19.else 20MAN8= ppp.8 21LDADD+= -lmd -lcrypt 22DPADD+= ${LIBMD} ${LIBCRYPT} 23.endif 24 25.if defined(RELEASE_CRUNCH) 26CFLAGS+=-DRELEASE_CRUNCH 27.endif 28 29.if defined(NOALIAS) || defined(RELEASE_CRUNCH) 30CFLAGS+=-DNOALIAS 31.else 32SRCS+= alias_cmd.c loadalias.c 33.endif 34 35.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH) 36CFLAGS+=-DHAVE_DES 37SRCS+= chap_ms.c 38LDADD+= -ldes 39DPADD+= ${LIBDES} 40.endif 41 42.if defined(RELEASE_CRUNCH) 43# We must create these objects because the crunchgen will link them, 44# and we don't want any unused symbols to spoil the final link. 45SRCS+= alias_cmd.c loadalias.c chap_ms.c 46chap_ms.o alias_cmd.o loadalias.o: 47 >null_$*.c 48 cc -c -o $@ null_$*.c 49.endif 50 51.include <bsd.prog.mk> 52