summaryrefslogtreecommitdiffstats
path: root/crypto/Makefile.ssl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-10-30 09:00:59 +0100
committerRichard Levitte <levitte@openssl.org>2001-10-30 09:00:59 +0100
commita7b42009c43876f126790b3dc4260e3728695cc4 (patch)
treedd9105aee8ac45cdfe118a2b9e3b13ecd026ab7f /crypto/Makefile.ssl
parentAddapt VMS scripts to the newer disk layout system ODS-5, which allows more t... (diff)
downloadopenssl-a7b42009c43876f126790b3dc4260e3728695cc4.tar.xz
openssl-a7b42009c43876f126790b3dc4260e3728695cc4.zip
Change the shared library support so the shared libraries get built
sooner and the programs get built against the shared libraries. This requires a bit more work. Things like -rpath and the possibility to still link the programs statically should be included. Some cleanup is also needed. This will be worked on.
Diffstat (limited to 'crypto/Makefile.ssl')
-rw-r--r--crypto/Makefile.ssl8
1 files changed, 7 insertions, 1 deletions
diff --git a/crypto/Makefile.ssl b/crypto/Makefile.ssl
index 967d0205de..cfc05fe13a 100644
--- a/crypto/Makefile.ssl
+++ b/crypto/Makefile.ssl
@@ -35,6 +35,7 @@ SDIRS= md2 md5 sha mdc2 hmac ripemd \
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,7 +50,7 @@ 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"; \
@@ -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 \