Use ${LDFLAGS} instead of static for compiling binaries. Neither is

sufficient for cross compiling but it's best to test with the flags
normally used.

Use ${ECHO} instead of `echo' so that `make -s' is fairly quiet.
This commit is contained in:
Bruce Evans 1994-08-28 17:45:25 +00:00
parent f34a7038a6
commit d160679a5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2368

View File

@ -64,17 +64,17 @@ md5.ref:
@echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> $@
beforeinstall: md2.ref md4.ref md5.ref md2.3 md4.3 md5.3
@echo if any of these test fail, the code produces wrong results
@echo and should NOT be used.
${CC} ${CFLAGS} -static -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
@${ECHO} if any of these test fail, the code produces wrong results
@${ECHO} and should NOT be used.
${CC} ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md2.ref -
@echo MD2 passed test
${CC} ${CFLAGS} -static -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
@${ECHO} MD2 passed test
${CC} ${CFLAGS} ${LDFLAGS} -DMD=4 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md4.ref -
@echo MD4 passed test
${CC} ${CFLAGS} -static -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
@${ECHO} MD4 passed test
${CC} ${CFLAGS} ${LDFLAGS} -DMD=5 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
./mddriver | cmp md5.ref -
@echo MD5 passed test
@${ECHO} MD5 passed test
-rm -f mddriver
beforedepend: md2hl.c md4hl.c md5hl.c