[cpp-msbuild] 02/04: SSPCPP-765 Cleanup
Rod Widdowson
rdw at steadingsoftware.com
Fri Nov 24 11:31:31 EST 2017
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository cpp-msbuild.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-msbuild.git;a=commit;h=5643c7ce4b31d11f463122bd33abe8b373665540
commit 5643c7ce4b31d11f463122bd33abe8b373665540
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Fri Nov 24 14:30:30 2017 +0000
SSPCPP-765 Cleanup
https://issues.shibboleth.net/jira/browse/SSPCPP-765
Avoid needless rebbuild of openssl by looking for a known
include file and only building (via a recursive make) if
it isn't there.
---
dependencies/dependency.make | 28 ++++++++++++++++++----------
1 file changed, 18 insertions(+), 10 deletions(-)
diff --git a/dependencies/dependency.make b/dependencies/dependency.make
index a87b8dc..5447ebd 100644
--- a/dependencies/dependency.make
+++ b/dependencies/dependency.make
@@ -46,7 +46,7 @@ help:
@echo " ROOT_DIR
@echo " OPENSSL_DIR
-clean: openssl-clean
+clean: openssl-clean zlib-clean
all: openssl zlib
@@ -107,6 +107,8 @@ $(ROOT_DIR)\$(ZLIB_DIR)\zlib2.sed:
$(ROOT_DIR)\$(ZLIB_DIR)\zlib3.sed $(ROOT_DIR)\$(ZLIB_DIR)\zlib4.sed: $$(@F)
copy $(@F) $(ROOT_DIR)\$(ZLIB_DIR)
+test: $(ROOT_DIR)\$(ZLIB_DIR)\zlib3.sed
+
$(ROOT_DIR)\$(ZLIB_DIR)\zlib1d.sed:
echo s/SHAREDLIB =.*$$/SHAREDLIB=$(ZLIB_SHAREDLIB)D.dll/ > $@
@@ -122,32 +124,32 @@ $(ROOT_DIR)\$(ZLIB_DIR)\$(ZlibTargetDir)\Release\$(ZLIB_IMPLIB).lib: $$(@D)\$(ZL
$(ROOT_DIR)\$(ZLIB_DIR)\$(ZlibTargetDir)\Debug\$(ZLIB_IMPLIB)D.lib: $$(@D)\$(ZLIB_SHAREDLIB)D.dll
copy $(ROOT_DIR)\$(ZLIB_DIR)\$(ZLIB_IMPLIB)D.lib $(@D)
-
$(ROOT_DIR)\$(ZLIB_DIR)\$(ZlibTargetDir)\release\$(ZLIB_SHAREDLIB).dll: $(ROOT_DIR)\$(ZLIB_DIR)\win32\makefile.shib
+ title Build zlib $(VSCMD_ARG_TGT_ARCH) Release
cd $(ROOT_DIR)\$(ZLIB_DIR)
nmake/f win32\makefile.shib clean
nmake/f win32\makefile.shib
copy $(@F) $@
$(ROOT_DIR)\$(ZLIB_DIR)\$(ZlibTargetDir)\debug\$(ZLIB_SHAREDLIB)D.dll: $(ROOT_DIR)\$(ZLIB_DIR)\win32\makefile.shib.debug
+ title Build zlib $(VSCMD_ARG_TGT_ARCH) Debug
cd $(ROOT_DIR)\$(ZLIB_DIR)
nmake/f win32\makefile.shib.debug clean
nmake/f win32\makefile.shib.debug
copy $(@F) $@
-
#
# OpenSSL
#
openssl: openssl-debug openssl-release
-openssl-release: openssl-test openssl-release-configure openssl-build
+openssl-release: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)\include\openssl\opensslconf.h
-openssl-debug: openssl-test openssl-debug-configure openssl-build
+openssl-debug: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)Debug\include\openssl\opensslconf.h
openssl-test: test-env $(ROOT_DIR)\$(OPENSSL_DIR)
-openssl-clean: openssl-test openssl-clean-configure
+openssl-clean: openssl-test
cd $(ROOT_DIR)\$(OPENSSL_DIR)
-2 nmake distclean
-2 rd/s/q x64
@@ -159,15 +161,21 @@ openssl-clean-configure: openssl-test
cd $(ROOT_DIR)\$(OPENSSL_DIR)
-2 nmake distclean
-openssl-release-configure: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\Configure openssl-clean-configure
+$(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)\include\openssl\opensslconf.h:
+ nmake /f dependency.make openssl-clean-configure openssl-release-configure openssl-build
+
+$(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)Debug\include\openssl\opensslconf.h:
+ nmake /f dependency.make openssl-clean-configure openssl-debug-configure openssl-build
+
+openssl-release-configure: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\Configure
title Build OpenSSL $(VSCMD_ARG_TGT_ARCH) Release
cd $(ROOT_DIR)\$(OPENSSL_DIR)
- perl Configure VC-$(OpenSSLName) --prefix=%ROOT_DIR%\%OPENSSL_DIR%\$(VSCMD_ARG_TGT_ARCH)
+ perl Configure VC-$(OpenSSLName) --prefix=$(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)
-openssl-debug-configure: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\ConfigureD openssl-clean-configure
+openssl-debug-configure: openssl-test $(ROOT_DIR)\$(OPENSSL_DIR)\ConfigureD
title Build OpenSSL $(VSCMD_ARG_TGT_ARCH) Debug
cd $(ROOT_DIR)\$(OPENSSL_DIR)
- perl ConfigureD debug-VC-$(OpenSSLName) --prefix=%ROOT_DIR%\%OPENSSL_DIR%\$(VSCMD_ARG_TGT_ARCH)Debug
+ perl ConfigureD debug-VC-$(OpenSSLName) --prefix=$(ROOT_DIR)\$(OPENSSL_DIR)\$(VSCMD_ARG_TGT_ARCH)Debug
openssl-build: $(ROOT_DIR)\$(OPENSSL_DIR)\makefile
cd $(ROOT_DIR)\$(OPENSSL_DIR)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list