]> granicus.if.org Git - apache/commitdiff
apu-1.6-ify makefile.win. preserve building with apu<1.6
authorGregg Lewis Smith <gsmith@apache.org>
Wed, 19 Apr 2017 00:40:31 +0000 (00:40 +0000)
committerGregg Lewis Smith <gsmith@apache.org>
Wed, 19 Apr 2017 00:40:31 +0000 (00:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1791843 13f79535-47bb-0310-9956-ffa450edef68

Makefile.win

index 66e562de5a71a3f11be9fe35fe367fc75f51115d..9e7b77dca5522882e256c83a789269964e4c22dc 100644 (file)
@@ -80,6 +80,15 @@ SSLLIB=ssleay32
 !ENDIF
 !ENDIF
 
+# APU 1.6 (and up?)
+!IF EXIST("srclib\apr-util\xml\xml.mak")
+EXPAT=xml
+EXPBCK = ..
+!ELSE
+EXPAT=xml\expat\lib
+EXPBCK = ..\..\..
+!ENDIF
+
 default: _buildr
 
 !IF ("$(CTARGET)" == "") && ($(USESLN) == 1)
@@ -392,9 +401,9 @@ _build:
        cd ..
 !ENDIF
        cd ..\..
-       cd srclib\apr-util\xml\expat\lib
+       cd srclib\apr-util\$(EXPAT)
         $(MAKE) $(MAKEOPT) -f xml.mak             CFG="xml - Win32 $(LONG)" RECURSE=0 $(CTARGET)
-       cd ..\..\..
+       cd $(EXPBCK)
         $(MAKE) $(MAKEOPT) -f aprutil.mak         CFG="aprutil - Win32 $(LONG)" RECURSE=0 $(CTARGET)
         $(MAKE) $(MAKEOPT) -f libaprutil.mak      CFG="libaprutil - Win32 $(LONG)" RECURSE=0 $(CTARGET)
        cd ldap
@@ -1160,8 +1169,8 @@ BEGIN {
 !IF EXIST("srclib\apr-util")
        copy srclib\apr-util\Lib$(SHORT)\aprutil-1.lib  "$(INSTDIR)\lib" <.y
        copy srclib\apr-util\Lib$(SHORT)\aprutil-1.pdb  "$(INSTDIR)\lib" <.y
-       copy srclib\apr-util\xml\expat\lib\Lib$(SHORT)\xml.lib "$(INSTDIR)\lib" <.y
-       copy srclib\apr-util\xml\expat\lib\Lib$(SHORT)\xml.pdb "$(INSTDIR)\lib" <.y
+       copy srclib\apr-util\$(EXPAT)\Lib$(SHORT)\xml.lib "$(INSTDIR)\lib" <.y
+       copy srclib\apr-util\$(EXPAT)\Lib$(SHORT)\xml.pdb "$(INSTDIR)\lib" <.y
        copy srclib\apr-util\$(LONG)\libaprutil-1.lib   "$(INSTDIR)\lib" <.y
        copy srclib\apr-util\$(LONG)\libaprutil-1.exp   "$(INSTDIR)\lib" <.y
        copy srclib\apr-iconv\$(LONG)\libapriconv-1.lib "$(INSTDIR)\lib" <.y