Make sure that date is run under the C locale, so dates are given in the
[openssl.git] / crypto / Makefile.ssl
index 967d0205de8ee74e884170159a3398a865437bdc..2ef333ef8b3bfddf24a46869305a3c7bce4ee42d 100644 (file)
@@ -28,13 +28,14 @@ LIBS=
 
 SDIRS= md2 md5 sha mdc2 hmac ripemd \
        des rc2 rc4 rc5 idea bf cast \
-       bn ec rsa dsa dh dso engine rijndael \
+       bn ec rsa dsa ecdsa dh dso engine aes \
        buffer bio stack lhash rand err objects \
        evp asn1 pem x509 x509v3 conf txt_db pkcs7 pkcs12 comp ocsp ui krb5
 
 GENERAL=Makefile README crypto-lib.com install.com
 
 LIB= $(TOP)/libcrypto.a
+SHARED_LIB= libcrypto$(SHLIB_EXT)
 LIBSRC=        cryptlib.c mem.c mem_dbg.c cversion.c ex_data.c tmdiff.c cpt_err.c ebcdic.c uid.c o_time.c
 LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o tmdiff.o cpt_err.o ebcdic.o uid.o o_time.o
 
@@ -49,14 +50,14 @@ ALL=    $(GENERAL) $(SRC) $(HEADER)
 top:
        @(cd ..; $(MAKE) DIRS=$(DIR) all)
 
-all: buildinf.h lib subdirs
+all: buildinf.h lib subdirs shared
 
 buildinf.h: ../Makefile.ssl
        ( echo "#ifndef MK1MF_BUILD"; \
        echo "  /* auto-generated by crypto/Makefile.ssl for crypto/cversion.c */"; \
        echo "  #define CFLAGS \"$(CC) $(CFLAG)\""; \
        echo "  #define PLATFORM \"$(PLATFORM)\""; \
-       echo "  #define DATE \"`date`\""; \
+       echo "  #define DATE \"`LC_ALL=C LC_TIME=C date`\""; \
        echo "#endif" ) >buildinf.h
 
 testapps:
@@ -95,6 +96,11 @@ lib: $(LIBOBJ)
        $(RANLIB) $(LIB) || echo Never mind.
        @touch lib
 
+shared:
+       if [ -n "$(SHARED_LIBS)" ]; then \
+               (cd ..; make $(SHARED_LIB)); \
+       fi
+
 libs:
        @for i in $(SDIRS) ;\
        do \