NWGNUmakefile revision ea23d28432dc58e3ac7072dbcaf3d979dcb54c08
87d944bf70927764edf8ef69e46d3b4b8fa09131pquerna#
c30ef289fe64ac7fedc44cfcc6b439f0f8458b4cgregames# Declare the sub-directories to be built here
82d2a5debc5a6ed2118ac5916d9ba36ad0b5d78btrawick#
42167da203d969a1402cf7ce09c14586c04af1dfjim
42167da203d969a1402cf7ce09c14586c04af1dfjimSUBDIRS = \
42167da203d969a1402cf7ce09c14586c04af1dfjim $(EOLIST)
81ebf4d4f943d1ec988dd10105354e510c2da1d8jim
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna#
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna# Get the 'head' of the build environment. This includes default targets and
e62b34b26eb8e82bf6f06ff99a08e304b48792ecpquerna# paths to tools
27420b7ba57bf78f7a85b19fb0155053a3aff80dwrowe#
27420b7ba57bf78f7a85b19fb0155053a3aff80dwrowe
27420b7ba57bf78f7a85b19fb0155053a3aff80dwroweinclude $(AP_WORK)/build/NWGNUhead.inc
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrin
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrin#
ceeb4b77f172b9d0125f1b4b323675d700b2c43bminfrin# build this level's files
9152b0c4366af633c4b7982af01bd9a821f410d5pquerna
9152b0c4366af633c4b7982af01bd9a821f410d5pquerna#
9152b0c4366af633c4b7982af01bd9a821f410d5pquerna# Make sure all needed macro's are defined
9152b0c4366af633c4b7982af01bd9a821f410d5pquerna#
87d944bf70927764edf8ef69e46d3b4b8fa09131pquerna
87d944bf70927764edf8ef69e46d3b4b8fa09131pquerna#
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna# These directories will be at the beginning of the include list, followed by
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna# INCDIRS
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna#
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquernaXINCDIRS += \
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna $(EOLIST)
424c1a743525e9c5008e29b39a99363723409a1dtrawick
424c1a743525e9c5008e29b39a99363723409a1dtrawick#
424c1a743525e9c5008e29b39a99363723409a1dtrawick# These flags will come after CFLAGS
5e1ff0b87a9d4551b4509aad11e7e0f31fd50c90pquerna#
41f2764385330bfa0eb5843aa04f4e768577e2b0trawickXCFLAGS += \
1ef90d1763e489969ec7a01c77bcb158ece5ae83jorton $(EOLIST)
41f2764385330bfa0eb5843aa04f4e768577e2b0trawick
4375cabac8fc22b3717687ffdbce9bbdf095f255trawick#
4375cabac8fc22b3717687ffdbce9bbdf095f255trawick# These defines will come after DEFINES
4375cabac8fc22b3717687ffdbce9bbdf095f255trawick#
39dbd3f60b93f5e0fbf46d9ae237f6742e113442pquernaXDEFINES += \
39dbd3f60b93f5e0fbf46d9ae237f6742e113442pquerna $(EOLIST)
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna#
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna# These flags will be added to the link.opt file
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna#
89211a3153be8b03353c3bfbca45fed67cb80f0bpquernaXLFLAGS += \
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna $(EOLIST)
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna
89211a3153be8b03353c3bfbca45fed67cb80f0bpquerna#
a14ccf0f7e9b44c6848334823542a1799577f669pquerna# These values will be appended to the correct variables based on the value of
a14ccf0f7e9b44c6848334823542a1799577f669pquerna# RELEASE
a14ccf0f7e9b44c6848334823542a1799577f669pquerna#
43c24b7301a9df7014ce54c0bc55ac4754cf5b0dpquernaifeq "$(RELEASE)" "debug"
43c24b7301a9df7014ce54c0bc55ac4754cf5b0dpquernaXINCDIRS += \
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquerna $(EOLIST)
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquerna
a2e37e48efb113e8e4f9d9ca9c8286aaac6c936cpquernaXCFLAGS += \
007ba11dc68651df7f872f35947ae82a595d9e02pquerna $(EOLIST)
007ba11dc68651df7f872f35947ae82a595d9e02pquerna
007ba11dc68651df7f872f35947ae82a595d9e02pquernaXDEFINES += \
25059ddf3044ffa8dd3432ab8e2f941023054407trawick $(EOLIST)
25059ddf3044ffa8dd3432ab8e2f941023054407trawick
25059ddf3044ffa8dd3432ab8e2f941023054407trawickXLFLAGS += \
25059ddf3044ffa8dd3432ab8e2f941023054407trawick $(EOLIST)
44ca834b970b454b844efb96f219bdf49fee71e5trawickendif
44ca834b970b454b844efb96f219bdf49fee71e5trawick
44ca834b970b454b844efb96f219bdf49fee71e5trawickifeq "$(RELEASE)" "noopt"
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquernaXINCDIRS += \
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquerna $(EOLIST)
eb8430fd3bc941c0b3ba8bba3884b7fc464bf458pquerna
1f9e65264b1ff249fa071e6aae32c0bb52f9c634trawickXCFLAGS += \
1f9e65264b1ff249fa071e6aae32c0bb52f9c634trawick $(EOLIST)
1f9e65264b1ff249fa071e6aae32c0bb52f9c634trawick
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesXDEFINES += \
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes $(EOLIST)
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesXLFLAGS += \
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes $(EOLIST)
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesendif
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholes
fde88bb682426885c679198ee130d2d5a29e8c0fbnicholesifeq "$(RELEASE)" "release"
60e385aa992e11a6cb0504e8d4fc35186e8d848bpquernaXINCDIRS += \
60e385aa992e11a6cb0504e8d4fc35186e8d848bpquerna $(EOLIST)
60e385aa992e11a6cb0504e8d4fc35186e8d848bpquerna
d66ac514cc15e99228d72c56c6c3daf25da8d360niqXCFLAGS += \
d66ac514cc15e99228d72c56c6c3daf25da8d360niq $(EOLIST)
d66ac514cc15e99228d72c56c6c3daf25da8d360niq
d66ac514cc15e99228d72c56c6c3daf25da8d360niqXDEFINES += \
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton $(EOLIST)
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton
e23b77006a8b079c0ad52e42ba2029e759455b8fjortonXLFLAGS += \
e23b77006a8b079c0ad52e42ba2029e759455b8fjorton $(EOLIST)
b597281295360dba8ac57b7606c5f5c1ef2b69b0trawickendif
b597281295360dba8ac57b7606c5f5c1ef2b69b0trawick
b597281295360dba8ac57b7606c5f5c1ef2b69b0trawick#
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.
22c347c08cd77d5e2c32536b467b389fd33d631fpquerna#
8c46f9f81ae6357dc97560d6d85154f19cf251aejimNLM_NAME =
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes#
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes# This is used by the link '-desc ' directive.
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes# If left blank, NLM_NAME will be used.
b6e2b36d6972a0e243368eb567e91d511fb40b1bbnicholes#
ad4a5834dfdf9488af4ac3238ea4d8b18dce49acpquernaNLM_DESCRIPTION =
e5882a36d7756850cc829f5f2286120b877458b1pquerna
e5882a36d7756850cc829f5f2286120b877458b1pquerna#
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna# This is used by the '-threadname' directive. If left blank,
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna# NLM_NAME Thread will be used.
8b7594c66e764f5cd3506b6f2459497ab65a8b03pquerna#
8c46f9f81ae6357dc97560d6d85154f19cf251aejimNLM_THREAD_NAME =
8c46f9f81ae6357dc97560d6d85154f19cf251aejim
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna#
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna# If this is specified, it will override VERSION value in
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna# $(AP_WORK)/build/NWGNUenvironment.inc
20f1b1a67eef5ab0f3295608c89964a7dca4fdd1pquerna#
599c5abcc7fec60611956f56b732eca033c287d2pquernaNLM_VERSION =
599c5abcc7fec60611956f56b732eca033c287d2pquerna
599c5abcc7fec60611956f56b732eca033c287d2pquerna#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes# If this is specified, it will override the default of 64K
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholes#
e76fdcdfb8994ad70776526f50fa013b3e9a6033bnicholesNLM_STACK_SIZE =
eb9b491d7b262dad572ec2f1f75eea592283f81apquerna
eb9b491d7b262dad572ec2f1f75eea592283f81apquerna
1ef90d1763e489969ec7a01c77bcb158ece5ae83jorton#
c5cb4c9e7c8696907ddebab2a0037717c710b0f6jorton# If this is specified it will be used by the link '-entry' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_ENTRY_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If this is specified it will be used by the link '-exit' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_EXIT_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If this is specified it will be used by the link '-check' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89sliveNLM_CHECK_SYM =
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive# If these are specified it will be used by the link '-flags' directive
6d00a5e2c08ddbff9614ecc17a1c085462811f89slive#
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholesNLM_FLAGS =
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholes
4f6e78091b3f45a5782389ae25b62516a7a0c842bnicholes#
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
7d15331eeb5429d7148d13d6fd914a641bf1c000pquerna#
7d15331eeb5429d7148d13d6fd914a641bf1c000pquernaXDCDATA =
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes#
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes# If there is an NLM target, put it here
e9be3aacfd6c0a1208e6c91a133be92ed0f94fe1bnicholes#
1d14622beee568462689b2bbc6a9e0e9b6a40583strikerTARGET_nlm = \
1d14622beee568462689b2bbc6a9e0e9b6a40583striker $(OBJDIR)/proxy.nlm \
6e5f5644328bf50c3aa295d0ab20903369010829gregames $(OBJDIR)/proxycon.nlm \
6e5f5644328bf50c3aa295d0ab20903369010829gregames $(OBJDIR)/proxyftp.nlm \
6e5f5644328bf50c3aa295d0ab20903369010829gregames $(OBJDIR)/proxyhtp.nlm \
e978097e0bf2ae161b6f9dde40eaf089bf046c89ake $(OBJDIR)/proxybalancer.nlm \
e978097e0bf2ae161b6f9dde40eaf089bf046c89ake $(OBJDIR)/proxyajp.nlm \
e978097e0bf2ae161b6f9dde40eaf089bf046c89ake $(OBJDIR)/proxyfcgi.nlm \
275419d6395e6f072962fb701b89accaff1f3690jerenkrantz $(OBJDIR)/proxyscgi.nlm \
275419d6395e6f072962fb701b89accaff1f3690jerenkrantz $(EOLIST)
275419d6395e6f072962fb701b89accaff1f3690jerenkrantz
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 += \
8bdea88407c848c1c2693655e2f8b23abde12307bnicholes $(OBJDIR)/serf.nlm \
8bdea88407c848c1c2693655e2f8b23abde12307bnicholes $(EOLIST)
275419d6395e6f072962fb701b89accaff1f3690jerenkrantzendif
8e7fb6968047a527d1ccde25ad2aed20da5150ddjerenkrantzendif
8e7fb6968047a527d1ccde25ad2aed20da5150ddjerenkrantzendif
8e7fb6968047a527d1ccde25ad2aed20da5150ddjerenkrantz
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz#
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz# If there is an LIB target, put it here
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz#
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantzTARGET_lib = \
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz $(EOLIST)
5a9fa4d75086e942f6e850e1a2e96c4c27a845d0jerenkrantz
36c8049de63c446926139936c3d195330a0539cetrawick#
36c8049de63c446926139936c3d195330a0539cetrawick# These are the OBJ files needed to create the NLM target above.
36c8049de63c446926139936c3d195330a0539cetrawick# Paths must all use the '/' character
36c8049de63c446926139936c3d195330a0539cetrawick#
36c8049de63c446926139936c3d195330a0539cetrawickFILES_nlm_objs = \
36c8049de63c446926139936c3d195330a0539cetrawick $(EOLIST)
0206c121a68a63559b2e843288e81bcf16093e46jerenkrantz
0206c121a68a63559b2e843288e81bcf16093e46jerenkrantz#
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.
8ff094bdec6a2e1c355c1e6e95e9952d4fae7766jerenkrantz#
628cf3411e8a6d09e27b3666312e43832dda93f3jortonFILES_nlm_libs = \
628cf3411e8a6d09e27b3666312e43832dda93f3jorton $(EOLIST)
628cf3411e8a6d09e27b3666312e43832dda93f3jorton
f0d89a5a23222e031db8113478645f28688fa748jorton#
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.
f0d89a5a23222e031db8113478645f28688fa748jorton#
f0d89a5a23222e031db8113478645f28688fa748jortonFILES_nlm_modules = \
f0d89a5a23222e031db8113478645f28688fa748jorton $(EOLIST)
f0d89a5a23222e031db8113478645f28688fa748jorton
f0d89a5a23222e031db8113478645f28688fa748jorton#
f0d89a5a23222e031db8113478645f28688fa748jorton# If the nlm has a msg file, put it's path here
f0d89a5a23222e031db8113478645f28688fa748jorton#
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantzFILE_nlm_msg =
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantz
65d743d7fbb53143636ee2dec8fe8d8a1a581a6bjerenkrantz#
afc08f35f5f387896bc625cdee21b88c7fe7699djerenkrantz# If the nlm has a hlp file put it's path here
a0fd132e01ab69f1c48e3d6a6791447cb6d65e51jerenkrantz#
a0fd132e01ab69f1c48e3d6a6791447cb6d65e51jerenkrantzFILE_nlm_hlp =
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantz
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantz#
a6bb6f2fb734e488a9b6335fabea3431f9dcf253jerenkrantz# If this is specified, it will override $(NWOS)\copyright.txt.
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes#
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholesFILE_nlm_copyright =
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes#
3ca80e703a960eca0760c23636b7fe502a8f0342bnicholes# Any additional imports go here
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantz#
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantzFILES_nlm_Ximports = \
5300d4a4fabe3b594da950e4b9ab0f90e076546ejerenkrantz $(EOLIST)
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantz
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantz#
b1306729566b49fb30aed5c46adaf07a637115afjerenkrantz# Any symbols exported to here
418ee053321d0ee451bb482a9becdfcd3344201fjim#
418ee053321d0ee451bb482a9becdfcd3344201fjimFILES_nlm_exports = \
418ee053321d0ee451bb482a9becdfcd3344201fjim $(EOLIST)
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz#
5c6cb72bfeee541644cea8177aefce1157571d3bjerenkrantz# These are the OBJ files needed to create the LIB target above.
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton# Paths must all use the '/' character
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton#
db8551deeb08fa799e7f27e8b748a9397f747bdcjortonFILES_lib_objs = \
db8551deeb08fa799e7f27e8b748a9397f747bdcjorton $(EOLIST)
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim#
9e3209bc06ddf32f23e4b254faa45914bc323cc9jim# implement targets and dependancies (leave this section alone)
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantz#
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantz
45ed846f4ed90f05c084f6a33d688e642be4e623jerenkrantzlibs :: $(OBJDIR) $(TARGET_lib)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrinnlms :: libs $(TARGET_nlm)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin
54d22ed1c429b903b029bbd62621f11a9e286137minfrin#
54d22ed1c429b903b029bbd62621f11a9e286137minfrin# Updated this target to create necessary directories and copy files to the
54d22ed1c429b903b029bbd62621f11a9e286137minfrin# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
54d22ed1c429b903b029bbd62621f11a9e286137minfrin#
54d22ed1c429b903b029bbd62621f11a9e286137minfrininstall :: nlms FORCE
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz
92e8e44864d94866eefcbfde0a53fa3d12855149jerenkrantz#
06106b6b63b112a09de1b66fa29596035c0176ffthommay# Any specialized rules here
06106b6b63b112a09de1b66fa29596035c0176ffthommay#
06106b6b63b112a09de1b66fa29596035c0176ffthommay
e335319a08e12eb7daff9afa80e985dc53f652b8jorton#
e335319a08e12eb7daff9afa80e985dc53f652b8jorton# Include the 'tail' makefile that has targets that depend on variables defined
e335319a08e12eb7daff9afa80e985dc53f652b8jorton# in this makefile
e335319a08e12eb7daff9afa80e985dc53f652b8jorton#
e335319a08e12eb7daff9afa80e985dc53f652b8jorton
c8794ec1e4c474ae101ce3835080f638136e7860erikabeleinclude $(APBUILD)/NWGNUtail.inc
c8794ec1e4c474ae101ce3835080f638136e7860erikabele
c8794ec1e4c474ae101ce3835080f638136e7860erikabele
c8794ec1e4c474ae101ce3835080f638136e7860erikabele