NWGNUexample_ipc revision 8ffac2c334103c0336602aaede650cb578611151
d3ed5b56cb6b58f87ffd125bed48f7668f13de1edirkx#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Declare the sub-directories to be built here
842ae4bd224140319ae7feec1872b93dfd491143fielding#
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fieldingSUBDIRS = \
842ae4bd224140319ae7feec1872b93dfd491143fielding $(EOLIST)
842ae4bd224140319ae7feec1872b93dfd491143fielding
842ae4bd224140319ae7feec1872b93dfd491143fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Get the 'head' of the build environment. This includes default targets and
0202d2114cc6d7042995100519cce45c808c153bnd# paths to tools
893328ef6ff86d0ca27774778d84410353789fb0fielding#
0202d2114cc6d7042995100519cce45c808c153bnd
0202d2114cc6d7042995100519cce45c808c153bndinclude $(AP_WORK)/build/NWGNUhead.inc
0202d2114cc6d7042995100519cce45c808c153bnd
0202d2114cc6d7042995100519cce45c808c153bnd#
0202d2114cc6d7042995100519cce45c808c153bnd# build this level's files
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# Make sure all needed macro's are defined
893328ef6ff86d0ca27774778d84410353789fb0fielding#
0d50a692ff2ac7bdb42e417737ed86ebf0a41671ben
14eccd0082c748ae3464dc2459430ff0772b5107sf#
14eccd0082c748ae3464dc2459430ff0772b5107sf# These directories will be at the beginning of the include list, followed by
14eccd0082c748ae3464dc2459430ff0772b5107sf# INCDIRS
14eccd0082c748ae3464dc2459430ff0772b5107sf#
14eccd0082c748ae3464dc2459430ff0772b5107sfXINCDIRS += \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(APR)/include \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(APRUTIL)/include \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(AP_WORK)/include \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(AP_WORK)/server/mpm/netware \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(NWOS) \
14eccd0082c748ae3464dc2459430ff0772b5107sf $(EOLIST)
14eccd0082c748ae3464dc2459430ff0772b5107sf
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# These flags will come after CFLAGS
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
90b402e944318ae02afd50911eae6da1910f661dpquernaXCFLAGS += \
928f622b54e87afbbaba6add8aef8066ca16a040wrowe $(EOLIST)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# These defines will come after DEFINES
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXDEFINES += \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(EOLIST)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# These flags will be added to the link.opt file
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXLFLAGS += \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(EOLIST)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# These values will be appended to the correct variables based on the value of
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# RELEASE
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzifeq "$(RELEASE)" "debug"
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXINCDIRS += \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(EOLIST)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXCFLAGS += \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(EOLIST)
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz
893328ef6ff86d0ca27774778d84410353789fb0fieldingXDEFINES += \
893328ef6ff86d0ca27774778d84410353789fb0fielding $(EOLIST)
893328ef6ff86d0ca27774778d84410353789fb0fielding
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXLFLAGS += \
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquerna $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquernaendif
90b402e944318ae02afd50911eae6da1910f661dpquerna
a9de7b69548bd69bfc84e9eea6a8215db2640deftakashiifeq "$(RELEASE)" "noopt"
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquernaXINCDIRS += \
90b402e944318ae02afd50911eae6da1910f661dpquerna $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquerna
c5694b1d7dca4f561ebce416b5ffacf856f825aawroweXCFLAGS += \
90b402e944318ae02afd50911eae6da1910f661dpquerna $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquerna
90b402e944318ae02afd50911eae6da1910f661dpquernaXDEFINES += \
90b402e944318ae02afd50911eae6da1910f661dpquerna $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquerna
90b402e944318ae02afd50911eae6da1910f661dpquernaXLFLAGS += \
90b402e944318ae02afd50911eae6da1910f661dpquerna $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquernaendif
893328ef6ff86d0ca27774778d84410353789fb0fielding
91ea8a85362a63522578e4d59fc6bfe37bc8df17trawickifeq "$(RELEASE)" "release"
893328ef6ff86d0ca27774778d84410353789fb0fieldingXINCDIRS += \
91ea8a85362a63522578e4d59fc6bfe37bc8df17trawick $(EOLIST)
893328ef6ff86d0ca27774778d84410353789fb0fielding
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquernaXCFLAGS += \
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem $(EOLIST)
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemXDEFINES += \
893328ef6ff86d0ca27774778d84410353789fb0fielding $(EOLIST)
90b402e944318ae02afd50911eae6da1910f661dpquerna
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemXLFLAGS += \
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem $(EOLIST)
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemendif
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
90b402e944318ae02afd50911eae6da1910f661dpquerna# These are used by the link target if an NLM is being generated
90b402e944318ae02afd50911eae6da1910f661dpquerna# This is used by the link 'name' directive to name the nlm. If left blank
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# TARGET_nlm (see below) will be used.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemNLM_NAME = example_ipc
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# This is used by the link '-desc ' directive.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# If left blank, NLM_NAME will be used.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemNLM_DESCRIPTION = Apache $(VERSION_STR) Example IPC Callback Handler Module
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# This is used by the '-threadname' directive. If left blank,
91ea8a85362a63522578e4d59fc6bfe37bc8df17trawick# NLM_NAME Thread will be used.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
91ea8a85362a63522578e4d59fc6bfe37bc8df17trawickNLM_THREAD_NAME = Example IPC Callback Handler Module
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# If this is specified, it will override VERSION value in
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquerna# $(AP_WORK)/build/NWGNUenvironment.inc
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquerna#
0b7037d0efc1cd510ee12e8a35c982c3f2da0353pquernaNLM_VERSION =
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# If this is specified, it will override the default of 64K
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fieldingNLM_STACK_SIZE = 8192
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding
623882f55701a4c5a6bded180f60d86a524ac341sascha#
623882f55701a4c5a6bded180f60d86a524ac341sascha# If this is specified it will be used by the link '-entry' directive
e07615ab3b59412d79eebb8d5b12f488e77c14a7jorton#
60f9d4d87a893330a01722ed518d0b3fff8eb2eejortonNLM_ENTRY_SYM =
c066cdcb75ca262e424345b347b86e7ce2285869jerenkrantz
c15906bab97b9b71b6dc08c1aa2f5c0b72b5ca4edreid#
c15906bab97b9b71b6dc08c1aa2f5c0b72b5ca4edreid# If this is specified it will be used by the link '-exit' directive
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csascha#
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csaschaNLM_EXIT_SYM =
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fielding# If this is specified it will be used by the link '-check' directive
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemNLM_CHECK_SYM =
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
893328ef6ff86d0ca27774778d84410353789fb0fielding# If these are specified it will be used by the link '-flags' directive
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fieldingNLM_FLAGS =
893328ef6ff86d0ca27774778d84410353789fb0fielding
c5694b1d7dca4f561ebce416b5ffacf856f825aawrowe#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# If this is specified it will be linked in with the XDCData option in the def
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz# by setting APACHE_UNIPROC in the environment
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantzXDCDATA =
59b1b6c3fd51c83c3bb9f02a8f08751335f9fb1dminfrin
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz#
893328ef6ff86d0ca27774778d84410353789fb0fielding# If there is an NLM target, put it here
b399779260ac6f6ad2e808df429a496527648323jorton#
b399779260ac6f6ad2e808df429a496527648323jortonTARGET_nlm = \
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem $(OBJDIR)/example_ipc.nlm \
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem $(EOLIST)
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# If there is an LIB target, put it here
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluemTARGET_lib = \
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem $(EOLIST)
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
893328ef6ff86d0ca27774778d84410353789fb0fielding#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# These are the OBJ files needed to create the NLM target above.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# Paths must all use the '/' character
c5694b1d7dca4f561ebce416b5ffacf856f825aawrowe#
1e5333ef1a0edb888d75c0cdd90b33fa7e89fc31wsanchezFILES_nlm_objs = \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(OBJDIR)/mod_example_ipc.o \
99d360dcbb5ac2be27694be74cc6124dbadf3315jerenkrantz $(EOLIST)
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem#
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# These are the LIB files needed to create the NLM target above.
eb06d6a7dc2a6609217689ee5e430d87637ef9e6rpluem# These will be added as a library command in the link.opt file.
1e5333ef1a0edb888d75c0cdd90b33fa7e89fc31wsanchez#
1d13cbde60ace1b56ca57b9f0f74168bb1288174trawickFILES_nlm_libs = \
1d13cbde60ace1b56ca57b9f0f74168bb1288174trawick libcpre.o \
80b1e2ff2e3515fdab14675684b2640ceb6ce1c7trawick $(EOLIST)
1d13cbde60ace1b56ca57b9f0f74168bb1288174trawick
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz#
ab44eb80e084a02a66a58336d6fcfbbe48310439trawick# These are the modules that the above NLM target depends on to load.
ab44eb80e084a02a66a58336d6fcfbbe48310439trawick# These will be added as a module command in the link.opt file.
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz#
ab44eb80e084a02a66a58336d6fcfbbe48310439trawickFILES_nlm_modules = \
ab44eb80e084a02a66a58336d6fcfbbe48310439trawick aprlib \
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz libc \
9045837071eae7a4b55204a21f31ccee17749af3jerenkrantz $(EOLIST)
893328ef6ff86d0ca27774778d84410353789fb0fielding
893328ef6ff86d0ca27774778d84410353789fb0fielding#
544c23d79a3a7596a3612224ed3ac9fa8372929djerenkrantz# If the nlm has a msg file, put it's path here
893328ef6ff86d0ca27774778d84410353789fb0fielding#
893328ef6ff86d0ca27774778d84410353789fb0fieldingFILE_nlm_msg =
893328ef6ff86d0ca27774778d84410353789fb0fielding
544c23d79a3a7596a3612224ed3ac9fa8372929djerenkrantz#
96e6cafca226a8a2a64a7bbdc634b5b2679c9e0csascha# If the nlm has a hlp file put it's path here
e07615ab3b59412d79eebb8d5b12f488e77c14a7jorton#
60f9d4d87a893330a01722ed518d0b3fff8eb2eejortonFILE_nlm_hlp =
0464cb46220c1025cbfe1365a6bd352e67d2e766jorton
4cb8bb9049d1643295ebda12c76dad441ddc2228jim#
4cb8bb9049d1643295ebda12c76dad441ddc2228jim# If this is specified, it will override $(NWOS)\copyright.txt.
4cb8bb9049d1643295ebda12c76dad441ddc2228jim#
4028d805f3ab215e39bae405d35e001a538bc50eminfrinFILE_nlm_copyright =
4028d805f3ab215e39bae405d35e001a538bc50eminfrin
4028d805f3ab215e39bae405d35e001a538bc50eminfrin#
2834087a8155f38c7edd908a765ef3211ed37cf1minfrin# Any additional imports go here
4028d805f3ab215e39bae405d35e001a538bc50eminfrin#
4028d805f3ab215e39bae405d35e001a538bc50eminfrinFILES_nlm_Ximports = \
4028d805f3ab215e39bae405d35e001a538bc50eminfrin @aprlib.imp \
4028d805f3ab215e39bae405d35e001a538bc50eminfrin @httpd.imp \
4028d805f3ab215e39bae405d35e001a538bc50eminfrin @libc.imp \
4028d805f3ab215e39bae405d35e001a538bc50eminfrin $(EOLIST)
4028d805f3ab215e39bae405d35e001a538bc50eminfrin
4028d805f3ab215e39bae405d35e001a538bc50eminfrin#
4028d805f3ab215e39bae405d35e001a538bc50eminfrin# Any symbols exported to here
4028d805f3ab215e39bae405d35e001a538bc50eminfrin#
4028d805f3ab215e39bae405d35e001a538bc50eminfrinFILES_nlm_exports = \
2834087a8155f38c7edd908a765ef3211ed37cf1minfrin example_ipc_module \
4028d805f3ab215e39bae405d35e001a538bc50eminfrin $(EOLIST)
4028d805f3ab215e39bae405d35e001a538bc50eminfrin
4028d805f3ab215e39bae405d35e001a538bc50eminfrin#
8fae12696bce44be9ce4c56888690cad8ac7b8f9sf# These are the OBJ files needed to create the LIB target above.
f0528865c2e6c22ecc51eeecc496251489029bddjorton# Paths must all use the '/' character
8fae12696bce44be9ce4c56888690cad8ac7b8f9sf#
8fae12696bce44be9ce4c56888690cad8ac7b8f9sfFILES_lib_objs = \
3f24a3e2c43302efecc8aa3a6c0cc7ee823481d0rjung $(EOLIST)
f0528865c2e6c22ecc51eeecc496251489029bddjorton
3f24a3e2c43302efecc8aa3a6c0cc7ee823481d0rjung#
8fae12696bce44be9ce4c56888690cad8ac7b8f9sf# implement targets and dependancies (leave this section alone)
f0528865c2e6c22ecc51eeecc496251489029bddjorton#
893328ef6ff86d0ca27774778d84410353789fb0fielding
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc