diff options
-rw-r--r-- | NWGNUmakefile | 33 | ||||
-rw-r--r-- | build/NWGNUenvironment.inc | 36 | ||||
-rw-r--r-- | build/NWGNUhead.inc | 6 | ||||
-rw-r--r-- | build/NWGNUmakefile | 26 | ||||
-rw-r--r-- | build/NWGNUtail.inc | 59 | ||||
-rw-r--r-- | dbd/NWGNUdbdfreetds | 15 | ||||
-rw-r--r-- | dbd/NWGNUdbdmysql | 15 | ||||
-rw-r--r-- | dbd/NWGNUdbdpgsql | 15 | ||||
-rw-r--r-- | dbd/NWGNUdbdsqli2 | 15 | ||||
-rw-r--r-- | dbd/NWGNUdbdsqli3 | 15 | ||||
-rw-r--r-- | dbd/NWGNUmakefile | 4 | ||||
-rw-r--r-- | dbm/NWGNUdbmdb | 15 | ||||
-rw-r--r-- | dbm/NWGNUdbmgdbm | 15 | ||||
-rw-r--r-- | dbm/NWGNUmakefile | 4 | ||||
-rw-r--r-- | ldap/NWGNUmakefile | 2 | ||||
-rw-r--r-- | test/NWGNUaprtest | 9 | ||||
-rw-r--r-- | test/NWGNUechod | 6 | ||||
-rw-r--r-- | test/NWGNUglobalmutexchild | 12 | ||||
-rw-r--r-- | test/NWGNUmakefile | 10 | ||||
-rw-r--r-- | test/NWGNUmod_test | 14 | ||||
-rw-r--r-- | test/NWGNUproc_child | 12 | ||||
-rw-r--r-- | test/NWGNUreadchild | 6 | ||||
-rw-r--r-- | test/NWGNUsockchild | 6 | ||||
-rw-r--r-- | test/NWGNUsockperf | 6 | ||||
-rw-r--r-- | test/NWGNUtestatmc | 8 | ||||
-rw-r--r-- | test/NWGNUtryread | 7 | ||||
-rw-r--r-- | xml/NWGNUmakefile | 8 |
27 files changed, 172 insertions, 207 deletions
diff --git a/NWGNUmakefile b/NWGNUmakefile index aae431242..e5c1bc754 100644 --- a/NWGNUmakefile +++ b/NWGNUmakefile @@ -141,12 +141,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -156,7 +156,7 @@ NLM_CHECK_SYM = # # If this is specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -423,24 +423,24 @@ nlms :: libs $(TARGET_nlm) # correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms $(INSTDIRS) FORCE - $(call CP,$(APR)/$(TARGET_nlm),$(INSTALLBASE)/) + $(call COPY,$(APR)/$(TARGET_nlm),$(INSTALLBASE)/) ifndef DEST - -$(call CP,$(APR)/STATUS,$(INSTALLBASE)/*.apr) - -$(call CP,$(APR)/LICENSE,$(INSTALLBASE)/) - -$(call CP,$(APR)/CHANGES,$(INSTALLBASE)/*.apr) - @-$(call XCP,$(APR)/docs,$(INSTALLBASE)/docs/) + -$(call COPY,$(APR)/STATUS,$(INSTALLBASE)/*.apr) + -$(call COPY,$(APR)/LICENSE,$(INSTALLBASE)/) + -$(call COPY,$(APR)/CHANGES,$(INSTALLBASE)/*.apr) + @-$(call COPYR,$(APR)/docs,$(INSTALLBASE)/docs/) endif ifndef DEST installdev :: $(INSTDEVDIRS) FORCE - $(call CP,$(APR)/include/*.h,$(INSTALLBASE)/include/) - $(call CP,$(APR)/*.imp,$(INSTALLBASE)/lib/) - $(call CP,$(APR)/misc/netware/*.xdc,$(INSTALLBASE)/lib/) - $(call CP,$(APR)/$(TARGET_lib),$(INSTALLBASE)/lib/) - $(call CP,$(APR)/$(TARGET_nlm),$(INSTALLBASE)/bin/) + $(call COPY,$(APR)/include/*.h,$(INSTALLBASE)/include/) + $(call COPY,$(APR)/*.imp,$(INSTALLBASE)/lib/) + $(call COPY,$(APR)/misc/netware/*.xdc,$(INSTALLBASE)/lib/) + $(call COPY,$(APR)/$(TARGET_lib),$(INSTALLBASE)/lib/) + $(call COPY,$(APR)/$(TARGET_nlm),$(INSTALLBASE)/bin/) $(INSTDEVDIRS) :: - $(call MD,$@) + $(call MKDIR,$@) endif # @@ -460,7 +460,8 @@ endif vpath %.c network_io/unix $(OBJDIR)/%.o: file_io/netware/%.c $(OBJDIR)/$(NLM_NAME)_cc.opt - @echo Compiling $< +# @echo Compiling $< + @echo $(DL)CC $<$(DL) $(CC) -cwd source -o $@ $< @$(OBJDIR)/$(NLM_NAME)_cc.opt # @@ -468,6 +469,6 @@ $(OBJDIR)/%.o: file_io/netware/%.c $(OBJDIR)/$(NLM_NAME)_cc.opt # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/build/NWGNUenvironment.inc b/build/NWGNUenvironment.inc index 51ee5184e..6543e8bb8 100644 --- a/build/NWGNUenvironment.inc +++ b/build/NWGNUenvironment.inc @@ -72,7 +72,7 @@ $(error neither EXPATSDK nor EXPATSRC defined - cant compile without EXPAT SDK o endif ifndef METROWERKS -METROWERKS = C:\Program Files\Metrowerks\CodeWarrior +METROWERKS = $(ProgramFiles)\Metrowerks\CodeWarrior endif # If LM_LICENSE_FILE isn't defined, define a variable that can be used to @@ -142,33 +142,35 @@ LIB = mwldnlm -type library -w nocmdline # Setup build tools AWK = awk +SORT = sort # # Declare Command and tool macros here # ifeq ($(findstring /sh,$(SHELL)),/sh) -DEL = $(RM) $1 -MD = mkdir -p $1 -DELTREE = rm -rf $1 -CP = cp -av $1 $2 -XCP = cp -ar +DEL = rm -f $1 +RMDIR = rm -rf $1 +MKDIR = mkdir -p $1 +COPY = cp -av $1 $2 +COPYR = cp -ar $1 $2 ECHONL = echo "" DL = ' +CAT = cat else ifeq "$(OS)" "Windows_NT" -CMD = cmd /c -DEL = $(CMD) if exist $(subst /,\,$1) del /q /f 2>NUL $(subst /,\,$1) -DELTREE = rd /s /q 2>NUL $(subst /,\,$1) +DEL = $(shell if exist $(subst /,\,$1) del /q /f 2>NUL $(subst /,\,$1)) +RMDIR = $(shell if exist $(subst /,\,$1)\NUL rd /q /s 2>NUL $(subst /,\,$1)) +ECHONL = cmd /c echo. else -CMD = command /c -DEL = $(CMD) if exist $(subst /,\,$1) del 2>NUL $(subst /,\,$1) -DELTREE = deltree /y $(subst /,\,$1) -endif -MD = $(CMD) if not exist $(subst /,\,$1)\NUL md 2>NUL $(subst /,\,$1) -CP = copy /y 2>NUL $(subst /,\,$1) $(subst /,\,$2) -XCP = xcopy /e /y 2>NUL $(subst /,\,$1) $(subst /,\,$2) -ECHONL = $(CMD) echo. +DEL = $(shell if exist $(subst /,\,$1) del 2>NUL $(subst /,\,$1)) +RMDIR = $(shell if exist $(subst /,\,$1)\NUL deltree /y 2>NUL $(subst /,\,$1)) +ECHONL = command /c echo. +endif +MKDIR = $(shell if not exist $(subst /,\,$1)\NUL md 2>NUL $(subst /,\,$1)) +COPY = copy /y 2>NUL $(subst /,\,$1) $(subst /,\,$2) +COPYR = xcopy /y /e 2>NUL $(subst /,\,$1) $(subst /,\,$2) +CAT = type endif ifdef IPV6 diff --git a/build/NWGNUhead.inc b/build/NWGNUhead.inc index 31b34e70b..28b148993 100644 --- a/build/NWGNUhead.inc +++ b/build/NWGNUhead.inc @@ -86,12 +86,12 @@ FORCE : ; clean :: $(SUBDIRS) $(APRTEST) @echo Cleaning up $(CURDIR) - -$(call DELTREE,$(OBJDIR)) + $(call RMDIR,$(OBJDIR)) $(call DEL,*.err) $(call DEL,*.map) -# $(call DEL,*.d) $(call DEL,*.tmp) +# $(call DEL,*.d) $(OBJDIR) :: - $(call MD,$@) + $(call MKDIR,$@) diff --git a/build/NWGNUmakefile b/build/NWGNUmakefile index a62e15d09..ab9fdbc3a 100644 --- a/build/NWGNUmakefile +++ b/build/NWGNUmakefile @@ -19,7 +19,6 @@ FILES_prebuild_headers = \ $(APR)/include/apr.h \ $(APR)/include/apu_want.h \ $(APR)/include/apr_ldap.h \ - $(APR)/include/private/apu_config.h \ $(APR)/include/private/apu_select_dbm.h \ $(EOLIST) @@ -28,7 +27,7 @@ nlms :: $(APR)/aprlib.imp $(APR)/aprlib.imp : make_nw_export.awk nw_export.i # @echo Generating $@ @echo GEN $@ - $(AWK) -v EXPPREFIX=APR$(VERSION_MAJMIN) -f $^ | sort >$@ + $(AWK) -v EXPPREFIX=APR$(VERSION_MAJMIN) -f $^ | $(SORT) >$@ nw_export.i : nw_export.inc $(FILES_prebuild_headers) $(NLM_NAME)_cc.opt # @echo Generating $@ @@ -51,19 +50,13 @@ ifneq "$(LDAPSDK)" "" @echo -ir $(LDAPSDK) >> $@ endif -$(APR)/include/%.h: $(APR)/include/%.hnw +%.h: %.hnw @echo Creating $@ - $(call CP,$<,$@) + $(call COPY,$<,$@) -$(APR)/include/private/%.h: $(APR)/include/private/%.hnw +%.h: %.hw @echo Creating $@ - $(call CP,$<,$@) - -$(APR)/include/private/%.h: $(APR)/include/private/%.hw - @echo Creating $@ - $(call CP,$<,$@) - -$(APR)/include/private/apu_config.h: FORCE + $(call COPY,$<,$@) # # You can use this target if all that is needed is to copy files to the @@ -76,17 +69,14 @@ clean :: $(call DEL,nw_export.i) $(call DEL,$(NLM_NAME)_cc.opt) $(call DEL,NWGNUversion.inc) - $(call DEL,$(APR)/include/apr.h) - $(call DEL,$(APR)/include/apu_want.h) - $(call DEL,$(APR)/include/apr_ldap.h) - $(call DEL,$(APR)/include/private/apu_config.h) - $(call DEL,$(APR)/include/private/apu_select_dbm.h) $(call DEL,$(APR)/aprlib.imp) + $(foreach file,$(FILES_prebuild_headers),$(call DEL,$(file))) # # Include the 'tail' makefile that has targets that depend on variables defined # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc + diff --git a/build/NWGNUtail.inc b/build/NWGNUtail.inc index 3aa79e954..44856162a 100644 --- a/build/NWGNUtail.inc +++ b/build/NWGNUtail.inc @@ -28,6 +28,22 @@ ifndef NLM_COPYRIGHT NLM_COPYRIGHT = Licensed under the Apache License, Version 2.0 endif +ifeq "$(NLM_FLAGS)" "" +NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +endif + +ifeq "$(NLM_STACK_SIZE)" "" +NLM_STACK_SIZE = 65536 +endif + +ifeq "$(NLM_ENTRY_SYM)" "" +NLM_ENTRY_SYM = _LibCPrelude +endif + +ifeq "$(NLM_EXIT_SYM)" "" +NLM_EXIT_SYM = _LibCPostlude +endif + # # Create dependency lists based on the files available # @@ -114,14 +130,14 @@ ifeq "$(INCLUDE_BLDCMDS)" "1" $(OBJDIR)/%.o: %.c $(OBJDIR)/$(CCOPT_NAME)_cc.opt # @echo Compiling $< - @echo CC $< + @echo $(DL)CC $<$(DL) $(CC) -o $@ $< @$(word 2, $^) $(OBJDIR)/$(CCOPT_NAME)_cc.opt: $(CCOPT_DEPENDS) $(call DEL,$@) # @echo CCOPT_DEPENDS=$^ # @echo Generating $@ - @echo GEN $@ + @echo $(DL)GEN $@$(DL) ifneq "$(strip $(CFLAGS))" "" @echo $(CFLAGS) >> $@ endif @@ -143,14 +159,14 @@ endif $(OBJDIR)/%.o: %.cpp $(OBJDIR)/$(CCOPT_NAME)_cpp.opt # @echo Compiling $< - @echo CC $< + @echo $(DL)CPP $<$(DL) $(CCP) -o $@ $< @$(word 2, $^) $(OBJDIR)/$(CCOPT_NAME)_cpp.opt: $(CPPOPT_DEPENDS) $(call DEL,$@) - @echo CPPOPT_DEPENDS=$^ +# @echo CPPOPT_DEPENDS=$^ # @echo Generating $@ - @echo GEN $@ + @echo $(DL)GEN $@$(DL) ifneq "$(strip $(CFLAGS))" "" @echo $(CFLAGS) >> $@ endif @@ -183,14 +199,14 @@ ifeq "$(words $(strip $(TARGET_lib)))" "1" $(TARGET_lib) : $(OBJDIR)/$(LIB_NAME)_lib.lst $(call DEL,$@) # @echo Generating $@ - @echo AR $@ + @echo $(DL)AR $@$(DL) $(LIB) -o $@ @$< $(OBJDIR)/aprlib_lib.lst: $(aprlib_LIBLST_DEPENDS) $(call DEL,$@) ifneq "$(strip $(FILES_lib_objs))" "" # @echo Generating $@ - @echo GEN $@ + @echo $(DL)GEN $@$(DL) @echo $(wordlist 1, 10, $(FILES_lib_objs)) >> $@ @echo $(wordlist 11, 20, $(FILES_lib_objs)) >> $@ @echo $(wordlist 21, 30, $(FILES_lib_objs)) >> $@ @@ -208,7 +224,7 @@ $(OBJDIR)/%_lib.lst: $($(LIB_NAME)_LIBLST_DEPENDS) $(call DEL,$@) ifneq "$(strip $(FILES_lib_objs))" "" # @echo Generating $@ - @echo GEN $@ + @echo $(DL)GEN $@$(DL) @echo $(FILES_lib_objs) >> $@ endif @@ -231,7 +247,7 @@ ifeq "$(words $(strip $(TARGET_nlm)))" "1" $(TARGET_nlm) : $(FILES_nlm_objs) $(FILES_nlm_libs) $(OBJDIR)/$(NLM_NAME)_link.opt # @echo Linking $@ - @echo LINK $@ + @echo $(DL)LINK $@$(DL) $(LINK) @$(OBJDIR)/$(NLM_NAME)_link.opt # This will force the link option file to be rebuilt if we change the @@ -241,18 +257,20 @@ $(OBJDIR)/$(NLM_NAME)_link.opt : $($(NLM_NAME)_LINKOPT_DEPENDS) $(call DEL,$@) $(call DEL,$(@:.opt=.def)) # @echo Generating $@ - @echo GEN $@ + @echo $(DL)GEN $@$(DL) + @echo $(DL)# Do not edit this file - it is created by make!$(DL) > $@ + @echo $(DL)# All your changes will be lost!!$(DL) >> $@ @echo -warnings off >> $@ @echo -zerobss >> $@ @echo -o $(TARGET_nlm) >> $@ ifneq "$(FILE_nlm_copyright)" "" - @-type $(FILE_nlm_copyright) >> $@ + @-$(CAT) $(FILE_nlm_copyright) >> $@ endif ifeq "$(RELEASE)" "debug" @echo -g >> $@ @echo -sym internal >> $@ @echo -sym codeview4 >> $@ - @echo -osym $(OBJDIR)\$(NLM_NAME).sym >> $@ + @echo -osym $(OBJDIR)/$(NLM_NAME).sym >> $@ else @echo -sym internal >> $@ endif @@ -295,29 +313,19 @@ ifeq "$(FILE_nlm_copyright)" "" endif @echo $(DL)description "$(NLM_DESCRIPTION)"$(DL) >> $(@:.opt=.def) @echo $(DL)threadname "$(NLM_THREAD_NAME)"$(DL) >> $(@:.opt=.def) -ifneq "$(NLM_STACK_SIZE)" "" - @echo stacksize $(subst K,000,$(subst k,K,$(strip $(NLM_STACK_SIZE)))) >> $(@:.opt=.def) -else - @echo stacksize 64000 >> $(@:.opt=.def) -endif @echo $(DL)screenname "$(NLM_SCREEN_NAME)"$(DL) >> $(@:.opt=.def) + @echo stacksize $(subst K,000,$(subst k,K,$(strip $(NLM_STACK_SIZE)))) >> $(@:.opt=.def) ifneq "$(NLM_VERSION)" "" @echo version $(NLM_VERSION) >> $(@:.opt=.def) else @echo version $(VERSION) >> $(@:.opt=.def) endif -ifneq "$(NLM_ENTRY_SYM)" "" + @echo $(strip $(NLM_FLAGS)) >> $(@:.opt=.def) @echo start $(NLM_ENTRY_SYM) >> $(@:.opt=.def) -endif -ifneq "$(NLM_EXIT_SYM)" "" @echo exit $(NLM_EXIT_SYM) >> $(@:.opt=.def) -endif ifneq "$(NLM_CHECK_SYM)" "" @echo check $(NLM_CHECK_SYM) >> $(@:.opt=.def) endif -ifneq "$(NLM_FLAGS)" "" - @echo $(strip $(NLM_FLAGS)) >> $(@:.opt=.def) -endif ifneq "$(FILES_nlm_modules)" "" @echo module $(foreach module,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_modules))),$(module)) >> $(@:.opt=.def) endif @@ -327,7 +335,6 @@ endif ifneq "$(FILES_nlm_exports)" "" @echo export $(foreach export,$(subst $(SPACE),$(COMMA),$(strip $(FILES_nlm_exports))),$(export)) >> $(@:.opt=.def) endif - # if APACHE_UNIPROC is defined, don't include XDCData ifndef APACHE_UNIPROC ifneq "$(string $(XDCDATA))" "" @@ -358,6 +365,6 @@ endif # NO_LICENSE_FILE endif # multiple targets $(INSTDIRS) :: - $(call MD,$@) + $(call MKDIR,$@) diff --git a/dbd/NWGNUdbdfreetds b/dbd/NWGNUdbdfreetds index 49bed63ee..a79a2ffd5 100644 --- a/dbd/NWGNUdbdfreetds +++ b/dbd/NWGNUdbdfreetds @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)/build/NWGNUcustom.inc - # # build this level's files @@ -142,18 +140,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -163,7 +160,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -288,7 +285,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbd/NWGNUdbdmysql b/dbd/NWGNUdbdmysql index d040388fa..10c4dbf15 100644 --- a/dbd/NWGNUdbdmysql +++ b/dbd/NWGNUdbdmysql @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)/build/NWGNUcustom.inc - # # build this level's files @@ -146,18 +144,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -167,7 +164,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -292,7 +289,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbd/NWGNUdbdpgsql b/dbd/NWGNUdbdpgsql index 455424fad..9e04f5427 100644 --- a/dbd/NWGNUdbdpgsql +++ b/dbd/NWGNUdbdpgsql @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)/build/NWGNUcustom.inc - # # build this level's files @@ -143,18 +141,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -164,7 +161,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -289,7 +286,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbd/NWGNUdbdsqli2 b/dbd/NWGNUdbdsqli2 index 327754628..bd5778853 100644 --- a/dbd/NWGNUdbdsqli2 +++ b/dbd/NWGNUdbdsqli2 @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)/build/NWGNUcustom.inc - # # build this level's files @@ -142,18 +140,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -163,7 +160,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -288,7 +285,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbd/NWGNUdbdsqli3 b/dbd/NWGNUdbdsqli3 index 021f73409..921a373b5 100644 --- a/dbd/NWGNUdbdsqli3 +++ b/dbd/NWGNUdbdsqli3 @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)/build/NWGNUcustom.inc - # # build this level's files @@ -142,18 +140,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -163,7 +160,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -290,7 +287,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbd/NWGNUmakefile b/dbd/NWGNUmakefile index decde31ac..6bb7c610d 100644 --- a/dbd/NWGNUmakefile +++ b/dbd/NWGNUmakefile @@ -244,7 +244,7 @@ nlms :: libs $(TARGET_nlm) # correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms $(INSTDIRS) FORCE - $(CP) $(OBJDIR)\*.nlm $(INSTALLBASE) + $(call COPY,$(OBJDIR)/*.nlm,$(INSTALLBASE)/) # # Any specialized rules here @@ -255,6 +255,6 @@ install :: nlms $(INSTDIRS) FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbm/NWGNUdbmdb b/dbm/NWGNUdbmdb index 5c7d1c7a8..03b099cd6 100644 --- a/dbm/NWGNUdbmdb +++ b/dbm/NWGNUdbmdb @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)\build\NWGNUcustom.inc - # # build this level's files @@ -145,18 +143,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -166,7 +163,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -291,7 +288,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbm/NWGNUdbmgdbm b/dbm/NWGNUdbmgdbm index f32ebc451..10709a54b 100644 --- a/dbm/NWGNUdbmgdbm +++ b/dbm/NWGNUdbmgdbm @@ -14,8 +14,6 @@ ifndef EnvironmentDefined include $(APR_WORK)/build/NWGNUhead.inc endif -#include $(APR)\build\NWGNUcustom.inc - # # build this level's files @@ -144,18 +142,17 @@ NLM_VERSION = # # If this is specified, it will override the default of 64K # -NLM_STACK_SIZE = 8192 - +NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -165,7 +162,7 @@ NLM_CHECK_SYM = # # If these are specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -290,7 +287,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - - +include $(APRBUILD)/NWGNUtail.inc diff --git a/dbm/NWGNUmakefile b/dbm/NWGNUmakefile index db36d5cf3..228a45d11 100644 --- a/dbm/NWGNUmakefile +++ b/dbm/NWGNUmakefile @@ -235,7 +235,7 @@ nlms :: libs $(TARGET_nlm) # correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms $(INSTDIRS) FORCE - copy $(OBJDIR)\*.nlm $(INSTALLBASE) + $(call COPY,$(OBJDIR)/*.nlm,$(INSTALLBASE)/) # # Any specialized rules here @@ -246,6 +246,6 @@ install :: nlms $(INSTDIRS) FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/ldap/NWGNUmakefile b/ldap/NWGNUmakefile index d0e085d21..58bac6251 100644 --- a/ldap/NWGNUmakefile +++ b/ldap/NWGNUmakefile @@ -250,5 +250,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUaprtest b/test/NWGNUaprtest index 6e812c435..d42a2016e 100644 --- a/test/NWGNUaprtest +++ b/test/NWGNUaprtest @@ -123,12 +123,12 @@ NLM_STACK_SIZE = 524288 # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -138,7 +138,7 @@ NLM_CHECK_SYM = # # If this is specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -333,6 +333,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc - +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUechod b/test/NWGNUechod index 45b00c77d..d1d1100e6 100644 --- a/test/NWGNUechod +++ b/test/NWGNUechod @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -249,5 +249,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUglobalmutexchild b/test/NWGNUglobalmutexchild index 1ee75bb29..3db805b02 100644 --- a/test/NWGNUglobalmutexchild +++ b/test/NWGNUglobalmutexchild @@ -8,7 +8,7 @@ # ifndef EnvironmentDefined -include $(APR_WORK)\build\NWGNUhead.inc +include $(APR_WORK)/build/NWGNUhead.inc endif # @@ -113,7 +113,7 @@ NLM_SCREEN_NAME = DEFAULT # # If this is specified, it will override VERSION value in -# $(APR_WORK)\build\NWGNUenvironment.inc +# $(APR_WORK)/build/NWGNUenvironment.inc # NLM_VERSION = @@ -125,12 +125,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -237,7 +237,7 @@ nlms :: libs $(TARGET_nlm) # # Updated this target to create necessary directories and copy files to the -# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples) +# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms FORCE @@ -250,5 +250,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)\build\NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUmakefile b/test/NWGNUmakefile index af78c53a0..ad46450a9 100644 --- a/test/NWGNUmakefile +++ b/test/NWGNUmakefile @@ -10,7 +10,7 @@ SUBDIRS = \ # paths to tools # -include $(APR_WORK)\build\NWGNUhead.inc +include $(APR_WORK)/build/NWGNUhead.inc # # build this level's files @@ -118,7 +118,7 @@ NLM_SCREEN_NAME = # # If this is specified, it will override VERSION value in -# $(APR_WORK)\build\NWGNUenvironment.inc +# $(APR_WORK)/build/NWGNUenvironment.inc # NLM_VERSION = @@ -245,10 +245,10 @@ nlms :: libs $(TARGET_nlm) # # Updated this target to create necessary directories and copy files to the -# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples) +# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms FORCE - $(CP) $(OBJDIR)\*.nlm $(INSTALLBASE) + $(call COPY,$(OBJDIR)/*.nlm,$(INSTALLBASE)/) # # Any specialized rules here @@ -259,5 +259,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)\build\NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUmod_test b/test/NWGNUmod_test index 3d416fc87..428d4f162 100644 --- a/test/NWGNUmod_test +++ b/test/NWGNUmod_test @@ -8,7 +8,7 @@ # ifndef EnvironmentDefined -include $(APR_WORK)\build\NWGNUhead.inc +include $(APR_WORK)/build/NWGNUhead.inc endif # @@ -111,7 +111,7 @@ NLM_SCREEN_NAME = DEFAULT # # If this is specified, it will override VERSION value in -# $(APR_WORK)\build\NWGNUenvironment.inc +# $(APR_WORK)/build/NWGNUenvironment.inc # NLM_VERSION = @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -138,7 +138,7 @@ NLM_CHECK_SYM = # # If this is specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -237,7 +237,7 @@ nlms :: libs $(TARGET_nlm) # # Updated this target to create necessary directories and copy files to the -# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples) +# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms FORCE @@ -250,5 +250,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)\build\NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUproc_child b/test/NWGNUproc_child index 0efbc0563..8ba8954cc 100644 --- a/test/NWGNUproc_child +++ b/test/NWGNUproc_child @@ -8,7 +8,7 @@ # ifndef EnvironmentDefined -include $(APR_WORK)\build\NWGNUhead.inc +include $(APR_WORK)/build/NWGNUhead.inc endif # @@ -111,7 +111,7 @@ NLM_SCREEN_NAME = DEFAULT # # If this is specified, it will override VERSION value in -# $(APR_WORK)\build\NWGNUenvironment.inc +# $(APR_WORK)/build/NWGNUenvironment.inc # NLM_VERSION = @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -235,7 +235,7 @@ nlms :: libs $(TARGET_nlm) # # Updated this target to create necessary directories and copy files to the -# correct place. (See $(APR_WORK)\build\NWGNUhead.inc for examples) +# correct place. (See $(APR_WORK)/build/NWGNUhead.inc for examples) # install :: nlms FORCE @@ -248,5 +248,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)\build\NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUreadchild b/test/NWGNUreadchild index 3c5e75f69..4e37827be 100644 --- a/test/NWGNUreadchild +++ b/test/NWGNUreadchild @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -248,5 +248,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUsockchild b/test/NWGNUsockchild index e1be847d0..3caada649 100644 --- a/test/NWGNUsockchild +++ b/test/NWGNUsockchild @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -248,5 +248,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUsockperf b/test/NWGNUsockperf index c2d5f7d8b..8e9c548b7 100644 --- a/test/NWGNUsockperf +++ b/test/NWGNUsockperf @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -249,5 +249,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUtestatmc b/test/NWGNUtestatmc index 6f017802d..ea818cbe5 100644 --- a/test/NWGNUtestatmc +++ b/test/NWGNUtestatmc @@ -122,12 +122,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -137,7 +137,7 @@ NLM_CHECK_SYM = # # If this is specified it will be used by the link '-flags' directive # -NLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION +NLM_FLAGS = # # If this is specified it will be linked in with the XDCData option in the def @@ -251,5 +251,5 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc diff --git a/test/NWGNUtryread b/test/NWGNUtryread index 7dbf1b800..9adf3a1bf 100644 --- a/test/NWGNUtryread +++ b/test/NWGNUtryread @@ -123,12 +123,12 @@ NLM_STACK_SIZE = # # If this is specified it will be used by the link '-entry' directive # -NLM_ENTRY_SYM = _LibCPrelude +NLM_ENTRY_SYM = # # If this is specified it will be used by the link '-exit' directive # -NLM_EXIT_SYM = _LibCPostlude +NLM_EXIT_SYM = # # If this is specified it will be used by the link '-check' directive @@ -248,5 +248,6 @@ install :: nlms FORCE # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc + diff --git a/xml/NWGNUmakefile b/xml/NWGNUmakefile index 182dd9841..20c419dcf 100644 --- a/xml/NWGNUmakefile +++ b/xml/NWGNUmakefile @@ -33,15 +33,15 @@ endif $(EXPATSRC)/lib/%.h: $(EXPATSRC)/lib/%.hnw @echo Creating $@ - $(call CP,$<,$@) + $(call COPY,$<,$@) $(EXPATSRC)/lib/%.h: $(EXPATSRC)/lib/%.h.in @echo Creating $@ - $(call CP,$<,$@) + $(call COPY,$<,$@) $(EXPATSRC)/lib/%.h: $(CURDIR)/%.hnw @echo Creating $@ - $(call CP,$<,$@) + $(call COPY,$<,$@) vpath %.c $(EXPATSRC)/lib @@ -286,5 +286,5 @@ clean :: # in this makefile # -include $(APR_WORK)/build/NWGNUtail.inc +include $(APRBUILD)/NWGNUtail.inc |