NWGNUremoteip revision cf7ca2f9eaa6523fefcccba4287b91637391fb51
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Make sure all needed macro's are defined
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Get the 'head' of the build environment if necessary. This includes default
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# targets and paths to tools
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgendif
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These directories will be at the beginning of the include list, followed by
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# INCDIRS
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXINCDIRS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(APR)/include \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(APRUTIL)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(AP_WORK)/include \
16b55a35cff91315d261d1baa776138af465c4e4fuankg $(NWOS) \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These flags will come after CFLAGS
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXCFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These defines will come after DEFINES
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXDEFINES += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These flags will be added to the link.opt file
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXLFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These values will be appended to the correct variables based on the value of
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# RELEASE
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgifeq "$(RELEASE)" "debug"
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXINCDIRS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXCFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXDEFINES += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXLFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgendif
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgifeq "$(RELEASE)" "noopt"
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXINCDIRS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXCFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXDEFINES += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXLFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgendif
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgifeq "$(RELEASE)" "release"
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXINCDIRS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXCFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXDEFINES += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXLFLAGS += \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgendif
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These are used by the link target if an NLM is being generated
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# This is used by the link 'name' directive to name the nlm. If left blank
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# TARGET_nlm (see below) will be used.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_NAME = remoteip
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# This is used by the link '-desc ' directive.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If left blank, NLM_NAME will be used.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_DESCRIPTION = Apache $(VERSION_STR) RemoteIP Module
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# This is used by the '-threadname' directive. If left blank,
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# NLM_NAME Thread will be used.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_THREAD_NAME = RemoteIP Module
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_VERSION =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified, it will override the default of 64K
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_STACK_SIZE = 8192
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified it will be used by the link '-entry' directive
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified it will be used by the link '-exit' directive
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified it will be used by the link '-check' directive
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgNLM_CHECK_SYM =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If these are specified it will be used by the link '-flags' directive
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified it will be linked in with the XDCData option in the def
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# by setting APACHE_UNIPROC in the environment
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgXDCDATA =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If there is an NLM target, put it here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgTARGET_nlm = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(OBJDIR)/$(NLM_NAME).nlm \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If there is an LIB target, put it here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgTARGET_lib = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These are the OBJ files needed to create the NLM target above.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Paths must all use the '/' character
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_nlm_objs = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(OBJDIR)/mod_remoteip.o \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These are the LIB files needed to create the NLM target above.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These will be added as a library command in the link.opt file.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These are the modules that the above NLM target depends on to load.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These will be added as a module command in the link.opt file.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_nlm_modules = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg aprlib \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg libc \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If the nlm has a msg file, put it's path here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILE_nlm_msg =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If the nlm has a hlp file put it's path here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILE_nlm_hlp =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# If this is specified, it will override $(NWOS)\copyright.txt.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILE_nlm_copyright =
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Any additional imports go here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_nlm_Ximports = \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
8ffac2c334103c0336602aaede650cb578611151fuankg @httpd.imp \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg @libc.imp \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Any symbols exported to here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_nlm_exports = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg remoteip_module \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# These are the OBJ files needed to create the LIB target above.
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Paths must all use the '/' character
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgFILES_lib_objs = \
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg $(EOLIST)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# implement targets and dependancies (leave this section alone)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankglibs :: $(OBJDIR) $(TARGET_lib)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankgnlms :: libs $(TARGET_nlm)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankginstall :: nlms FORCE
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Any specialized rules here
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# Include the 'tail' makefile that has targets that depend on variables defined
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg# in this makefile
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg#
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg
0e168a1fd4f9d8bbb7ce1034c70bad56e316df07fuankg