summaryrefslogtreecommitdiffstats
path: root/Makefile.org
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-10-09 14:52:01 +0000
committerRichard Levitte <levitte@openssl.org>2002-10-09 14:52:01 +0000
commit88c80b3e755248ca155e61b834c1862b080e2a7e (patch)
treecfca7580c99da227ad30853b22aa654e4168dfed /Makefile.org
parent27bad5ad3d1e0cf23595a6352ba3737233f3b8c4 (diff)
Change the main Makefile to have "mini-build" targets.
PR: 253, last part.
Diffstat (limited to 'Makefile.org')
-rw-r--r--Makefile.org24
1 files changed, 18 insertions, 6 deletions
diff --git a/Makefile.org b/Makefile.org
index cdeaae66d7..fa99283e5c 100644
--- a/Makefile.org
+++ b/Makefile.org
@@ -205,18 +205,30 @@ HEADER= e_os.h
# When we're prepared to use shared libraries in the programs we link here
# we might remove 'clean-shared' from the targets to perform at this stage
-all: Makefile.ssl sub_all
+all: Makefile.ssl build_all
-sub_all:
- @for i in $(DIRS); \
- do \
+BUILD_CMD=if echo " $(DIRS) " | grep " $$i " >/dev/null 2>/dev/null; then \
if [ -d "$$i" ]; then \
(cd $$i && echo "making all in $$i..." && \
$(MAKE) CC='${CC}' PLATFORM='${PLATFORM}' CFLAG='${CFLAG}' SDIRS='$(SDIRS)' INSTALLTOP='${INSTALLTOP}' PEX_LIBS='${PEX_LIBS}' EX_LIBS='${EX_LIBS}' BN_ASM='${BN_ASM}' DES_ENC='${DES_ENC}' BF_ENC='${BF_ENC}' CAST_ENC='${CAST_ENC}' RC4_ENC='${RC4_ENC}' RC5_ENC='${RC5_ENC}' SHA1_ASM_OBJ='${SHA1_ASM_OBJ}' MD5_ASM_OBJ='${MD5_ASM_OBJ}' RMD160_ASM_OBJ='${RMD160_ASM_OBJ}' AR='${AR}' PROCESSOR='${PROCESSOR}' PERL='${PERL}' RANLIB='${RANLIB}' KRB5_INCLUDES='${KRB5_INCLUDES}' LIBKRB5='${LIBKRB5}' EXE_EXT='${EXE_EXT}' SHARED_LIBS='${SHARED_LIBS}' SHLIB_EXT='${SHLIB_EXT}' SHLIB_TARGET='${SHLIB_TARGET}' all ) || exit 1; \
else \
$(MAKE) $$i; \
- fi; \
- done;
+ fi; fi
+
+build_all: build_libs build_apps build_tests build_tools
+
+build_libs: build_crypto build_ssl
+
+build_crypto:
+ @i=crypto; $(BUILD_CMD)
+build_ssl:
+ @i=ssl; $(BUILD_CMD)
+build_apps:
+ @i=apps; $(BUILD_CMD)
+build_tests:
+ @i=test; $(BUILD_CMD)
+build_tools:
+ @i=tools; $(BUILD_CMD)
libcrypto$(SHLIB_EXT): libcrypto.a
@if [ "$(SHLIB_TARGET)" != "" ]; then \