Commit 9838da64 authored by Guenter Knauf's avatar Guenter Knauf
Browse files

NetWare build overhaul in order to compile on Linux.

More fixes ...


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1079463 13f79535-47bb-0310-9956-ffa450edef68
parent 4b95b420
Loading
Loading
Loading
Loading
+11 −4
Changes for build/NWGNUenvironment.inc: 11 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -209,12 +209,19 @@ CLIB3S = $(METROWERKS)/Novell Support/Metrowerks Support/Libraries/Runtime/mwcrt
MATH3S	=
PLIB3S	= $(METROWERKS)/Novell Support/Metrowerks Support/Libraries/MSL C++/MWCPP.lib

# MetroWerks Win32 build flags to create build tool
ifeq "$(OS)" "Windows_NT"
# MetroWerks Win32 build flags to create build tools
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
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.
+5 −5
Changes for build/NWGNUmakefile: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -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
+3 −3
Changes for build/NWGNUtail.inc: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -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
+9 −9
Changes for modules/NWGNUmakefile: 9 added lines, 9 removed lines.
Original line number Diff line number Diff line
@@ -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