This version is slightly better than rev 1.10. There are still missing

dependencies for openssl/*.h.  I cannot reproduce any critical race
conditions with this revision.
This commit is contained in:
David E. O'Brien 2000-05-15 17:28:06 +00:00
parent f80c5c4a34
commit f254f0ac49

View File

@ -15,13 +15,11 @@ CFLAGS+= -DDEVRANDOM=\"/dev/urandom\"
WITH_RSA?= YES
SRCS+= buildinf.h
CLEANFILES+= buildinf.h
SRCS+= buildinf.h openssl/opensslconf.h
CLEANFILES+= buildinf.h openssl/opensslconf.h
CLEANDIRS+= openssl
# this bogus dependency was the easiest way to get the openssl/
# directory populated
buildinf.h: openssl/opensslconf.h openssl/headers-copied
buildinf.h:
( echo "#ifndef MK1MF_BUILD"; \
echo " /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
echo " #define CFLAGS \"$(CC)\""; \
@ -29,11 +27,11 @@ buildinf.h: openssl/opensslconf.h openssl/headers-copied
echo " #define DATE \"`LC_TIME=C date`\""; \
echo "#endif" ) > ${.TARGET}
openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
@mkdir -p openssl
cp ${.OODATE} ${.TARGET}
# XXX: The openssl/ dependencies are not correct, in that a change in
# any of ${CRYPTO_HDRS} ${EXTRA_HDRS} will no repopulate openssl/.
# This deficiency will be fixed in a later commit.
openssl/headers-copied:
@mkdir -p openssl
openssl/opensslconf.h: ../libcrypto/opensslconf-${MACHINE_ARCH}.h
mkdir -p openssl
cp ${.OODATE} ${.TARGET}
${INSTALL} ${COPY} -m 444 ${CRYPTO_HDRS} ${EXTRA_HDRS} openssl
@touch ${.TARGET}