NWGNUheaders revision ac7985784d08a3655291f24f711812b4d8b1cbcf
76477bd0e0a8f150f06f45c347d286b782cfa679Brian Wellington# Make sure all needed macro's are defined
e491ef29043ae77d3d78fb7a59328f143fcf70feAndreas Gustafsson# Get the 'head' of the build environment if necessary. This includes default
e491ef29043ae77d3d78fb7a59328f143fcf70feAndreas Gustafsson# targets and paths to tools
1a286a6613d385b443030a8c932e40ac9e9c301fBob Halleyifndef EnvironmentDefined
1a286a6613d385b443030a8c932e40ac9e9c301fBob Halleyinclude $(AP_WORK)\build\NWGNUhead.inc
3242899a56da9c245956979d5be9c92b2cf0ee24Andreas Gustafsson# These directories will be at the beginning of the include list, followed by
ecaedd50f4e6b8cff110f9981a0a33a34269d421Mark AndrewsXINCDIRS += \
9ffcab1e9a398e431c10c9936c28e4166c2e82e0Andreas Gustafsson $(AP_WORK)/include \
de8717a7218a4f034144ad7b8755ad43e3fd45c9David Lawrence $(APR)/include \
6f115bdb61672871bd822bdcd09cb1a3aad38aa0David Lawrence $(APRUTIL)/include \
5e194abb5b548524e5c0fd2bb4627ec698b75e2bAndreas Gustafsson# These flags will come after CFLAGS
5e194abb5b548524e5c0fd2bb4627ec698b75e2bAndreas Gustafsson# These defines will come after DEFINES
8c3989000a19f88415d094eb5984f7cf6ba2340cBrian Wellington# These flags will be added to the link.opt file
c20ffa38dee7efa0dc01822d4bac5e41729b9b61Brian Wellington# These values will be appended to the correct variables based on the value of
9ffcab1e9a398e431c10c9936c28e4166c2e82e0Andreas Gustafssonifeq "$(RELEASE)" "debug"
55ddb88e53838693370c213930beda1652b8a583Brian Wellingtonifeq "$(RELEASE)" "noopt"
2c9db9314993504064c1a71f4a059ff9493a75caBrian Wellingtonifeq "$(RELEASE)" "release"
c0968380c4fb0b8196aafb8de225531bd847bb6dBrian Wellington# These are used by the link target if an NLM is being generated
c0968380c4fb0b8196aafb8de225531bd847bb6dBrian Wellington# This is used by the link 'name' directive to name the nlm. If left blank
c0968380c4fb0b8196aafb8de225531bd847bb6dBrian Wellington# TARGET_nlm (see below) will be used.
c0968380c4fb0b8196aafb8de225531bd847bb6dBrian WellingtonNLM_NAME = headers
1d92d8a2456b23842a649b6104c60a9d6ea25333Brian Wellington# This is used by the link '-desc ' directive.
c1ff0308f3f67bf148f96ca952db081eb5fd8383Brian Wellington# If left blank, NLM_NAME will be used.
b52a5b063050f209b0f47379178a1e7ae7404624Andreas GustafssonNLM_DESCRIPTION = Apache $(VERSION_STR) Headers Module
34613b2e39478a83076f6a626a4b855cebb19533Andreas Gustafsson# This is used by the '-threadname' directive. If left blank,
34613b2e39478a83076f6a626a4b855cebb19533Andreas Gustafsson# NLM_NAME Thread will be used.
34613b2e39478a83076f6a626a4b855cebb19533Andreas GustafssonNLM_THREAD_NAME = Headers Module
6eccf5bd07eb9abf65cc08fec4a8fc97b62c0e1bBrian Wellington# If this is specified, it will override VERSION value in
6eccf5bd07eb9abf65cc08fec4a8fc97b62c0e1bBrian Wellington# $(AP_WORK)\build\NWGNUenvironment.inc
3d1483d86dce11fffd03c5b6c93be2e689f522abAndreas Gustafsson# If this is specified, it will override the default of 64K
b879ed05f4fb8209add6c19a509c984b6c8b3a98Andreas GustafssonNLM_STACK_SIZE = 8192
48565891e8f2f8c77b87908b4893f693a08e9ba9Brian Wellington# If this is specified it will be used by the link '-entry' directive
b0390aab30438a13f533cccae9389945214b1421Brian WellingtonNLM_ENTRY_SYM = _LibCPrelude
b0390aab30438a13f533cccae9389945214b1421Brian Wellington# If this is specified it will be used by the link '-exit' directive
54d64c7994d01da590462ecc56faf1a87fc4abb9Brian WellingtonNLM_EXIT_SYM = _LibCPostlude
4c03e69ab845f703c1ffa3b7772938ca98cce44dAndreas Gustafsson# If this is specified it will be used by the link '-check' directive
225a66da7ea2671a3e4db3cc4337f97ff67be647Brian WellingtonNLM_CHECK_SYM =
d9112843333472bb7700c02a10d18e2b253b2708Bob Halley# If these are specified it will be used by the link '-flags' directive
279de54fe3a0ac10b64762b18a4569c07b15d742Andreas GustafssonNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
279de54fe3a0ac10b64762b18a4569c07b15d742Andreas Gustafsson# If this is specified it will be linked in with the XDCData option in the def
04cb6056a6539539e0fc2ed695298f7fa7b1d632Brian Wellington# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
04cb6056a6539539e0fc2ed695298f7fa7b1d632Brian Wellington# by setting APACHE_UNIPROC in the environment
123a3dddc94534d3a6c6f81c118a5b63dc5994c3Andreas Gustafsson# If there is an NLM target, put it here
590233519e14f3cf49840a93d2648d5560dd957eDavid LawrenceTARGET_nlm = \
123a3dddc94534d3a6c6f81c118a5b63dc5994c3Andreas Gustafsson# If there is an LIB target, put it here
d25dd5b0567f67ecf40b7ed1cb20e0dce7b41c49Brian Wellington# These are the OBJ files needed to create the NLM target above.
d25dd5b0567f67ecf40b7ed1cb20e0dce7b41c49Brian Wellington# Paths must all use the '/' character
9ac7076ebad044afb15e9e2687e3696868778538Mark AndrewsFILES_nlm_objs = \
7c058f1c384ebdba74231111f9358cf08109a5dbBob Halley# These are the LIB files needed to create the NLM target above.
76b3ec5e0c3ae856bc1000270bf3df13580673ebBrian Wellington# These will be added as a library command in the link.opt file.
4e3f8e480f220ef8a87fd28d02f9001b8fc6f423Bob HalleyFILES_nlm_libs = \
4e3f8e480f220ef8a87fd28d02f9001b8fc6f423Bob Halley# These are the modules that the above NLM target depends on to load.
dc2e09d48b49d96a0572a971180718f680140cf0Andreas Gustafsson# These will be added as a module command in the link.opt file.
dc2e09d48b49d96a0572a971180718f680140cf0Andreas GustafssonFILES_nlm_modules = \
dc2e09d48b49d96a0572a971180718f680140cf0Andreas Gustafsson# If the nlm has a msg file, put it's path here
620de5a4b1f23dc9b4ec30d30c0607ff389be0daBob Halley# If the nlm has a hlp file put it's path here
620de5a4b1f23dc9b4ec30d30c0607ff389be0daBob HalleyFILE_nlm_hlp =
d1cc210d2091916df6f9858fae20a1c760f3b257Andreas Gustafsson# If this is specified, it will override $(NWOS)\copyright.txt.
d1cc210d2091916df6f9858fae20a1c760f3b257Andreas GustafssonFILE_nlm_copyright =
d1cc210d2091916df6f9858fae20a1c760f3b257Andreas Gustafsson# Any additional imports go here
d1cc210d2091916df6f9858fae20a1c760f3b257Andreas GustafssonFILES_nlm_Ximports = \
a93cf7e83be621d3d68f51e37121a47a70a6757bMark Andrews# Any symbols exported to here
c05eeed3c915d55a4949f5c2ce8700a0b0f9381bAndreas GustafssonFILES_nlm_exports = \
1c1156b6e71555e593ed4bbca2284055c9f6fa45Andreas Gustafsson headers_module \
3bb043a8b8b15eece3794ec31ad0ccab103a1c21Brian Wellington# These are the OBJ files needed to create the LIB target above.
3bb043a8b8b15eece3794ec31ad0ccab103a1c21Brian Wellington# Paths must all use the '/' character
14c615e979f674aa61b0ca65c6a252009e521dd8Brian WellingtonFILES_lib_objs = \
df0f58959ed82a2a43ca8d816ce9592541df9f2fMark Andrews# implement targets and dependancies (leave this section alone)
f4b5a0f43481026ea27bd96e3584ca0e92542f0dBob Halleylibs :: $(OBJDIR) $(TARGET_lib)
f4b5a0f43481026ea27bd96e3584ca0e92542f0dBob Halleynlms :: libs $(TARGET_nlm)
f4b5a0f43481026ea27bd96e3584ca0e92542f0dBob Halley# Updated this target to create necessary directories and copy files to the
6211baaa66d7cac28a21b6426681e597ff04ca9eAndreas Gustafsson# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
4e605108c6533c2ec6311ee7a466582392656dddAndreas Gustafssoninstall :: nlms FORCE
ea544b0511a66bc5f3700d56a72dcd808fdf22e8Brian Wellington# Any specialized rules here
a012d6dbfb100390efa7d0d4be64ada0210b09ddBrian Wellington# Include the 'tail' makefile that has targets that depend on variables defined
a012d6dbfb100390efa7d0d4be64ada0210b09ddBrian Wellington# in this makefile
c8d185ad5827bf2cf9982075e3336f680759a260Andreas Gustafssoninclude $(AP_WORK)\build\NWGNUtail.inc