freebsd-dev/usr.sbin/pppd/Makefile
Andrzej Bialecki a4df7ffed9 Add a knob to avoid DES code when making crunched binary. This isn't a beauty
incarnated, it just matches other deficiencies related to crunchgen
and friends... and we already have similar code in ppp/Makefile.

RELEASE_CRUNCH should be axed, but for now let's be consistent.

Submitted by:	Patrick Powell <papowell@astart.com>
1999-07-15 21:47:52 +00:00

49 lines
1.1 KiB
Makefile

# $Id: Makefile,v 1.13 1999/04/29 17:56:22 jdp Exp $
CFLAGS+= -DHAVE_PATHS_H
PROG= pppd
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
MAN8= pppd.8
BINMODE=4555
# as per handbook policies section
MAINTAINER= peter@freebsd.org
LDADD= -lcrypt -lutil -lmd
DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD}
# 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
LDADD+= -lpcap
DPADD+= ${LIBPCAP}
# MS-CHAP support. Requires the DES library.
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH)
DISTRIBUTION=des
CFLAGS+=-DCHAPMS
SRCS+= chap_ms.c
LDADD+= -ldes
DPADD+= ${LIBDES}
.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>