save/restore cr2, cr3 from vmcb
[freebsd-src/fkvm-freebsd.git] / usr.sbin / pppd / Makefile
blob2df0330337cd81b63129158d3dafeafb4174acc7
1 # $FreeBSD$
3 .include <bsd.own.mk>
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
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
16 CFLAGS+= -DHAVE_PATHS_H
18 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
19 LDADD= -lcrypt -lutil -lmd
21 # Support SPX/IPX - not quite ready
22 #CFLAGS+= -DIPX_CHANGE
23 #SRCS+= ipxcp.c
25 # Callback Control Protocol
26 CFLAGS+= -DCBCP_SUPPORT
27 SRCS+= cbcp.c
29 # Filter support
30 CFLAGS+= -DPPP_FILTER
31 DPADD+= ${LIBPCAP}
32 LDADD+= -lpcap
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
42 .if ${MK_INET6_SUPPORT} != "no"
43 CFLAGS+=-DINET6
44 SRCS+= eui64.c ipv6cp.c
45 .endif
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
56 .include <bsd.prog.mk>