1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/usr.sbin/pppd/Makefile

57 lines
1.2 KiB
Makefile
Raw Normal View History

1999-08-28 01:35:59 +00:00
# $FreeBSD$
.include <bsd.own.mk>
# I once used this extensively, but no longer have a modem. Feel free
# to ask me questions about it, but I disclaim ownership now. -Peter
PROG= pppd
MAN= pppd.8
SRCS= main.c magic.c fsm.c lcp.c ipcp.c ipxcp.c upap.c chap.c ccp.c \
demand.c auth.c options.c sys-bsd.c
BINMODE=4550
BINOWN= root
BINGRP= dialer
CFLAGS+= -DHAVE_PATHS_H
1997-10-10 11:59:02 +00:00
DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
2003-04-04 17:49:21 +00:00
LDADD= -lcrypt -lutil -lmd
1997-10-10 11:59:02 +00:00
# Support SPX/IPX - not quite ready
#CFLAGS+= -DIPX_CHANGE
#SRCS+= ipxcp.c
# Callback Control Protocol
CFLAGS+= -DCBCP_SUPPORT
SRCS+= cbcp.c
1997-10-10 11:59:02 +00:00
# Filter support
CFLAGS+= -DPPP_FILTER
1997-10-10 11:59:02 +00:00
DPADD+= ${LIBPCAP}
2003-04-04 17:49:21 +00:00
LDADD+= -lpcap
# MS-CHAP support. Requires the DES library.
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
CFLAGS+= -DCHAPMS
SRCS+= chap_ms.c
2000-02-24 21:10:28 +00:00
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.endif
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+=-DINET6
SRCS+= eui64.c ipv6cp.c
.endif
.if defined(RELEASE_CRUNCH)
# We must create these objects because crunchgen will link them,
# and we don't want any unused symbols to spoil the final link.
SRCS+= chap_ms.c
chap_ms.o:
>null_${.PREFIX}.c
cc -c -o ${.TARGET} null_${.PREFIX}.c
.endif
.include <bsd.prog.mk>