]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - usr.sbin/pppd/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / usr.sbin / pppd / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 # I once used this extensively, but no longer have a modem.  Feel free
6 # to ask me questions about it, but I disclaim ownership now.  -Peter
7
8 PROG=   pppd
9 MAN=    pppd.8
10 SRCS=   main.c magic.c fsm.c lcp.c ipcp.c ipxcp.c upap.c chap.c ccp.c \
11         demand.c auth.c options.c sys-bsd.c
12 BINMODE=4550
13 BINOWN= root
14 BINGRP= dialer
15
16 CFLAGS+= -DHAVE_PATHS_H
17
18 DPADD=  ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
19 LDADD=  -lcrypt -lutil -lmd
20
21 # Support SPX/IPX - not quite ready
22 #CFLAGS+= -DIPX_CHANGE
23 #SRCS+= ipxcp.c
24
25 # Callback Control Protocol
26 CFLAGS+= -DCBCP_SUPPORT
27 SRCS+=  cbcp.c
28
29 # Filter support
30 CFLAGS+= -DPPP_FILTER
31 DPADD+= ${LIBPCAP}
32 LDADD+= -lpcap
33
34 # MS-CHAP support.  Requires the DES library.
35 .if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
36 CFLAGS+= -DCHAPMS
37 SRCS+=  chap_ms.c
38 LDADD+= -lcrypto
39 DPADD+= ${LIBCRYPTO}
40 .endif
41
42 .if ${MK_INET6_SUPPORT} != "no"
43 CFLAGS+=-DINET6
44 SRCS+=  eui64.c ipv6cp.c
45 .endif
46
47 .if defined(RELEASE_CRUNCH)
48 # We must create these objects because crunchgen will link them,
49 # and we don't want any unused symbols to spoil the final link.
50 SRCS+= chap_ms.c
51 chap_ms.o:
52         >null_${.PREFIX}.c
53         cc -c -o ${.TARGET} null_${.PREFIX}.c
54 .endif
55
56 .include <bsd.prog.mk>