Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 85998 invoked from network); 24 Aug 2007 11:16:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 11:16:20 -0000 Received: (qmail 67925 invoked by uid 500); 24 Aug 2007 11:16:16 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 67873 invoked by uid 500); 24 Aug 2007 11:16:16 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 67862 invoked by uid 99); 24 Aug 2007 11:16:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 04:16:16 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 11:17:01 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8ABF11A9838; Fri, 24 Aug 2007 04:15:57 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r569354 - /httpd/httpd/branches/2.2.x/Makefile.win Date: Fri, 24 Aug 2007 11:15:57 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070824111557.8ABF11A9838@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Fri Aug 24 04:15:56 2007 New Revision: 569354 URL: http://svn.apache.org/viewvc?rev=569354&view=rev Log: Once we have a .vcproj, and if we can exec devenv.exe, then prefer it. If we don't, we still need to use the .mak files, when present, because a VC5 user (yes it still works) can't build from .dsp files. But let the user do whatever they like, as trivial as USEMAK=1 to override the presense of .vcproj files, which is a huge improvement over the prior detection. Backport: r569352 Modified: httpd/httpd/branches/2.2.x/Makefile.win Modified: httpd/httpd/branches/2.2.x/Makefile.win URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/Makefile.win?rev=569354&r1=569353&r2=569354&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/Makefile.win (original) +++ httpd/httpd/branches/2.2.x/Makefile.win Fri Aug 24 04:15:56 2007 @@ -28,9 +28,24 @@ # so the server root should be given in forward slashes (quoted), # preferably with the drive designation! +!IF EXIST("httpd.vcproj") && ([devenv /help > NUL 2>&1] == 0) \ + && !defined(USEMAK) && !defined(USEDSW) +USESLN=1 +USEMAK=0 +USEDSW=0 +!ELSEIF EXIST("httpd.mak") && !defined(USEDSW) +USESLN=0 +USEMAK=1 +USEDSW=0 +!ELSE +USESLN=0 +USEMAK=0 +USEDSW=1 +!ENDIF + default: _apacher -!IF ("$(CTARGET)" == "") && !EXIST("httpd.mak") && EXIST("Apache.sln") +!IF ("$(CTARGET)" == "") && ($(USESLN) == 1) CTARGET=/build !ENDIF @@ -53,14 +68,14 @@ !ENDIF _tryssl: -!IF EXIST("modules\ssl\mod_ssl.mak") +!IF $(USEMAK) == 1 cd modules\ssl $(MAKE) $(MAKEOPT) -f mod_ssl.mak CFG="mod_ssl - Win32 $(LONG)" RECURSE=0 $(CTARGET) cd ..\.. cd support $(MAKE) $(MAKEOPT) -f abs.mak CFG="abs - Win32 $(LONG)" RECURSE=0 $(CTARGET) cd .. -!ELSEIF EXIST("Apache.sln") +!ELSEIF $(USESLN) == 1 devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_ssl devenv Apache.sln /useenv $(CTARGET) $(LONG) /project abs !ELSE @@ -84,11 +99,11 @@ !IF EXIST("srclib\zlib") _tryzlib: -!IF EXIST("modules\filters\mod_deflate.mak") +!IF $(USEMAK) == 1 cd modules\filters $(MAKE) $(MAKEOPT) -f mod_deflate.mak CFG="mod_deflate - Win32 $(LONG)" RECURSE=0 $(CTARGET) cd ..\.. -!ELSEIF EXIST("Apache.sln") +!ELSEIF $(USESLN) == 1 devenv Apache.sln /useenv $(CTARGET) $(LONG) /project mod_deflate !ELSE @msdev Apache.dsw /USEENV /MAKE \ @@ -169,7 +184,7 @@ y << -!IF EXIST("httpd.mak") +!IF $(USEMAK) == 1 _cleanr: $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET=CLEAN _build @@ -352,7 +367,7 @@ $(MAKE) $(MAKEOPT) -f wintty.mak CFG="wintty - Win32 $(LONG)" RECURSE=0 $(CTARGET) cd ..\.. -!ELSEIF EXIST("Apache.sln") +!ELSEIF $(USESLN) == 1 _cleanr: $(MAKE) $(MAKEOPT) -f Makefile.win SHORT=R LONG=Release CTARGET="/clean" _build