NWGNUmakefile revision ea23d28432dc58e3ac7072dbcaf3d979dcb54c08
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# Declare the sub-directories to be built here
42167da203d969a1402cf7ce09c14586c04af1dfjimSUBDIRS = \
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna# Get the 'head' of the build environment. This includes default targets and
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna# paths to tools
27420b7ba57bf78f7a85b19fb0155053a3aff80dwroweinclude $(AP_WORK)/build/NWGNUhead.inc
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrin# build this level's files
9152b0c4366af633c4b7982af01bd9a821f410d5pquerna# Make sure all needed macro's are defined
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna# These directories will be at the beginning of the include list, followed by
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquernaXINCDIRS += \
424c1a743525e9c5008e29b39a99363723409a1dtrawick# These flags will come after CFLAGS
41f2764385330bfa0eb5843aa04f4e768577e2b0trawickXCFLAGS += \
4375cabac8fc22b3717687ffdbce9bbdf095f255trawick# These defines will come after DEFINES
39dbd3f60b93f5e0fbf46d9ae237f6742e113442pquernaXDEFINES += \
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna# These flags will be added to the link.opt file
89211a3153be8b03353c3bfbca45fed67cb80f0bpquernaXLFLAGS += \
a14ccf0f7e9b44c6848334823542a1799577f669pquerna# These values will be appended to the correct variables based on the value of
43c24b7301a9df7014ce54c0bc55ac4754cf5b0dpquernaifeq "$(RELEASE)" "debug"
43c24b7301a9df7014ce54c0bc55ac4754cf5b0dpquernaXINCDIRS += \
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquernaXCFLAGS += \
007ba11dc68651df7f872f35947ae82a595d9e02pquernaXDEFINES += \
25059ddf3044ffa8dd3432ab8e2f941023054407trawickXLFLAGS += \
44ca834b970b454b844efb96f219bdf49fee71e5trawickifeq "$(RELEASE)" "noopt"
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquernaXINCDIRS += \
1f9e65264b1ff249fa071e6aae32c0bb52f9c634trawickXCFLAGS += \
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesXDEFINES += \
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesifeq "$(RELEASE)" "release"
60e385aa992e11a6cb0504e8d4fc35186e8d848bpquernaXINCDIRS += \
d66ac514cc15e99228d72c56c6c3daf25da8d360niqXCFLAGS += \
d66ac514cc15e99228d72c56c6c3daf25da8d360niqXDEFINES += \
e23b77006a8b079c0ad52e42ba2029e759455b8fjortonXLFLAGS += \
82d2a5debc5a6ed2118ac5916d9ba36ad0b5d78btrawick# These are used by the link target if an NLM is being generated
82d2a5debc5a6ed2118ac5916d9ba36ad0b5d78btrawick# This is used by the link 'name' directive to name the nlm. If left blank
22c347c08cd77d5e2c32536b467b389fd33d631fpquerna# TARGET_nlm (see below) will be used.
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes# This is used by the link '-desc ' directive.
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes# If left blank, NLM_NAME will be used.
ad4a5834dfdf9488af4ac3238ea4d8b18dce49acpquernaNLM_DESCRIPTION =
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna# This is used by the '-threadname' directive. If left blank,
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna# NLM_NAME Thread will be used.
8c46f9f81ae6357dc97560d6d85154f19cf251aejimNLM_THREAD_NAME =
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna# If this is specified, it will override VERSION value in
599c5abcc7fec60611956f56b732eca033c287d2pquernaNLM_VERSION =
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified, it will override the default of 64K
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_STACK_SIZE =
c5cb4c9e7c8696907ddebab2a0037717c710b0f6jorton# If this is specified it will be used by the link '-entry' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_ENTRY_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If this is specified it will be used by the link '-exit' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_EXIT_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If this is specified it will be used by the link '-check' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_CHECK_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If these are specified it will be used by the link '-flags' directive
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholes# If this is specified it will be linked in with the XDCData option in the def
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna# by setting APACHE_UNIPROC in the environment
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes# If there is an NLM target, put it here
1d14622beee568462689b2bbc6a9e0e9b6a40583strikerTARGET_nlm = \
e777da9fa7ff3138fead7860b53ef00e67a40e26jerenkrantz# If WITH_MOD_SERF and SERFSRC have been defined then build the mod_serf module
e777da9fa7ff3138fead7860b53ef00e67a40e26jerenkrantzifdef WITH_MOD_SERF
e777da9fa7ff3138fead7860b53ef00e67a40e26jerenkrantzifneq "$(SERFSRC)" ""
e777da9fa7ff3138fead7860b53ef00e67a40e26jerenkrantzifneq "$(ZLIBSDK)" ""
8bdea88407c848c1c2693655e2f8b23abde12307bnicholesTARGET_nlm += \
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz# If there is an LIB target, put it here
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantzTARGET_lib = \
36c8049de63c446926139936c3d195330a0539cetrawick# These are the OBJ files needed to create the NLM target above.
36c8049de63c446926139936c3d195330a0539cetrawick# Paths must all use the '/' character
36c8049de63c446926139936c3d195330a0539cetrawickFILES_nlm_objs = \
0206c121a68a63559b2e843288e81bcf16093e46jerenkrantz# These are the LIB files needed to create the NLM target above.
8ff094bdec6a2e1c355c1e6e95e9952d4fae7766jerenkrantz# These will be added as a library command in the link.opt file.
628cf3411e8a6d09e27b3666312e43832dda93f3jortonFILES_nlm_libs = \
f0d89a5a23222e031db8113478645f28688fa748jorton# These are the modules that the above NLM target depends on to load.
f0d89a5a23222e031db8113478645f28688fa748jorton# These will be added as a module command in the link.opt file.
f0d89a5a23222e031db8113478645f28688fa748jortonFILES_nlm_modules = \
f0d89a5a23222e031db8113478645f28688fa748jorton# If the nlm has a msg file, put it's path here
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantzFILE_nlm_msg =
afc08f35f5f387896bc625cdee21b88c7fe7699djerenkrantz# If the nlm has a hlp file put it's path here
a0fd132e01ab69f1c48e3d6a6791447cb6d65e51jerenkrantzFILE_nlm_hlp =
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholesFILE_nlm_copyright =
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes# Any additional imports go here
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantzFILES_nlm_Ximports = \
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantz# Any symbols exported to here
418ee053321d0ee451bb482a9becdfcd3344201fjimFILES_nlm_exports = \
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz# These are the OBJ files needed to create the LIB target above.
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton# Paths must all use the '/' character
db8551deeb08fa799e7f27e8b748a9397f747bdcjortonFILES_lib_objs = \
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim# implement targets and dependancies (leave this section alone)
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantzlibs :: $(OBJDIR) $(TARGET_lib)
54d22ed1c429b903b029bbd62621f11a9e286137minfrinnlms :: libs $(TARGET_nlm)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin# Updated this target to create necessary directories and copy files to the
54d22ed1c429b903b029bbd62621f11a9e286137minfrin# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
54d22ed1c429b903b029bbd62621f11a9e286137minfrininstall :: nlms FORCE
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
06106b6b63b112a09de1b66fa29596035c0176ffthommay# Any specialized rules here
e335319a08e12eb7daff9afa80e985dc53f652b8jorton# Include the 'tail' makefile that has targets that depend on variables defined
e335319a08e12eb7daff9afa80e985dc53f652b8jorton# in this makefile
c8794ec1e4c474ae101ce3835080f638136e7860erikabeleinclude $(APBUILD)/NWGNUtail.inc