1999-08-28 02:35:59 +01:00
|
|
|
# $FreeBSD$
|
1995-10-31 21:21:51 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
2003-10-29 19:24:04 +00:00
|
|
|
# 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
|
1994-09-25 03:32:18 +01:00
|
|
|
|
|
|
|
PROG= pppd
|
2001-07-20 07:20:32 +01:00
|
|
|
MAN= pppd.8
|
1997-08-19 18:52:48 +01:00
|
|
|
SRCS= main.c magic.c fsm.c lcp.c ipcp.c ipxcp.c upap.c chap.c ccp.c \
|
1997-08-22 16:57:37 +01:00
|
|
|
demand.c auth.c options.c sys-bsd.c
|
2001-07-24 03:37:48 +01:00
|
|
|
BINMODE=4550
|
|
|
|
BINOWN= root
|
|
|
|
BINGRP= dialer
|
1994-09-25 03:32:18 +01:00
|
|
|
|
2001-07-20 07:20:32 +01:00
|
|
|
CFLAGS+= -DHAVE_PATHS_H
|
1997-08-22 16:50:09 +01:00
|
|
|
|
1997-10-10 12:59:02 +01:00
|
|
|
DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
|
2003-04-04 18:49:21 +01:00
|
|
|
LDADD= -lcrypt -lutil -lmd
|
1997-10-10 12:59:02 +01:00
|
|
|
|
1997-08-22 16:50:09 +01:00
|
|
|
# Support SPX/IPX - not quite ready
|
2001-07-20 07:20:32 +01:00
|
|
|
#CFLAGS+= -DIPX_CHANGE
|
1997-08-19 18:52:48 +01:00
|
|
|
#SRCS+= ipxcp.c
|
|
|
|
|
1997-08-22 16:50:09 +01:00
|
|
|
# Callback Control Protocol
|
2001-07-20 07:20:32 +01:00
|
|
|
CFLAGS+= -DCBCP_SUPPORT
|
1997-08-22 16:50:09 +01:00
|
|
|
SRCS+= cbcp.c
|
|
|
|
|
1997-10-10 12:59:02 +01:00
|
|
|
# Filter support
|
2001-07-20 07:20:32 +01:00
|
|
|
CFLAGS+= -DPPP_FILTER
|
1997-10-10 12:59:02 +01:00
|
|
|
DPADD+= ${LIBPCAP}
|
2003-04-04 18:49:21 +01:00
|
|
|
LDADD+= -lpcap
|
1994-09-25 03:32:18 +01:00
|
|
|
|
1998-10-11 20:40:38 +01:00
|
|
|
# MS-CHAP support. Requires the DES library.
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)
|
2001-07-20 07:20:32 +01:00
|
|
|
CFLAGS+= -DCHAPMS
|
1999-04-29 18:56:28 +01:00
|
|
|
SRCS+= chap_ms.c
|
2000-02-24 21:10:28 +00:00
|
|
|
LDADD+= -lcrypto
|
|
|
|
DPADD+= ${LIBCRYPTO}
|
1999-04-29 18:56:28 +01:00
|
|
|
.endif
|
1998-10-11 20:40:38 +01:00
|
|
|
|
1999-07-15 22:47:52 +01:00
|
|
|
.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
|
|
|
|
|
1994-09-25 03:32:18 +01:00
|
|
|
.include <bsd.prog.mk>
|