NWGNUmod_asis revision 16b55a35cff91315d261d1baa776138af465c4e4
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# Make sure all needed macro's are defined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# targets and paths to tools
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifndef EnvironmentDefined
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(AP_WORK)\build\NWGNUhead.inc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These directories will be at the beginning of the include list, followed by
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APR)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(APRUTIL)/include \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(AP_WORK)/include \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These flags will come after CFLAGS
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These defines will come after DEFINES
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These flags will be added to the link.opt file
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These values will be appended to the correct variables based on the value of
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "debug"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "noopt"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsifeq "$(RELEASE)" "release"
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are used by the link target if an NLM is being generated
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# TARGET_nlm (see below) will be used.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_NAME = mod_asis
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# This is used by the link '-desc ' directive.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If left blank, NLM_NAME will be used.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) ASIS Module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This is used by the '-threadname' directive. If left blank,
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# NLM_NAME Thread will be used.
f6da30bb5447c23d880b09f601441e70c5313557Mark AndrewsNLM_THREAD_NAME = Mod_asis Module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified, it will override VERSION value in
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_VERSION =
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If this is specified, it will override the default of 64K
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox UserNLM_STACK_SIZE = 8192
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-entry' directive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_ENTRY_SYM = _LibCPrelude
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-exit' directive
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntNLM_EXIT_SYM = _LibCPostlude
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be used by the link '-check' directive
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsNLM_CHECK_SYM =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If these are specified it will be used by the link '-flags' directive
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# by setting APACHE_UNIPROC in the environment
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If there is an NLM target, put it here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARGET_nlm = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If there is an LIB target, put it here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsTARGET_lib = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the OBJ files needed to create the NLM target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Paths must all use the '/' character
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the LIB files needed to create the NLM target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These will be added as a library command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_libs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# These are the modules that the above NLM target depends on to load.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# These will be added as a module command in the link.opt file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_modules = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If the nlm has a msg file, put it's path here
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntFILE_nlm_msg =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If the nlm has a hlp file put it's path here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILE_nlm_hlp =
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# If this is specified, it will override $(NWOS)\copyright.txt.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILE_nlm_copyright =
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Any additional imports go here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsFILES_nlm_Ximports = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Any symbols exported to here
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_nlm_exports = \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews asis_module \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# These are the OBJ files needed to create the LIB target above.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Paths must all use the '/' character
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserFILES_lib_objs = \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# implement targets and dependancies (leave this section alone)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userlibs :: $(OBJDIR) $(TARGET_lib)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsnlms :: libs $(TARGET_nlm)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Updated this target to create necessary directories and copy files to the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox Userinstall :: nlms FORCE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Any specialized rules here
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater# in this makefile
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(AP_WORK)\build\NWGNUtail.inc