httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1079463 - in /httpd/httpd/trunk: build/NWGNUenvironment.inc build/NWGNUmakefile build/NWGNUtail.inc modules/NWGNUmakefile
Date Tue, 08 Mar 2011 18:17:07 GMT
Author: fuankg
Date: Tue Mar  8 18:17:07 2011
New Revision: 1079463

URL: http://svn.apache.org/viewvc?rev=1079463&view=rev
Log:
NetWare build overhaul in order to compile on Linux.

More fixes ...

Modified:
    httpd/httpd/trunk/build/NWGNUenvironment.inc
    httpd/httpd/trunk/build/NWGNUmakefile
    httpd/httpd/trunk/build/NWGNUtail.inc
    httpd/httpd/trunk/modules/NWGNUmakefile

Modified: httpd/httpd/trunk/build/NWGNUenvironment.inc
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/NWGNUenvironment.inc?rev=1079463&r1=1079462&r2=1079463&view=diff
==============================================================================
--- httpd/httpd/trunk/build/NWGNUenvironment.inc (original)
+++ httpd/httpd/trunk/build/NWGNUenvironment.inc Tue Mar  8 18:17:07 2011
@@ -209,12 +209,19 @@ CLIB3S	= $(METROWERKS)/Novell Support/Me
 MATH3S	=
 PLIB3S	= $(METROWERKS)/Novell Support/Metrowerks Support/Libraries/MSL C++/MWCPP.lib
 
-# MetroWerks Win32 build flags to create build tool
-MWCW_MSL   = "$(METROWERKS)/MSL"
-MWCW_W32   = "$(METROWERKS)/Win32-x86 Support"
-WIN_CFLAGS =  -O2 -gccinc -nodefaults -proc 586 -w off
-WIN_CFLAGS += -ir $(MWCW_MSL) -ir $(MWCW_W32) -lr $(MWCW_MSL) -lr $(MWCW_W32)
-WIN_CFLAGS += -lMSL_All_x86.lib -lkernel32.lib -luser32.lib
+ifeq "$(OS)" "Windows_NT"
+# MetroWerks Win32 build flags to create build tools
+MWCW_MSL    = "$(METROWERKS)/MSL"
+MWCW_W32    = "$(METROWERKS)/Win32-x86 Support"
+HOST_CC     = $(WIN_CC)
+HOST_CFLAGS =  -O2 -gccinc -nodefaults -proc 586 -w off
+HOST_CFLAGS += -ir $(MWCW_MSL) -ir $(MWCW_W32) -lr $(MWCW_MSL) -lr $(MWCW_W32)
+HOST_CFLAGS += -lMSL_All_x86.lib -lkernel32.lib -luser32.lib
+else
+# GNUC build flags to create build tools
+HOST_CC     = gcc
+HOST_CFLAGS = -Wall -O2
+endif
 
 # Base compile flags
 # and prefix or precompiled header added here.

Modified: httpd/httpd/trunk/build/NWGNUmakefile
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/NWGNUmakefile?rev=1079463&r1=1079462&r2=1079463&view=diff
==============================================================================
--- httpd/httpd/trunk/build/NWGNUmakefile (original)
+++ httpd/httpd/trunk/build/NWGNUmakefile Tue Mar  8 18:17:07 2011
@@ -60,19 +60,19 @@ ifneq "$(BUILDTOOL_AS_NLM)" "1"
 
 $(NWOS)/chartables.c: dftables.exe $(PCRE)/dftables.c $(FILES_prebuild_headers)
 	@echo $(DL)GEN  $@$(DL)
-	@$< $@
+	$< $@
 
 %.exe: $(PCRE)/%.c
 	@echo $(DL)Creating Build Helper $@$(DL)
-	@$(WIN_CC) $(WIN_CFLAGS) -DHAVE_CONFIG_H $< -o $@
+	$(HOST_CC) $(HOST_CFLAGS) -DHAVE_CONFIG_H $< -o $@
 
 $(NWOS)/test_char.h: gen_test_char.exe $(SERVER)/gen_test_char.c
 	@echo $(DL)GEN  $@$(DL)
-	@$< > $@
+	$< > $@
 
 %.exe: $(SERVER)/%.c
 	@echo $(DL)Creating Build Helper $@$(DL)
-	@$(WIN_CC) $(WIN_CFLAGS) -DCROSS_COMPILE $< -o $@
+	$(HOST_CC) $(HOST_CFLAGS) -DCROSS_COMPILE $< -o $@
 
 else
 
@@ -91,7 +91,7 @@ endif
 #
 chkapr: $(APR)/build/nw_ver.awk $(APR)/include/apr_version.h
 	@echo $(DL)Checking for APR version...$(DL)
-	@$(AWK) -v WANTED=$(APR_WANTED) -f $^
+	$(AWK) -v WANTED=$(APR_WANTED) -f $^
 
 #
 # You can use this target if all that is needed is to copy files to the

Modified: httpd/httpd/trunk/build/NWGNUtail.inc
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/build/NWGNUtail.inc?rev=1079463&r1=1079462&r2=1079463&view=diff
==============================================================================
--- httpd/httpd/trunk/build/NWGNUtail.inc (original)
+++ httpd/httpd/trunk/build/NWGNUtail.inc Tue Mar  8 18:17:07 2011
@@ -263,7 +263,7 @@ endif
 	@echo $(DL)-l $(XML)/$(OBJDIR)$(DL)>> $@
 	@echo $(DL)-l $(SRC)/$(OBJDIR)$(DL)>> $@
 	@echo $(DL)-nodefaults$(DL)>> $@
-	@echo $(DL)-map $(OBJDIR)/$(NLM_NAME).map>> $@
+	@echo $(DL)-map $(OBJDIR)/$(NLM_NAME).map$(DL)>> $@
 ifneq "$(strip $(XLFLAGS))" ""
 	@echo $(DL)$(XLFLAGS)$(DL)>> $@
 endif
@@ -271,7 +271,7 @@ ifneq "$(strip $(FILES_nlm_objs))" ""
 	@echo $(DL)$(foreach objfile,$(strip $(FILES_nlm_objs)),$(objfile))$(DL)>> $@
 endif
 ifneq "$(FILES_nlm_libs)" ""
-	@echo $(foreach libfile, $(notdir $(strip $(FILES_nlm_libs))),-l$(libfile))$(DL)>>
$@
+	@echo $(DL)$(foreach libfile, $(notdir $(strip $(FILES_nlm_libs))),-l$(libfile))$(DL)>>
$@
 endif
 	@echo $(DL)-commandfile $(@:.opt=.def)$(DL)>> $@
 	@echo $(DL)# Do not edit this file - it is created by make!$(DL)> $(@:.opt=.def) 
@@ -299,7 +299,7 @@ endif
 ifneq "$(NLM_CHECK_SYM)" ""
 	@echo $(DL)check $(NLM_CHECK_SYM)$(DL)>> $(@:.opt=.def)
 endif
-	@echo $(strip $(NLM_FLAGS))$(DL)>> $(@:.opt=.def)
+	@echo $(DL)$(strip $(NLM_FLAGS))$(DL)>> $(@:.opt=.def)
 ifneq "$(FILES_nlm_modules)" ""
 	@echo $(DL)module $(foreach module,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_modules))),$(module))$(DL)>>
$(@:.opt=.def)
 endif

Modified: httpd/httpd/trunk/modules/NWGNUmakefile
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/NWGNUmakefile?rev=1079463&r1=1079462&r2=1079463&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/NWGNUmakefile (original)
+++ httpd/httpd/trunk/modules/NWGNUmakefile Tue Mar  8 18:17:07 2011
@@ -15,9 +15,9 @@ SUBDIRS = \
 	aaa \
 	cache \
 	cluster \
-	dav\main \
-	dav\fs \
-	dav\lock \
+	dav/main \
+	dav/fs \
+	dav/lock \
 	echo \
 	examples \
 	generators \
@@ -53,12 +53,6 @@ SUBDIRS += lua \
 endif
 endif
 
-#If the mod_edir directory exists then build the mod_edir module
-ifeq "$(wildcard $(AP_WORK)\modules\mod_edir)" "$(AP_WORK)\modules\mod_edir"
-SUBDIRS += mod_edir \
-	$(EOLIST)
-endif
-
 # Allow the experimental modules to be built if EXPERIMENTAL is defined
 ifdef EXPERIMENTAL
 SUBDIRS += experimental \
@@ -77,6 +71,12 @@ SUBDIRS += test \
 	$(EOLIST)
 endif
 
+#If the mod_edir directory exists then build the mod_edir module
+ifeq "$(wildcard $(AP_WORK)/modules/mod_edir)" "$(AP_WORK)/modules/mod_edir"
+SUBDIRS += mod_edir \
+	$(EOLIST)
+endif
+
 
 #
 # Get the 'head' of the build environment.  This includes default targets and



Mime
View raw message