summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2005-12-16 20:54:27 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2005-12-16 20:54:27 +0000
commit4d13f634626110b30439b16ccdb915a9cc8da763 (patch)
tree8c1179c514414c248033b093bc055d6366a5d877
parent8766aa95fbb4556be38e210b90fcda0b393234d7 (diff)
downloadhttpd-4d13f634626110b30439b16ccdb915a9cc8da763.tar.gz
Test _NMAKE_VER define to determine nmake -nologo behavior,
and use $(MAKEOPT) -f syntax throughout to avoid problems on mingw, borland, etc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357226 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--Makefile.win20
1 files changed, 13 insertions, 7 deletions
diff --git a/Makefile.win b/Makefile.win
index 553a245454..efd3217a9a 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -19,7 +19,7 @@
#
# For example;
#
-# nmake /f Makefile.win PORT=80 INSTDIR="d:\Program Files\Apache" installr
+# nmake -f Makefile.win PORT=80 INSTDIR="d:\Program Files\Apache" installr
#
# Be aware that certain awk's will not accept backslahed names,
# so the server root should be given in forward slashes (quoted),
@@ -119,15 +119,21 @@ PORT=80
!MESSAGE SERVERNAME = $(SERVERNAME)
!MESSAGE PORT = $(PORT)
!MESSAGE
-!MESSAGE To change these options use 'nmake /f Makefile.win [option=value]'
-!MESSAGE Example: nmake /f Makefile.win PORT=8080
+!MESSAGE To change these options use 'nmake -f Makefile.win [option=value]'
+!MESSAGE Example: nmake -f Makefile.win PORT=8080
!MESSAGE
!MESSAGE
!ENDIF
!IFNDEF MAKEOPT
# Only default the behavior if MAKEOPT= is omitted
+!IFDEF _NMAKE_VER
+# Microsoft NMake options
MAKEOPT=-nologo
+!ELSEIF "$(MAKE)" == "make"
+# Borland make options? Not really supported (yet)
+MAKEOPT=-s -N
+!ENDIF
!ENDIF
_dummy:
@@ -172,14 +178,14 @@ _build:
$(MAKE) $(MAKEOPT) -f apriconv.mak CFG="apriconv - Win32 $(LONG)" RECURSE=0 $(CTARGET)
$(MAKE) $(MAKEOPT) -f libapriconv.mak CFG="libapriconv - Win32 $(LONG)" RECURSE=0 $(CTARGET)
!IF "$(CTARGET)" == "CLEAN"
- $(MAKE) $(MAKEOPT) /f build\modules.mk.win clean \
+ $(MAKE) $(MAKEOPT) -f build\modules.mk.win clean \
BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=.
!ELSE
cd ccs
- $(MAKE) /nologo /f Makefile.win all \
+ $(MAKE) $(MAKEOPT) -f Makefile.win all \
BUILD_MODE=$(LONG) BIND_MODE=shared
cd ..\ces
- $(MAKE) /nologo /f Makefile.win all \
+ $(MAKE) $(MAKEOPT) -f Makefile.win all \
BUILD_MODE=$(LONG) BIND_MODE=shared
cd ..
!ENDIF
@@ -354,7 +360,7 @@ _build:
"BuildBin - Win32 $(LONG)" $(CTARGET)
!IF "$(CTARGET)" == "/CLEAN"
@cd srclib\apr-iconv
- @$(MAKE) $(MAKEOPT) /f build\modules.mk.win clean \
+ @$(MAKE) $(MAKEOPT) -f build\modules.mk.win clean \
BUILD_MODE=$(LONG) BIND_MODE=shared API_SOURCE=.
@cd ..\..
!ENDIF