summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-10-30 08:00:59 +0000
committerRichard Levitte <levitte@openssl.org>2001-10-30 08:00:59 +0000
commita7b42009c43876f126790b3dc4260e3728695cc4 (patch)
treedd9105aee8ac45cdfe118a2b9e3b13ecd026ab7f /ssl
parent7b5ffd683412b85d9b4195fc24b5966d41b591ae (diff)
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 'ssl')
-rw-r--r--ssl/Makefile.ssl8
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/Makefile.ssl b/ssl/Makefile.ssl
index d643b4252f..2a3f8406d8 100644
--- a/ssl/Makefile.ssl
+++ b/ssl/Makefile.ssl
@@ -26,6 +26,7 @@ TEST=ssltest.c
APPS=
LIB=$(TOP)/libssl.a
+SHARED_LIB= libssl$(SHLIB_EXT)
LIBSRC= \
s2_meth.c s2_srvr.c s2_clnt.c s2_lib.c s2_enc.c s2_pkt.c \
s3_meth.c s3_srvr.c s3_clnt.c s3_lib.c s3_enc.c s3_pkt.c s3_both.c \
@@ -55,13 +56,18 @@ ALL= $(GENERAL) $(SRC) $(HEADER)
top:
(cd ..; $(MAKE) DIRS=$(DIR) all)
-all: lib
+all: lib shared
lib: $(LIBOBJ)
$(AR) $(LIB) $(LIBOBJ)
$(RANLIB) $(LIB) || echo Never mind.
@touch lib
+shared:
+ if [ -n "$(SHARED_LIBS)" ]; then \
+ (cd ..; make $(SHARED_LIB)); \
+ fi
+
files:
$(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO