NWGNUuserdir revision 6bdda696b3ea703c47e87fea61017ec655f91d92
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# Make sure all needed macro's are defined
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# Get the 'head' of the build environment if necessary. This includes default
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# targets and paths to tools
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherifndef EnvironmentDefined
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherinclude $(AP_WORK)\build\NWGNUhead.inc
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# These directories will be at the beginning of the include list, followed by
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher $(AP_WORK)/include \
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher $(APR)/include \
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher $(APRUTIL)/include \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# These flags will come after CFLAGS
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose# These defines will come after DEFINES
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseXDEFINES += \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# These flags will be added to the link.opt file
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# These values will be appended to the correct variables based on the value of
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Boseifeq "$(RELEASE)" "debug"
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseXINCDIRS += \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseXDEFINES += \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Boseifeq "$(RELEASE)" "noopt"
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit BoseXINCDIRS += \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseXDEFINES += \
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Boseifeq "$(RELEASE)" "release"
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit BoseXINCDIRS += \
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit BoseXDEFINES += \
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose# These are used by the link target if an NLM is being generated
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose# This is used by the link 'name' directive to name the nlm. If left blank
3d9bafcbb5c0fbf23351004ded4dea6aa13127fcSumit Bose# TARGET_nlm (see below) will be used.
8babbeee01e67893af4828ddfc922ecac0be4197Pavel ReichlNLM_NAME = userdir
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl# This is used by the link '-desc ' directive.
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# If left blank, NLM_NAME will be used.
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai KondrashovNLM_DESCRIPTION = Apache $(VERSION_STR) User Dir Module
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# This is used by the '-threadname' directive. If left blank,
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# NLM_NAME Thread will be used.
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseNLM_THREAD_NAME = UserDir Module
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose# If this is specified, it will override VERSION value in
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose# $(AP_WORK)\build\NWGNUenvironment.inc
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit BoseNLM_VERSION =
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose# If this is specified, it will override the default of 64K
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit BoseNLM_STACK_SIZE = 8192
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose# If this is specified it will be used by the link '-entry' directive
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit BoseNLM_ENTRY_SYM = _LibCPrelude
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If this is specified it will be used by the link '-exit' directive
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherNLM_EXIT_SYM = _LibCPostlude
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If this is specified it will be used by the link '-check' directive
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherNLM_CHECK_SYM =
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If these are specified it will be used by the link '-flags' directive
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# If this is specified it will be linked in with the XDCData option in the def
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8babbeee01e67893af4828ddfc922ecac0be4197Pavel Reichl# by setting APACHE_UNIPROC in the environment
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If there is an NLM target, put it here
bfb40893be20b45279a40188cf16ef0eec1f9423Sumit Bose# If there is an LIB target, put it here
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekTARGET_lib = \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# These are the OBJ files needed to create the NLM target above.
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# Paths must all use the '/' character
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekFILES_nlm_objs = \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# These are the LIB files needed to create the NLM target above.
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# These will be added as a library command in the link.opt file.
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekFILES_nlm_libs = \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# These are the modules that the above NLM target depends on to load.
bfdb2eeed95bde6cd065a9a47a7cb1773990ccfbOndrej Kos# These will be added as a module command in the link.opt file.
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekFILES_nlm_modules = \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek# If the nlm has a msg file, put it's path here
a473fb88e6015cf0ccbd2e9005c7e6acca18f452Pavel BřezinaFILE_nlm_msg =
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If the nlm has a hlp file put it's path here
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# If this is specified, it will override $(NWOS)\copyright.txt.
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen GallagherFILE_nlm_copyright =
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# Any additional imports go here
46222e5191473f9a46aec581273eb2eef22e23beMichal ZidekFILES_nlm_Ximports = \
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov# Any symbols exported to here
3fa03d5816d6a401d8e894b77236d3cfd95dbd96Pavel ReichlFILES_nlm_exports = \
46222e5191473f9a46aec581273eb2eef22e23beMichal Zidek userdir_module \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# These are the OBJ files needed to create the LIB target above.
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# Paths must all use the '/' character
949fbc93defad394648b2651b43a7bbfa5bff42bSumit BoseFILES_lib_objs = \
949fbc93defad394648b2651b43a7bbfa5bff42bSumit Bose# implement targets and dependancies (leave this section alone)
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherlibs :: $(OBJDIR) $(TARGET_lib)
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallaghernlms :: libs $(TARGET_nlm)
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov# Updated this target to create necessary directories and copy files to the
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherinstall :: nlms FORCE
a3c8390d19593b1e5277d95bfb4ab206d4785150Nikolai Kondrashov# Any specialized rules here
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# Include the 'tail' makefile that has targets that depend on variables defined
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagher# in this makefile
505e75ba28b42bb3de7a6d55de825091b70cc2b2Stephen Gallagherinclude $(AP_WORK)\build\NWGNUtail.inc