NWGNUvhost revision 0a39e7683f6611d66c55712f50bb240428d832a1
5b57f580ce54201c6105300ea6636677531163f9Mark Andrews# Make sure all needed macro's are defined
4c34112a69735364713758c8a22f753389fd1753Mark Andrews# Get the 'head' of the build environment if necessary. This includes default
fb604d1cee223986d090763292015309adfcf9c7Mark Andrews# targets and paths to tools
fb604d1cee223986d090763292015309adfcf9c7Mark Andrewsifndef EnvironmentDefined
936036e82337c5aba40e735e5b46f9112869772fMark Andrewsinclude $(AP_WORK)\build\NWGNUhead.inc
81274f4b08b04eade0936cd32a4ba56281d7c2d2Mark Andrews# These directories will be at the beginning of the include list, followed by
3fd0334e59fe72294bedafc9cb0f74d66b1cfe3aMark AndrewsXINCDIRS += \
fc3b3e1f7e4ec1cf3bcc08f7ecc3ed8ebd29b034Mark Andrews $(AP_WORK)/include \
77cb7130e721c1352009c86fb2b38eedd06c4f97Mark Andrews# These flags will come after CFLAGS
adfc3ad3ce5db585fdb29d3d6000aa05ba077f13Evan Hunt# These defines will come after DEFINES
db1b550863d0fb4d65594f26a6d67f3c6a764a56Mark AndrewsXDEFINES += \
93143fd81acd86e594bac20c6c58b930dfe63a80Evan Hunt# These flags will be added to the link.opt file
c2e614115b19a4c28e0067e57a48f4ed5d5e12f8Mark Andrews# These values will be appended to the correct variables based on the value of
12c3204c463e2bf3a910a288f628ea1f26f77d1eEvan Huntifeq "$(RELEASE)" "debug"
c54dadd85337e9a8417103317a899dfba2a847d1Evan HuntXINCDIRS += \
bc298cd0f77dce2d452efd3e3d3153e2a9a17dbfMark AndrewsXDEFINES += \
ef9f4d097794609e018963087fab10a8b51d8ad1Mark Andrewsifeq "$(RELEASE)" "noopt"
ef9f4d097794609e018963087fab10a8b51d8ad1Mark AndrewsXINCDIRS += \
9a020198893d8389f1f3172d88ba6b16d7da3c04Evan HuntXDEFINES += \
c19cfefe7e345c37ef3bb98b0db2d14fe7b1d583Evan Huntifeq "$(RELEASE)" "release"
c19cfefe7e345c37ef3bb98b0db2d14fe7b1d583Evan HuntXINCDIRS += \
949eefdda49701c14579d1fd251bd09df0751c2fEvan HuntXDEFINES += \
9ddf371552b3554a22632996acc41ef9917a30f4Mark Andrews# These are used by the link target if an NLM is being generated
9ddf371552b3554a22632996acc41ef9917a30f4Mark Andrews# This is used by the link 'name' directive to name the nlm. If left blank
9ddf371552b3554a22632996acc41ef9917a30f4Mark Andrews# TARGET_nlm (see below) will be used.
83878aaa47488a3529897bb8ab4c2027d98b64c1Mark AndrewsNLM_NAME = vhost
83878aaa47488a3529897bb8ab4c2027d98b64c1Mark Andrews# This is used by the link '-desc ' directive.
83878aaa47488a3529897bb8ab4c2027d98b64c1Mark Andrews# If left blank, NLM_NAME will be used.
328e0fee6b6c91c258e5ce36eb70f5e017a85af2Mark AndrewsNLM_DESCRIPTION = Apache $(VERSION_STR) Vhost Alias Module
a5a30ae7c0636a57d8575acb98fdf906c0ea818fMark Andrews# This is used by the '-threadname' directive. If left blank,
a5a30ae7c0636a57d8575acb98fdf906c0ea818fMark Andrews# NLM_NAME Thread will be used.
f30785f506a522ed6a5e394af2bb13b6f883927eEvan HuntNLM_THREAD_NAME = Vhost Alias Module
f30785f506a522ed6a5e394af2bb13b6f883927eEvan Hunt# If this is specified, it will override VERSION value in
dd0d54ff010c43eef6b96bd3ee34a9c671abc6e5Mark Andrews# $(AP_WORK)\build\NWGNUenvironment.inc
dd0d54ff010c43eef6b96bd3ee34a9c671abc6e5Mark AndrewsNLM_VERSION =
32ebb157b1d9409a186c86002827f8a1f4931f5aMark Andrews# If this is specified, it will override the default of 64K
32ebb157b1d9409a186c86002827f8a1f4931f5aMark AndrewsNLM_STACK_SIZE = 8192
67dc2f0536bcbbfa0970eb2893dcbc1c6713fad4Mark Andrews# If this is specified it will be used by the link '-entry' directive
67dc2f0536bcbbfa0970eb2893dcbc1c6713fad4Mark AndrewsNLM_ENTRY_SYM = _LibCPrelude
67dc2f0536bcbbfa0970eb2893dcbc1c6713fad4Mark Andrews# If this is specified it will be used by the link '-exit' directive
67dc2f0536bcbbfa0970eb2893dcbc1c6713fad4Mark AndrewsNLM_EXIT_SYM = _LibCPostlude
67dc2f0536bcbbfa0970eb2893dcbc1c6713fad4Mark Andrews# If this is specified it will be used by the link '-check' directive
b290d10fc42ae909f7319eeac68f876155dbf824Mark AndrewsNLM_CHECK_SYM =
1d32b1df372d6be6bac6450739b9e5ea23819995Evan Hunt# If these are specified it will be used by the link '-flags' directive
1d32b1df372d6be6bac6450739b9e5ea23819995Evan HuntNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
9ca4e2411ca45c09494716f725b8b9a25ae887d7Mark Andrews# If this is specified it will be linked in with the XDCData option in the def
9ca4e2411ca45c09494716f725b8b9a25ae887d7Mark Andrews# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
108788443c2d4e4c5cc16c103bdfc7da665ed0c3Mark Andrews# by setting APACHE_UNIPROC in the environment
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt# If there is an NLM target, put it here
f5dc94b026b5153de76eeb3c1161596251f26bcbMark AndrewsTARGET_nlm = \
b4d8192d210290112e07b0e22b491c45c50ba696Evan Hunt# If there is an LIB target, put it here
b4d8192d210290112e07b0e22b491c45c50ba696Evan HuntTARGET_lib = \
71e4c3ee745b9fbf0c627246a9896589344f613cMark Andrews# These are the OBJ files needed to create the NLM target above.
71e4c3ee745b9fbf0c627246a9896589344f613cMark Andrews# Paths must all use the '/' character
04281728d41b7e04afdd0789aa3bc1a3225994f3Mark AndrewsFILES_nlm_objs = \
28c2bc20269f3127b8bcb68e4458392f86cc0116Evan Hunt# These are the LIB files needed to create the NLM target above.
28c2bc20269f3127b8bcb68e4458392f86cc0116Evan Hunt# These will be added as a library command in the link.opt file.
4122abdc3cfa16c8b3ecbd20830ca9a43f9fecb9Evan HuntFILES_nlm_libs = \
de52784e45e3a7a92c0d8ad843eb4db313bbfd97Mark Andrews# These are the modules that the above NLM target depends on to load.
b68dc65959cc38f997c365abed9f4e6c0415ecc7Mark Andrews# These will be added as a module command in the link.opt file.
56dc4c6730222cd3915a6ca39bc6578ad36a160aMark AndrewsFILES_nlm_modules = \
553197e28833ed2d8bf26f8112eaa137dbaa040aMark Andrews# If the nlm has a msg file, put it's path here
553197e28833ed2d8bf26f8112eaa137dbaa040aMark AndrewsFILE_nlm_msg =
553197e28833ed2d8bf26f8112eaa137dbaa040aMark Andrews# If the nlm has a hlp file put it's path here
5927944728a530e9f43597b64a555029e2d010bdScott MannFILE_nlm_hlp =
f5dc94b026b5153de76eeb3c1161596251f26bcbMark Andrews# If this is specified, it will override $(NWOS)\copyright.txt.
cae06bceda6c5d415f740574a64f42bf5f561d61Mark AndrewsFILE_nlm_copyright =
411d2914ade28174f3789d4a8e43636fc68eb310Mark Andrews# Any additional imports go here
23daf8948b2e5462ccea082a441e9759dffa50cdMark AndrewsFILES_nlm_Ximports = \
03e2b1d18d6231d02a09e03d9300667fd6ef51d9Mark Andrews# Any symbols exported to here
91ed1cc821ccef38c30f3fcaad32d78233fad94bMark AndrewsFILES_nlm_exports = \
91ed1cc821ccef38c30f3fcaad32d78233fad94bMark Andrews vhost_alias_module \
69feafa0af18ce7b1fd4f9d330948272e6c926a1Evan Hunt# These are the OBJ files needed to create the LIB target above.
2256c131942baddeb22bb3d9d305dd52a3b3ea04Mark Andrews# Paths must all use the '/' character
08b512b6a0c6e3c3e411275651930aeec605cf0cEvan HuntFILES_lib_objs = \
2256c131942baddeb22bb3d9d305dd52a3b3ea04Mark Andrews# implement targets and dependancies (leave this section alone)
7c6a1a11fa6342bd14f2804cd7753bdb1966d53dEvan Huntlibs :: $(OBJDIR) $(TARGET_lib)
7c6a1a11fa6342bd14f2804cd7753bdb1966d53dEvan Huntnlms :: libs $(TARGET_nlm)
6fb6f8a2263f9cbc6bf979a4d79cc7a71e86f41eEvan Hunt# Updated this target to create necessary directories and copy files to the
3ab9d6435a7b40812e9d8d9d1ecf537e28082e3aEvan Hunt# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
77d048b03eec3222e283426beab46ec23ecf8371Evan Huntinstall :: nlms FORCE
f5dc94b026b5153de76eeb3c1161596251f26bcbMark Andrews# Any specialized rules here
f5dc94b026b5153de76eeb3c1161596251f26bcbMark Andrews# Include the 'tail' makefile that has targets that depend on variables defined
f5dc94b026b5153de76eeb3c1161596251f26bcbMark Andrews# in this makefile
d9eebc08497af272b2d44c07f4eb85153dec4253Evan Huntinclude $(AP_WORK)\build\NWGNUtail.inc