NWGNUoptfnimport revision ff7e89a077d93c243bd8261cf3c72b13732ab5b4
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Declare the sub-directories to be built here
fd9abdda70912b99b24e3bf1a38f26fde908a74cndSUBDIRS = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Get the 'head' of the build environment. This includes default targets and
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc# paths to tools
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erboweninclude $(AP_WORK)\build\NWGNUhead.inc
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen# build this level's files
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Make sure all needed macro's are defined
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These directories will be at the beginning of the include list, followed by
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXINCDIRS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd $(AP_WORK)/include \
d28579afd45cc42da1422161721fb12f9cf366b9nd $(APR)/include \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd $(APRUTIL)/include \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These flags will come after CFLAGS
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXCFLAGS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These defines will come after DEFINES
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXDEFINES += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These flags will be added to the link.opt file
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXLFLAGS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These values will be appended to the correct variables based on the value of
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunifeq "$(RELEASE)" "debug"
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunXINCDIRS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXCFLAGS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXDEFINES += \
1462ff536f1b939bb337766b2056109c29664c4erbowenXLFLAGS += \
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedoohifeq "$(RELEASE)" "noopt"
1f1b6bf13313fdd14a45e52e553d3ff28689b717coarXINCDIRS += \
f4cbda69df0490c6deaacb8d04f103d200ddd183ndXCFLAGS += \
df4578cbf77fc9e35ccade1f01b137b7eea5ede6ndXDEFINES += \
f4cbda69df0490c6deaacb8d04f103d200ddd183ndXLFLAGS += \
f4cbda69df0490c6deaacb8d04f103d200ddd183ndifeq "$(RELEASE)" "release"
f4cbda69df0490c6deaacb8d04f103d200ddd183ndXINCDIRS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXCFLAGS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXDEFINES += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndXLFLAGS += \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These are used by the link target if an NLM is being generated
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# This is used by the link 'name' directive to name the nlm. If left blank
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# TARGET_nlm (see below) will be used.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndNLM_NAME = optfnimport
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# This is used by the link '-desc ' directive.
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If left blank, NLM_NAME will be used.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndNLM_DESCRIPTION = Apache $(VERSION_STR) OptionalFunction Import Module
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# This is used by the '-threadname' directive. If left blank,
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# NLM_NAME Thread will be used.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndNLM_THREAD_NAME = $(NLM_NAME) Module
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If this is specified, it will override VERSION value in
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# $(AP_WORK)\build\NWGNUenvironment.inc
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndNLM_VERSION =
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If this is specified, it will override the default of 64K
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndNLM_STACK_SIZE = 8192
2704de98885368683621b01c8f8f4e4b01557611takashi# If this is specified it will be used by the link '-entry' directive
e609c337f729875bc20e01096c7e610f45356f54nilgunNLM_ENTRY_SYM = _LibCPrelude
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If this is specified it will be used by the link '-exit' directive
1462ff536f1b939bb337766b2056109c29664c4erbowenNLM_EXIT_SYM = _LibCPostlude
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# If this is specified it will be used by the link '-check' directive
1462ff536f1b939bb337766b2056109c29664c4erbowenNLM_CHECK_SYM =
1462ff536f1b939bb337766b2056109c29664c4erbowen# If these are specified it will be used by the link '-flags' directive
1462ff536f1b939bb337766b2056109c29664c4erbowenNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun# If this is specified it will be linked in with the XDCData option in the def
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun# by setting APACHE_UNIPROC in the environment
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun# If there is an NLM target, put it here
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunTARGET_nlm = \
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun $(OBJDIR)/$(NLM_NAME).nlm \
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun# If there is an LIB target, put it here
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndTARGET_lib = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These are the OBJ files needed to create the NLM target above.
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Paths must all use the '/' character
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILES_nlm_objs = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These are the LIB files needed to create the NLM target above.
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These will be added as a library command in the link.opt file.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILES_nlm_libs = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These are the modules that the above NLM target depends on to load.
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# These will be added as a module command in the link.opt file.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILES_nlm_modules = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If the nlm has a msg file, put it's path here
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunFILE_nlm_msg =
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If the nlm has a hlp file put it's path here
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILE_nlm_hlp =
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# If this is specified, it will override $(NWOS)\copyright.txt.
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILE_nlm_copyright =
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Any additional imports go here
1ac39787115a288f5e848344b1b1e8dccb1c58f1ndFILES_nlm_Ximports = \
1ac39787115a288f5e848344b1b1e8dccb1c58f1nd# Any symbols exported to here
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgunFILES_nlm_exports = \
dfc5f686a6ac416a480f0281c9ff0a751013fcf2nilgun optional_fn_import_module \
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# These are the OBJ files needed to create the LIB target above.
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# Paths must all use the '/' character
91f378b5a10f2d83820902ed10ba7967a3920c18nilgunFILES_lib_objs = \
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# implement targets and dependancies (leave this section alone)
91f378b5a10f2d83820902ed10ba7967a3920c18nilgunlibs :: $(OBJDIR) $(TARGET_lib)
91f378b5a10f2d83820902ed10ba7967a3920c18nilgunnlms :: libs $(TARGET_nlm)
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# Updated this target to create necessary directories and copy files to the
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
91f378b5a10f2d83820902ed10ba7967a3920c18nilguninstall :: nlms FORCE
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# Any specialized rules here
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# Include the 'tail' makefile that has targets that depend on variables defined
91f378b5a10f2d83820902ed10ba7967a3920c18nilgun# in this makefile
91f378b5a10f2d83820902ed10ba7967a3920c18nilguninclude $(AP_WORK)\build\NWGNUtail.inc