mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Build *.3 and *.ref at build time, not at install time.
This commit is contained in:
parent
9ce7bcf332
commit
a9d26259dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2577
@ -12,6 +12,8 @@ MLINKS+=mdX.3 MD5End.3 mdX.3 MD5File.3 mdX.3 MD5Data.3
|
||||
CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver
|
||||
CFLAGS+= -I${.CURDIR}
|
||||
|
||||
all: md2.3 md2.ref md4.3 md4.ref md5.3 md5.ref
|
||||
|
||||
md2hl.c: mdXhl.c
|
||||
sed -e 's/mdX/md2/g' -e 's/MDX/MD2/g' $> > $@
|
||||
|
||||
@ -63,7 +65,7 @@ md5.ref:
|
||||
@echo 'MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f' >> $@
|
||||
@echo 'MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a' >> $@
|
||||
|
||||
beforeinstall: md2.ref md4.ref md5.ref md2.3 md4.3 md5.3
|
||||
beforeinstall:
|
||||
@${ECHO} if any of these test fail, the code produces wrong results
|
||||
@${ECHO} and should NOT be used.
|
||||
${CC} -static ${CFLAGS} ${LDFLAGS} -DMD=2 -o mddriver ${.CURDIR}/mddriver.c -L. -lmd
|
||||
|
Loading…
Reference in New Issue
Block a user