crypto/Makefile and make Makefile.org and fips/Makefile more discreet.
sigs: $(SIGS)
libcrypto.a.sha1: libcrypto.a
- if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
+ @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
$(RANLIB) libcrypto.a; \
fips/sha1/fips_standalone_sha1 libcrypto.a > libcrypto.a.sha1; \
fi
@touch lib
shared: buildinf.h lib subdirs
- if [ -n "$(SHARED_LIBS)" ]; then \
- if ! egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
+ @if [ -n "$(SHARED_LIBS)" ]; then \
+ egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null || \
(cd ..; $(MAKE) $(SHARED_LIB)); \
- fi \
fi
libs:
top:
@(cd ..; $(MAKE) DIRS=$(DIR) all)
-all: subdirs lib check shared
+all:
+ @if egrep 'define OPENSSL_FIPS' $(TOP)/include/openssl/opensslconf.h > /dev/null; then \
+ $(MAKE) -e subdirs check lib shared; \
+ fi
check:
TOP=`pwd`/$(TOP) ./fips_check_sha1 fingerprint.sha1 $(SRC) $(HEADER)