Makefile revision 115157
1# $FreeBSD: head/usr.sbin/ppp/Makefile 115157 2003-05-19 15:52:01Z des $ 2 3PROG= ppp 4MAN= ppp.8 5SRCS= acf.c arp.c async.c auth.c bundle.c cbcp.c ccp.c chap.c chat.c \ 6 command.c datalink.c deflate.c defs.c exec.c filter.c fsm.c hdlc.c \ 7 iface.c ip.c ipcp.c ipv6cp.c iplist.c lcp.c link.c log.c lqr.c main.c \ 8 mbuf.c mp.c ncp.c ncpaddr.c pap.c physical.c pred.c probe.c prompt.c \ 9 proto.c route.c server.c sig.c slcompress.c sync.c systems.c tcp.c \ 10 tcpmss.c throughput.c timer.c tty.c tun.c udp.c vjcomp.c 11.if defined(RELEASE_CRUNCH) 12CFLAGS+=-DRELEASE_CRUNCH 13NOATM= true 14NOI4B= true 15NONAT= true 16NOKLDLOAD= true 17NORADIUS= true 18NOSUID= true 19.endif 20 21.if defined(NOSUID) || defined(PPP_NOSUID) 22BINMODE=554 23.else 24BINMODE=4554 25BINOWN= root 26.endif 27BINGRP= network 28M4FLAGS= 29 30LDADD= -lcrypt -lmd -lutil -lz 31DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 32 33.SUFFIXES: .8 .8.m4 34 35.8.m4.8: 36 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET} 37 38CLEANFILES= ppp.8 39 40.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 41CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 42.endif 43 44.if defined(NOKLDLOAD) 45CFLAGS+=-DNOKLDLOAD 46.endif 47 48.if defined(NOINET6) 49CFLAGS+=-DNOINET6 50.endif 51 52.if defined(NOALIAS) || defined(NONAT) 53CFLAGS+=-DNONAT 54.else 55SRCS+= nat_cmd.c 56LDADD+= -lalias 57DPADD+= ${LIBALIAS} 58.endif 59 60.if defined(NOATM) 61CFLAGS+=-DNOATM 62.else 63SRCS+= atm.c 64.endif 65 66.if defined(NOSUID) || defined(PPP_NOSUID) 67CFLAGS+=-DNOSUID 68.else 69SRCS+= id.c 70.endif 71 72.if !exists(${.CURDIR}/../../crypto) || defined(NOCRYPT) || defined(NO_OPENSSL) || defined(NODES) 73CFLAGS+=-DNODES 74.else 75DISTRIBUTION=crypto 76SRCS+= chap_ms.c mppe.c 77LDADD+= -lcrypto 78DPADD+= ${LIBCRYPTO} 79.endif 80 81.if defined(NORADIUS) 82CFLAGS+=-DNORADIUS 83.else 84SRCS+= radius.c 85LDADD+= -lradius 86DPADD+= ${LIBRADIUS} 87.endif 88 89.if defined(NOI4B) || ${MACHINE_ARCH} != "i386" 90CFLAGS+=-DNOI4B 91.else 92SRCS+= i4b.c 93.endif 94 95.if defined(NONETGRAPH) 96CFLAGS+=-DNONETGRAPH 97.else 98SRCS+= ether.c 99LDADD+= -lnetgraph 100DPADD+= ${LIBNETGRAPH} 101.if defined(EXPERIMENTAL_NETGRAPH) 102CFLAGS+=-DEXPERIMENTAL_NETGRAPH 103SRCS+= netgraph.c 104.endif 105.endif 106 107.include <bsd.prog.mk> 108