1# $FreeBSD: head/usr.sbin/ppp/Makefile 85357 2001-10-23 10:20:24Z peter $
| 1# $FreeBSD: head/usr.sbin/ppp/Makefile 93418 2002-03-30 12:30:09Z brian $
|
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
| 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 18NOSECURE= true 19NOSUID= true 20.endif 21
|
11.if defined(NOSUID) || defined(PPP_NOSUID) 12BINMODE=554 13.else 14BINMODE=4554 15BINOWN= root 16.endif 17BINGRP= network 18M4FLAGS= 19 20LDADD= -lcrypt -lmd -lutil -lz 21DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 22 23.SUFFIXES: .8 .8.m4 24 25.8.m4.8: 26 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET} 27
| 22.if defined(NOSUID) || defined(PPP_NOSUID) 23BINMODE=554 24.else 25BINMODE=4554 26BINOWN= root 27.endif 28BINGRP= network 29M4FLAGS= 30 31LDADD= -lcrypt -lmd -lutil -lz 32DPADD= ${LIBCRYPT} ${LIBMD} ${LIBUTIL} ${LIBZ} 33 34.SUFFIXES: .8 .8.m4 35 36.8.m4.8: 37 m4 ${M4FLAGS} ${.IMPSRC} >${.TARGET} 38
|
28.if defined(RELEASE_CRUNCH) 29CFLAGS+=-DRELEASE_CRUNCH 30.endif
| |
31 32.if defined(PPP_CONFDIR) && !empty(PPP_CONFDIR) 33CFLAGS+=-DPPP_CONFDIR=\"${PPP_CONFDIR}\" 34.endif 35 36.if defined(NOKLDLOAD) 37CFLAGS+=-DNOKLDLOAD 38.endif 39 40.if defined(NOINET6) 41CFLAGS+=-DNOINET6 42.endif 43 44.if defined(NOALIAS) || defined(NONAT) 45CFLAGS+=-DNONAT 46.else
| 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
|
47.if !defined(RELEASE_CRUNCH)
| |
48SRCS+= nat_cmd.c 49LDADD+= -lalias 50DPADD+= ${LIBALIAS} 51.endif
| 55SRCS+= nat_cmd.c 56LDADD+= -lalias 57DPADD+= ${LIBALIAS} 58.endif
|
52.endif
| |
53
| 59
|
54.if defined(NOATM) || defined(RELEASE_CRUNCH)
| 60.if defined(NOATM)
|
55CFLAGS+=-DNOATM 56.else 57SRCS+= atm.c 58.endif 59 60.if defined(NOSUID) || defined(PPP_NOSUID) 61CFLAGS+=-DNOSUID 62.else
| 61CFLAGS+=-DNOATM 62.else 63SRCS+= atm.c 64.endif 65 66.if defined(NOSUID) || defined(PPP_NOSUID) 67CFLAGS+=-DNOSUID 68.else
|
63.if !defined(RELEASE_CRUNCH)
| |
64SRCS+= id.c 65.endif
| 69SRCS+= id.c 70.endif
|
66.endif
| |
67
| 71
|
68.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
| 72.if !exists(${.CURDIR}/../../secure) || defined(NOCRYPT) || defined(NOSECURE) || defined(NO_OPENSSL) || defined(NODES) 73CFLAGS+=-DNODES 74.else
|
69DISTRIBUTION=crypto
| 75DISTRIBUTION=crypto
|
70CFLAGS+=-DHAVE_DES
| |
71SRCS+= chap_ms.c mppe.c 72LDADD+= -lcrypto 73DPADD+= ${LIBCRYPTO} 74.endif 75 76.if defined(NORADIUS) 77CFLAGS+=-DNORADIUS 78.else
| 76SRCS+= chap_ms.c mppe.c 77LDADD+= -lcrypto 78DPADD+= ${LIBCRYPTO} 79.endif 80 81.if defined(NORADIUS) 82CFLAGS+=-DNORADIUS 83.else
|
79.if !defined(RELEASE_CRUNCH)
| |
80SRCS+= radius.c 81LDADD+= -lradius 82DPADD+= ${LIBRADIUS} 83.endif
| 84SRCS+= radius.c 85LDADD+= -lradius 86DPADD+= ${LIBRADIUS} 87.endif
|
84.endif
| |
85 86.if defined(NOI4B) || ${MACHINE_ARCH} != "i386" 87CFLAGS+=-DNOI4B 88.else 89SRCS+= i4b.c 90.endif 91 92.if defined(NONETGRAPH) 93CFLAGS+=-DNONETGRAPH 94.else 95SRCS+= ether.c 96LDADD+= -lnetgraph 97DPADD+= ${LIBNETGRAPH}
| 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
|
98.endif
| 104.endif
|
99 100.if defined(RELEASE_CRUNCH) 101CFLAGS+=-DNONAT -DNORADIUS -DNOI4B -DNOSUID
| |
102.endif 103 104.include <bsd.prog.mk>
| 105.endif 106 107.include <bsd.prog.mk>
|