Merge branch 'vendor/ACPICA-UNIX'
[dragonfly.git] / usr.sbin / pppd / Makefile
1 # $FreeBSD: src/usr.sbin/pppd/Makefile,v 1.19.2.2 2001/08/19 03:32:43 kris Exp $
2 # $DragonFly: src/usr.sbin/pppd/Makefile,v 1.6 2005/09/06 18:55:48 dillon Exp $
3
4 CFLAGS+= -DHAVE_PATHS_H
5
6 PROG=   pppd
7 SRCS=   main.c magic.c fsm.c lcp.c ipcp.c ipxcp.c upap.c chap.c ccp.c \
8         demand.c auth.c options.c sys-bsd.c
9 MAN=    pppd.8
10 BINMODE=4550
11 BINOWN= root
12 BINGRP= dialer
13 WARNS?= 0
14
15 LDADD=  -lcrypt -lutil -lmd
16 DPADD=  ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
17
18 # Support SPX/IPX - not quite ready
19 #CFLAGS+=-DIPX_CHANGE
20 #SRCS+= ipxcp.c
21
22 # Callback Control Protocol
23 CFLAGS+=-DCBCP_SUPPORT
24 SRCS+=  cbcp.c
25
26 # Filter support
27 CFLAGS+=-DPPP_FILTER
28 LDADD+= -lpcap
29 DPADD+= ${LIBPCAP}
30
31 # MS-CHAP support.  Requires the DES library.
32 .if exists(${.CURDIR}/../../secure) && !defined(NO_CRYPT)  && !defined(NO_OPENSSL)
33 CFLAGS+=-DCHAPMS
34 SRCS+=  chap_ms.c
35 LDADD+= -lcrypto
36 DPADD+= ${LIBCRYPTO}
37 .endif
38
39 .include <bsd.prog.mk>