From: William A. Rowe Jr Date: Tue, 14 May 2002 12:37:43 +0000 (+0000) Subject: Fix command line devenv builds for MS VS 7.0 users. msdev is a command X-Git-Tag: 2.0.37~398 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=735b2766f35479648c2d4eac422d72be1cebb228;p=apache Fix command line devenv builds for MS VS 7.0 users. msdev is a command that no longer exists, and we won't count on .mak files [although they are much faster if they exist, as there is no such concept as /norecurse in this newer release.] We will use the existance of a converted Apache.sln (solution) file as proof of 7.0, there isn't another graceful way to check that I see. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95084 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/Makefile.win b/Makefile.win index 0c1d170416..ffbfbb36ab 100644 --- a/Makefile.win +++ b/Makefile.win @@ -27,6 +27,10 @@ default: _apacher +!IF ("$(CTARGET)" == "") && EXIST("Apache.sln") +CTARGET=/build +!ENDIF + !IF !EXIST("srclib\apr") !MESSAGE Please check out or download and unpack the Apache Portability Runtime !MESSAGE sources (apr and apr-util) into your $(INSTDIR)\srclib directory. @@ -61,6 +65,9 @@ _tryssl: cd support $(MAKE) $(MAKEOPT) -f abs.mak CFG="abs - Win32 $(LONG)" RECURSE=0 .\$(LONG)\abs.exe cd .. +!ELSEIF EXIST("Apache.sln") + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_ssl + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project abs !ELSE msdev Apache.dsw /USEENV /MAKE \ "mod_ssl - Win32 $(LONG)" \ @@ -85,6 +92,8 @@ _tryzlib: cd modules\filters $(MAKE) $(MAKEOPT) -f mod_deflate.mak CFG="mod_deflate - Win32 $(LONG)" RECURSE=0 .\$(LONG)\mod_deflate.so cd ..\.. +!ELSEIF EXIST("Apache.sln") + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_deflate !ELSE msdev Apache.dsw /USEENV /MAKE \ "mod_deflate - Win32 $(LONG)" /NORECURSE $(CTARGET) @@ -276,6 +285,26 @@ _build: $(MAKE) $(MAKEOPT) -f wintty.mak CFG="wintty - Win32 $(LONG)" RECURSE=0 $(CTARGET) cd ..\.. +!ELSEIF EXIST("Apache.sln") + +_cleanr: + $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET="/clean" _build + +_cleand: + $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=D LONG=Debug CTARGET="/clean" _build + +_build: + echo Building Win32 $(LONG) targets ($(SHORT) suffixes) + -del $(LONG)\buildmark.obj + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project BuildBin +!IF EXIST("srclib\openssl") + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_ssl + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project abs +!ENDIF +!IF EXIST("srclib\zlib") + devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_deflate +!ENDIF + !ELSE _cleanr: