Restructure make targets to allow parallel make.
authorLutz Jänicke <jaenicke@openssl.org>
Wed, 3 Dec 2003 16:29:41 +0000 (16:29 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Wed, 3 Dec 2003 16:29:41 +0000 (16:29 +0000)
Submitted by: Witold Filipczyk <witekfl@poczta.gazeta.pl>

PR: #513

crypto/Makefile.ssl
ssl/Makefile.ssl

index a81b367..037e72d 100644 (file)
@@ -52,7 +52,7 @@ ALL=    $(GENERAL) $(SRC) $(HEADER)
 top:
        @(cd ..; $(MAKE) DIRS=$(DIR) all)
 
-all: buildinf.h lib subdirs shared
+all: shared
 
 buildinf.h: ../Makefile.ssl
        ( echo "#ifndef MK1MF_BUILD"; \
@@ -98,7 +98,7 @@ lib:  $(LIBOBJ)
        $(RANLIB) $(LIB) || echo Never mind.
        @touch lib
 
-shared:
+shared: buildinf.h lib subdirs
        if [ -n "$(SHARED_LIBS)" ]; then \
                (cd ..; $(MAKE) $(SHARED_LIB)); \
        fi
index c1e34b2..39b958f 100644 (file)
@@ -55,14 +55,14 @@ ALL=    $(GENERAL) $(SRC) $(HEADER)
 top:
        (cd ..; $(MAKE) DIRS=$(DIR) all)
 
-all:   lib shared
+all:   shared
 
 lib:   $(LIBOBJ)
        $(AR) $(LIB) $(LIBOBJ)
        $(RANLIB) $(LIB) || echo Never mind.
        @touch lib
 
-shared:
+shared: lib
        if [ -n "$(SHARED_LIBS)" ]; then \
                (cd ..; $(MAKE) $(SHARED_LIB)); \
        fi