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>
This commit is contained in:
Andrzej Bialecki 1999-07-15 21:47:52 +00:00
parent 1854719067
commit a4df7ffed9

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.12 1998/10/11 19:40:38 jdp Exp $
# $Id: Makefile,v 1.13 1999/04/29 17:56:22 jdp Exp $
CFLAGS+= -DHAVE_PATHS_H
@ -28,7 +28,7 @@ LDADD+= -lpcap
DPADD+= ${LIBPCAP}
# MS-CHAP support. Requires the DES library.
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH)
DISTRIBUTION=des
CFLAGS+=-DCHAPMS
SRCS+= chap_ms.c
@ -36,4 +36,13 @@ 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>