LIBPRIV: Add common PRIVATELIB_LDFLAGS definitions.
[dragonfly.git] / usr.sbin / pppd / Makefile
blobbaa97de3d116b5f5327e29da3142a56519542850
1 # $FreeBSD: src/usr.sbin/pppd/Makefile,v 1.19.2.2 2001/08/19 03:32:43 kris Exp $
3 CFLAGS+= -DHAVE_PATHS_H
5 PROG= pppd
6 SRCS= main.c magic.c fsm.c lcp.c ipcp.c upap.c chap.c ccp.c \
7 demand.c auth.c options.c sys-bsd.c
8 MAN= pppd.8
9 BINMODE=4550
10 BINOWN= root
11 BINGRP= dialer
12 WARNS?= 2
14 LDADD= -lcrypt -lutil -lmd
15 DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
17 # Callback Control Protocol
18 CFLAGS+=-DCBCP_SUPPORT
19 SRCS+= cbcp.c
21 # Filter support
22 CFLAGS+=-DPPP_FILTER -I${.CURDIR}/../../contrib/libpcap
23 CFLAGS+=-include ${.CURDIR}/../../lib/libpcap/config.h
24 LDADD+= -lpcap
25 DPADD+= ${LIBPCAP}
27 # MS-CHAP support. Requires the DES library.
28 .if !defined(NO_CRYPT)
29 CFLAGS+= -DCHAPMS
30 SRCS+= chap_ms.c
31 LDADD+= -lprivate_crypto
32 DPADD+= ${LIBRECRYPTO}
33 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
34 CFLAGS+= -I${.CURDIR}/../../crypto/libressl/include
35 .endif
37 .include <bsd.prog.mk>