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