freebsd-skq/usr.sbin/pppd/Makefile
ume 04e38f0633 MFC: Teach an IPV6CP to pppd(8).
The eui64.[ch] and ipv6cp.[ch] were taken from ppp-2.3.11.
However, our stock pppd(8) doesn't provide option_t nor some
utility functions.  So, I made some hacks to adjust to our
stock pppd(8).
The sys_bsd.c part was taken from NetBSD with some
modifications to adjust to our stock pppd(8).

	usr.sbin/pppd/Makefile:		1.31
	usr.sbin/pppd/eui64.c:		1.2
	usr.sbin/pppd/eui64.h:		1.1
	usr.sbin/pppd/ipv6cp.c:		1.2
	usr.sbin/pppd/ipv6cp.h:		1.2
	usr.sbin/pppd/main.c:		1.22
	usr.sbin/pppd/options.c:	1.25
	usr.sbin/pppd/pathnames.h:	1.11
	usr.sbin/pppd/pppd.8:		1.27
	usr.sbin/pppd/pppd.h:		1.14
	usr.sbin/pppd/sys-bsd.c:	1.21
2006-11-19 07:27:42 +00:00

55 lines
1.2 KiB
Makefile

# $FreeBSD$
# 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
DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
LDADD= -lcrypt -lutil -lmd
# Support SPX/IPX - not quite ready
#CFLAGS+= -DIPX_CHANGE
#SRCS+= ipxcp.c
# Callback Control Protocol
CFLAGS+= -DCBCP_SUPPORT
SRCS+= cbcp.c
# Filter support
CFLAGS+= -DPPP_FILTER
DPADD+= ${LIBPCAP}
LDADD+= -lpcap
# MS-CHAP support. Requires the DES library.
.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
CFLAGS+= -DCHAPMS
SRCS+= chap_ms.c
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.endif
.if !defined(NO_INET6)
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>