NWGNUmakefile revision b8022feeb260e31994600a65c2193278838a4802
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Declare the sub-directories to be built here
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Get the 'head' of the build environment. This includes default targets and
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# paths to tools
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Brayinclude $(AP_WORK)\build\NWGNUhead.inc
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter Bray# build this level's files
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# Make sure all needed macro's are defined
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# These directories will be at the beginning of the include list, followed by
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray $(AP_WORK)/include \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# These flags will come after CFLAGS
b17cb0705d90907337b3528aa7b8ed1700806f26Vladimir Kotal# These defines will come after DEFINES
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotal# These flags will be added to the link.opt file
3ba66fbb56ef22f183da783a1b2718280c357a4eStanislav Kozina# These values will be appended to the correct variables based on the value of
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalifeq "$(RELEASE)" "debug"
c577d2f6c082eaff9af5bc997d12f3d3bcef537cPeter BrayXINCDIRS += \
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalifeq "$(RELEASE)" "noopt"
fbf97ea1786d1e25add88bbfb91810170473bc9fLubos KoscoXDEFINES += \
cd348e325366620fe047edcc849e3c9424828599Peter Brayifeq "$(RELEASE)" "release"
cd348e325366620fe047edcc849e3c9424828599Peter BrayXINCDIRS += \
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos KoscoXDEFINES += \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# These are used by the link target if an NLM is being generated
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# This is used by the link 'name' directive to name the nlm. If left blank
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# TARGET_nlm (see below) will be used.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayNLM_NAME = logio
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# This is used by the link '-desc ' directive.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If left blank, NLM_NAME will be used.
cd348e325366620fe047edcc849e3c9424828599Peter BrayNLM_DESCRIPTION = Apache IO Logging Module
cd348e325366620fe047edcc849e3c9424828599Peter Bray# This is used by the '-threadname' directive. If left blank,
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# NLM_NAME Thread will be used.
cd348e325366620fe047edcc849e3c9424828599Peter BrayNLM_THREAD_NAME = Logio Module
cd348e325366620fe047edcc849e3c9424828599Peter Bray# If this is specified, it will override VERSION value in
cd348e325366620fe047edcc849e3c9424828599Peter Bray# $(AP_WORK)\build\NWGNUenvironment.inc
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayNLM_VERSION =
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos Kosco# If this is specified, it will override the default of 64K
0ca9a2c194523c517c3aafe5758e217ac88d6baaLubos KoscoNLM_STACK_SIZE = 8192
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If this is specified it will be used by the link '-entry' directive
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayNLM_ENTRY_SYM = _LibCPrelude
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If this is specified it will be used by the link '-exit' directive
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayNLM_EXIT_SYM = _LibCPostlude
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If this is specified it will be used by the link '-check' directive
c83dfde6b364917fa8ed28142d509a7c29a4da68Vladimir KotalNLM_CHECK_SYM =
cd348e325366620fe047edcc849e3c9424828599Peter Bray# If these are specified it will be used by the link '-flags' directive
cd348e325366620fe047edcc849e3c9424828599Peter BrayNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
cd348e325366620fe047edcc849e3c9424828599Peter Bray# If this is specified it will be linked in with the XDCData option in the def
cd348e325366620fe047edcc849e3c9424828599Peter Bray# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
cd348e325366620fe047edcc849e3c9424828599Peter Bray# by setting APACHE_UNIPROC in the environment
0b2998be561e7bf5e3479d686a5af36f712b0d9aVladimir Kotal# If there is an NLM target, put it here
d2a02e104622a26dd90fa88f4f17188f2039809fPeter BrayTARGET_nlm = \
cd348e325366620fe047edcc849e3c9424828599Peter Bray# If there is an LIB target, put it here
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos KoscoTARGET_lib = \
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# These are the OBJ files needed to create the NLM target above.
c842732324ee4c74ede17887ad1f0dcdc4364a2cLubos Kosco# Paths must all use the '/' character
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayFILES_nlm_objs = \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# These are the LIB files needed to create the NLM target above.
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# These will be added as a library command in the link.opt file.
cd348e325366620fe047edcc849e3c9424828599Peter BrayFILES_nlm_libs = \
cd348e325366620fe047edcc849e3c9424828599Peter Bray# These are the modules that the above NLM target depends on to load.
d961aa46ea0d50fed47802497e45226b1965b12dVladimir Kotal# These will be added as a module command in the link.opt file.
d961aa46ea0d50fed47802497e45226b1965b12dVladimir KotalFILES_nlm_modules = \
d2a02e104622a26dd90fa88f4f17188f2039809fPeter Bray# If the nlm has a msg file, put it's path here
cd348e325366620fe047edcc849e3c9424828599Peter BrayFILE_nlm_msg =
cd348e325366620fe047edcc849e3c9424828599Peter Bray# If the nlm has a hlp file put it's path here
56d93b0c761868f813ac0bc0b5bc21a7a9fefd89Vladimir KotalFILE_nlm_hlp =
2b024356b830395446c55f50f9f724a63612e578Lubos Kosco# If this is specified, it will override $(NWOS)\copyright.txt.
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter BrayFILE_nlm_copyright =
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# Any additional imports go here
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos KoscoFILES_nlm_Ximports = \
cd348e325366620fe047edcc849e3c9424828599Peter Bray# Any symbols exported to here
d6ee3934a24d8ccc0e4bb478405d8e5f6a35825dLubos KoscoFILES_nlm_exports = \
b17cb0705d90907337b3528aa7b8ed1700806f26Vladimir Kotal logio_module \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# These are the OBJ files needed to create the LIB target above.
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos Kosco# Paths must all use the '/' character
d70dc22c6dce3f498251b0873638d1fea0e644a3Lubos KoscoFILES_lib_objs = \
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# implement targets and dependancies (leave this section alone)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Koscolibs :: $(OBJDIR) $(TARGET_lib)
2cf31ec93bd5d8a2efeab511ce051da51e69aedaLubos Kosconlms :: libs $(TARGET_nlm)
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# Updated this target to create necessary directories and copy files to the
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
1a5c2ab40bd94d2b2c63afda767ce7bbf29ecc4bJan Friedelinstall :: nlms FORCE
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco copy $(OBJDIR)\*.nlm $(INSTALL)\Apache2\modules\*.*
e87f836e908f8279021f79c8f7bcef98e99d126eLubos Kosco# Any specialized rules here
5762c9f28c2246777be0e9d49cb29d9c0f49146dLubos Kosco# Include the 'tail' makefile that has targets that depend on variables defined
d280c5e286f5b98be13237f52281ae5afdcf51b9Peter Bray# in this makefile
6c8465e3b4611cb632cba9b0572e3e3737c8c341Vladimir Kotalinclude $(AP_WORK)\build\NWGNUtail.inc