NWGNUheaders revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# Make sure all needed macro's are defined
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# Get the 'head' of the build environment if necessary. This includes default
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# targets and paths to tools
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyifndef EnvironmentDefined
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyinclude $(AP_WORK)/build/NWGNUhead.inc
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# These directories will be at the beginning of the include list, followed by
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXINCDIRS += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley $(APR)/include \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley $(APRUTIL)/include \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley $(AP_WORK)/include \
440be4c866f6935ac069db79a414304507a664c2Michael Graff# These flags will come after CFLAGS
2504b0a58600c1156a6b829c816d13c58a069453Bob Halley# These defines will come after DEFINES
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob HalleyXDEFINES += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# These flags will be added to the link.opt file
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# These values will be appended to the correct variables based on the value of
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halleyifeq "$(RELEASE)" "debug"
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyXINCDIRS += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXDEFINES += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyifeq "$(RELEASE)" "noopt"
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXINCDIRS += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXDEFINES += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleyifeq "$(RELEASE)" "release"
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXINCDIRS += \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyXDEFINES += \
00e7d7a0e8529998c78b73371dc90fbf680b57efBob Halley# These are used by the link target if an NLM is being generated
00e7d7a0e8529998c78b73371dc90fbf680b57efBob Halley# This is used by the link 'name' directive to name the nlm. If left blank
00e7d7a0e8529998c78b73371dc90fbf680b57efBob Halley# TARGET_nlm (see below) will be used.
00e7d7a0e8529998c78b73371dc90fbf680b57efBob HalleyNLM_NAME = headers
00e7d7a0e8529998c78b73371dc90fbf680b57efBob Halley# This is used by the link '-desc ' directive.
19f08273e2592fa48608ec1ac5e021b4b3489030Bob Halley# If left blank, NLM_NAME will be used.
2504b0a58600c1156a6b829c816d13c58a069453Bob HalleyNLM_DESCRIPTION = Apache $(VERSION_STR) Headers Module
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley# This is used by the '-threadname' directive. If left blank,
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# NLM_NAME Thread will be used.
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob HalleyNLM_THREAD_NAME = Headers Module
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# If this is specified, it will override VERSION value in
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# If this is specified, it will override the default of 64K
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyNLM_STACK_SIZE = 8192
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If this is specified it will be used by the link '-entry' directive
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyNLM_ENTRY_SYM =
c627721fedbb33c18bf577c46ff281a8c3bc082fMark Andrews# If this is specified it will be used by the link '-exit' directive
00e7d7a0e8529998c78b73371dc90fbf680b57efBob HalleyNLM_EXIT_SYM =
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If this is specified it will be used by the link '-check' directive
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyNLM_CHECK_SYM =
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If these are specified it will be used by the link '-flags' directive
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If this is specified it will be linked in with the XDCData option in the def
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
c56c5586b49ccddbaf7e2b5c6c06adee1c509253Bob Halley# by setting APACHE_UNIPROC in the environment
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If there is an NLM target, put it here
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyTARGET_nlm = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If there is an LIB target, put it here
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyTARGET_lib = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# These are the OBJ files needed to create the NLM target above.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# Paths must all use the '/' character
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyFILES_nlm_objs = \
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley# These are the LIB files needed to create the NLM target above.
726290e9d5b720b736fa39d9f7d92c2efb7d1f24Bob Halley# These will be added as a library command in the link.opt file.
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyFILES_nlm_libs = \
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley $(PRELUDE) \
2504b0a58600c1156a6b829c816d13c58a069453Bob Halley# These are the modules that the above NLM target depends on to load.
2504b0a58600c1156a6b829c816d13c58a069453Bob Halley# These will be added as a module command in the link.opt file.
fd15c8e32ed0c1cfd3ed737858a81966e7fbaeacAndreas GustafssonFILES_nlm_modules = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# If the nlm has a msg file, put it's path here
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyFILE_nlm_msg =
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# If the nlm has a hlp file put it's path here
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyFILE_nlm_hlp =
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# If this is specified, it will override $(NWOS)\copyright.txt.
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyFILE_nlm_copyright =
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# Any additional imports go here
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyFILES_nlm_Ximports = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# Any symbols exported to here
f94f59d746daffc38356d0a019b64eb01d2341c0Bob HalleyFILES_nlm_exports = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley headers_module \
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# These are the OBJ files needed to create the LIB target above.
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# Paths must all use the '/' character
205790a755849f9b9ec12dd7836dcd87ca580d89Bob HalleyFILES_lib_objs = \
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halley# implement targets and dependancies (leave this section alone)
f94f59d746daffc38356d0a019b64eb01d2341c0Bob Halleylibs :: $(OBJDIR) $(TARGET_lib)
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halleynlms :: libs $(TARGET_nlm)
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# Updated this target to create necessary directories and copy files to the
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halleyinstall :: nlms FORCE
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# Any specialized rules here
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# Include the 'tail' makefile that has targets that depend on variables defined
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halley# in this makefile
205790a755849f9b9ec12dd7836dcd87ca580d89Bob Halleyinclude $(APBUILD)/NWGNUtail.inc