NWGNUopthookimport revision 16b55a35cff91315d261d1baa776138af465c4e4
5ac928b7a71a12bc1a6b42194c47edbff1dcc02fgregames# Declare the sub-directories to be built here
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# Get the 'head' of the build environment. This includes default targets and
35330e0d79ceb8027223bbb8330a381b1f989d6etrawick# paths to tools
09bd86d0db1114ee23eda0a6eb76ca055877a1cftrawickinclude $(AP_WORK)\build\NWGNUhead.inc
70f6f32765cfaadd6da8de6f0fea97ddd72d8fadmanoj# build this level's files
2a4b7a53f3573605d4f5686f03a67c37425dc22bgregames# Make sure all needed macro's are defined
5ac928b7a71a12bc1a6b42194c47edbff1dcc02fgregames# These directories will be at the beginning of the include list, followed by
5ac928b7a71a12bc1a6b42194c47edbff1dcc02fgregamesXINCDIRS += \
2a4b7a53f3573605d4f5686f03a67c37425dc22bgregames $(APR)/include \
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj $(APRUTIL)/include \
531c23ff01a2489646f0a2029097013b328d935agstein $(AP_WORK)/include \
50298555098049d0ebddd539668502fb5b796de0wrowe# These flags will come after CFLAGS
50298555098049d0ebddd539668502fb5b796de0wroweXCFLAGS += \
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# These defines will come after DEFINES
447c6ce3ff08073c44f6785d5256271fcb877512wroweXDEFINES += \
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddard# These flags will be added to the link.opt file
d208bda4a893cc81ed5d3ed1cdd7d706e012bd42stoddardXLFLAGS += \
863ec32e13d6c9619414c48b51109f3dca99cbc6wrowe# These values will be appended to the correct variables based on the value of
75960f20f88dad6bc67892c711c429946063d133stoddardifeq "$(RELEASE)" "debug"
75960f20f88dad6bc67892c711c429946063d133stoddardXINCDIRS += \
75960f20f88dad6bc67892c711c429946063d133stoddardXCFLAGS += \
10b386767f6c87b45937244371cb751f0b454d16wroweXDEFINES += \
10b386767f6c87b45937244371cb751f0b454d16wroweXLFLAGS += \
a9e07e4f90adcc7bc768db3055431c3dcd560cd1manojifeq "$(RELEASE)" "noopt"
f6a6245816cd866361da8c576b1f47c7a54b6610fanfXINCDIRS += \
db3ccce11afac4fc1d4f51a65424412f7480c46cgsteinXCFLAGS += \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickXDEFINES += \
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickXLFLAGS += \
750fcd3495b59eff6d4844409ae1dfb46d026059gsteinifeq "$(RELEASE)" "release"
750fcd3495b59eff6d4844409ae1dfb46d026059gsteinXINCDIRS += \
750fcd3495b59eff6d4844409ae1dfb46d026059gsteinXCFLAGS += \
750fcd3495b59eff6d4844409ae1dfb46d026059gsteinXDEFINES += \
e9cfc70fceb74521ba0814cdc88808c7d4d00c97gsteinXLFLAGS += \
26ef89f716a43048630e73f527dd2f0ee84f72c2rbb# These are used by the link target if an NLM is being generated
26ef89f716a43048630e73f527dd2f0ee84f72c2rbb# This is used by the link 'name' directive to name the nlm. If left blank
26ef89f716a43048630e73f527dd2f0ee84f72c2rbb# TARGET_nlm (see below) will be used.
9eccc0a669a3e711629345b357c46acce5fefdb4gsteinNLM_NAME = opthookimport
281da4c02cf40c663298ded7e4e5b913a8f8b814gstein# This is used by the link '-desc ' directive.
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein# If left blank, NLM_NAME will be used.
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gsteinNLM_DESCRIPTION = Apache $(VERSION_STR) OptionalHook Import Module
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein# This is used by the '-threadname' directive. If left blank,
ec75f189410513ab8f6e1173a9d9d277ebec9ce7gstein# NLM_NAME Thread will be used.
2a6c49cfaef5979a5a06098f3ce987cd76769409manojNLM_THREAD_NAME = $(NLM_NAME) Module
90aa1045e25f8ae38b16905abafbb37c89553469jwoolley# If this is specified, it will override VERSION value in
90aa1045e25f8ae38b16905abafbb37c89553469jwoolley# $(AP_WORK)\build\NWGNUenvironment.inc
0b54edee18a0ec095640e1038ff6da7d35042b44rbbNLM_VERSION =
0b54edee18a0ec095640e1038ff6da7d35042b44rbb# If this is specified, it will override the default of 64K
b187d568e1507d75139ebc13ca945b38fc05d55cstoddardNLM_STACK_SIZE = 8192
8bed76428f56e5c643174a2d6807c3f18016af5cbjh# If this is specified it will be used by the link '-entry' directive
8bed76428f56e5c643174a2d6807c3f18016af5cbjhNLM_ENTRY_SYM = _LibCPrelude
2aae6faee508221efbeaba5547ca79b7a20ef047stoddard# If this is specified it will be used by the link '-exit' directive
10b386767f6c87b45937244371cb751f0b454d16wroweNLM_EXIT_SYM = _LibCPostlude
50298555098049d0ebddd539668502fb5b796de0wrowe# If this is specified it will be used by the link '-check' directive
10b386767f6c87b45937244371cb751f0b454d16wroweNLM_CHECK_SYM =
50298555098049d0ebddd539668502fb5b796de0wrowe# If these are specified it will be used by the link '-flags' directive
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddardNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
a5ed555df952c85bc1b179f5981e8a6c54ba16e6stoddard# If this is specified it will be linked in with the XDCData option in the def
0bff2f28ef945280c17099c142126178a78e1e54manoj# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0bff2f28ef945280c17099c142126178a78e1e54manoj# by setting APACHE_UNIPROC in the environment
0bff2f28ef945280c17099c142126178a78e1e54manoj# If there is an NLM target, put it here
75960f20f88dad6bc67892c711c429946063d133stoddardTARGET_nlm = \
302dc1f7b3feee23a91ad8f3cf3cb2edd95a557bmanoj $(OBJDIR)/$(NLM_NAME).nlm \
447c6ce3ff08073c44f6785d5256271fcb877512wrowe# If there is an LIB target, put it here
447c6ce3ff08073c44f6785d5256271fcb877512wroweTARGET_lib = \
cf6bf6c34c936e6a6fe731dbce4a5c3c8bf8e9a3gstein# These are the OBJ files needed to create the NLM target above.
c03566fa0156d3a1500a42e4fe539e3e0fc8a11dgstein# Paths must all use the '/' character
dd4713dc5b186f4d1be7b88f86608fdb84cbe5d5gsteinFILES_nlm_objs = \
db3ccce11afac4fc1d4f51a65424412f7480c46cgstein# These are the LIB files needed to create the NLM target above.
79d5106a9b65b956d646f5daae4b94bc79e315b8trawick# These will be added as a library command in the link.opt file.
79d5106a9b65b956d646f5daae4b94bc79e315b8trawickFILES_nlm_libs = \
93c5cba06b623ebe8e4372e886eece12d9a80c3egstein# These are the modules that the above NLM target depends on to load.
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgstein# These will be added as a module command in the link.opt file.
14cccaddba3a9263cf0d0ddc311e18f3e3dc9b0fgsteinFILES_nlm_modules = \
e636eba7474e0010b5c7198af1c2fe5ad8652dbbmanoj# If the nlm has a msg file, put it's path here
e636eba7474e0010b5c7198af1c2fe5ad8652dbbmanojFILE_nlm_msg =
531c23ff01a2489646f0a2029097013b328d935agstein# If the nlm has a hlp file put it's path here
531c23ff01a2489646f0a2029097013b328d935agsteinFILE_nlm_hlp =
333eac96e4fb7d6901cb75e6ca7bb22b2ccb84cetrawick# If this is specified, it will override $(NWOS)\copyright.txt.
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILE_nlm_copyright =
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any additional imports go here
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILES_nlm_Ximports = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any symbols exported to here
64ad864fa0f4493eebb181e393b40a8a90beccb9coarFILES_nlm_exports = \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar optional_hook_import_module \
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# These are the OBJ files needed to create the LIB target above.
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Paths must all use the '/' character
28d1da9ca818f831ea491f110dafcc10f7f07050coarFILES_lib_objs = \
28d1da9ca818f831ea491f110dafcc10f7f07050coar# implement targets and dependancies (leave this section alone)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarlibs :: $(OBJDIR) $(TARGET_lib)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarnlms :: libs $(TARGET_nlm)
28d1da9ca818f831ea491f110dafcc10f7f07050coar# Updated this target to create necessary directories and copy files to the
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
64ad864fa0f4493eebb181e393b40a8a90beccb9coarinstall :: nlms FORCE
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Any specialized rules here
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# Include the 'tail' makefile that has targets that depend on variables defined
64ad864fa0f4493eebb181e393b40a8a90beccb9coar# in this makefile
64ad864fa0f4493eebb181e393b40a8a90beccb9coarinclude $(AP_WORK)\build\NWGNUtail.inc