NWGNUusertrk revision 8ffac2c334103c0336602aaede650cb578611151
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# Make sure all needed macro's are defined
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# Get the 'head' of the build environment if necessary. This includes default
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# targets and paths to tools
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagherifndef EnvironmentDefined
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagherinclude $(AP_WORK)/build/NWGNUhead.inc
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagherendif
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# These directories will be at the beginning of the include list, followed by
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# INCDIRS
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen GallagherXINCDIRS += \
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher $(APR)/include \
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher $(APRUTIL)/include \
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher $(AP_WORK)/include \
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher $(NWOS) \
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher $(EOLIST)
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher# These flags will come after CFLAGS
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher#
cc2d77d5218c188119fa954c856e858cbde76947Pavel BřezinaXCFLAGS += \
443eb8217741df57d9f58f2098487b91e3404e71Jakub Hrozek $(EOLIST)
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl#
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl# These defines will come after DEFINES
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl#
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit BoseXDEFINES += \
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl $(EOLIST)
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl#
13ec767e6ca3e435e119f1f07bda10eb213383f6Pavel Reichl# These flags will be added to the link.opt file
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl#
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit BoseXLFLAGS += \
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose $(EOLIST)
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl#
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl# These values will be appended to the correct variables based on the value of
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl# RELEASE
2a2f642aae37e3f41cbbda162a74c2b946a4521fStephen Gallagher#
3612c73e7957721bcbf31d0118e2ac210eb46b88Pierre Ossmanifeq "$(RELEASE)" "debug"
f34a8330c1615511795847b0a1454249d782db2aAlexey KamenskiyXINCDIRS += \
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl $(EOLIST)
13ec767e6ca3e435e119f1f07bda10eb213383f6Pavel Reichl
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit BoseXCFLAGS += \
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose $(EOLIST)
22f4c1b86dcf5589e63f2ae043dc65a8f72f6f18Sumit Bose
d73fcc5183a676aed4fd040714b87274248b784cSumit BoseXDEFINES += \
d73fcc5183a676aed4fd040714b87274248b784cSumit Bose $(EOLIST)
d73fcc5183a676aed4fd040714b87274248b784cSumit Bose
37e7e93f1996cf50677cf59fd8af6938dd5d85b2Sumit BoseXLFLAGS += \
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose $(EOLIST)
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Boseendif
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Boseifeq "$(RELEASE)" "noopt"
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit BoseXINCDIRS += \
2a2f642aae37e3f41cbbda162a74c2b946a4521fStephen Gallagher $(EOLIST)
3612c73e7957721bcbf31d0118e2ac210eb46b88Pierre Ossman
f34a8330c1615511795847b0a1454249d782db2aAlexey KamenskiyXCFLAGS += \
2a91d3dd0ce4387332db27bd1a0c0005c74f870ePavel Reichl $(EOLIST)
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel ReichlXDEFINES += \
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl $(EOLIST)
13ec767e6ca3e435e119f1f07bda10eb213383f6Pavel Reichl
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit BoseXLFLAGS += \
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose $(EOLIST)
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagherendif
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagherifeq "$(RELEASE)" "release"
35480afaefafb77b28d35b29039989ab888aafe9Stephen GallagherXINCDIRS += \
32266b2c1c6b8bf95f3ba8fd7f3ff2ef63d8fb9aSumit Bose $(EOLIST)
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
35480afaefafb77b28d35b29039989ab888aafe9Stephen GallagherXCFLAGS += \
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina $(EOLIST)
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel BřezinaXDEFINES += \
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina $(EOLIST)
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel BřezinaXLFLAGS += \
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina $(EOLIST)
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březinaendif
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina#
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina# These are used by the link target if an NLM is being generated
8372129f446e1558f1923a112f328a266144c3ceStephen Gallagher# This is used by the link 'name' directive to name the nlm. If left blank
8372129f446e1558f1923a112f328a266144c3ceStephen Gallagher# TARGET_nlm (see below) will be used.
8372129f446e1558f1923a112f328a266144c3ceStephen Gallagher#
249a28dbf31e11794c7f35d709c5561c1555898dSimo SorceNLM_NAME = usertrk
249a28dbf31e11794c7f35d709c5561c1555898dSimo Sorce
8372129f446e1558f1923a112f328a266144c3ceStephen Gallagher#
443eb8217741df57d9f58f2098487b91e3404e71Jakub Hrozek# This is used by the link '-desc ' directive.
8372129f446e1558f1923a112f328a266144c3ceStephen Gallagher# If left blank, NLM_NAME will be used.
dfd71fc92db940b2892cc996911cec03d7b6c52bSimo Sorce#
8372129f446e1558f1923a112f328a266144c3ceStephen GallagherNLM_DESCRIPTION = Apache $(VERSION_STR) User Track Module
35480afaefafb77b28d35b29039989ab888aafe9Stephen Gallagher
#
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
NLM_THREAD_NAME = User Track Module
#
# If this is specified, it will override VERSION value in
# $(AP_WORK)/build/NWGNUenvironment.inc
#
NLM_VERSION =
#
# If this is specified, it will override the default of 64K
#
NLM_STACK_SIZE = 8192
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/usertrk.nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_usertrack.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
libcpre.o \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@libc.imp \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
usertrack_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
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