NWGNUuniqueid revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Make sure all needed macro's are defined
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Get the 'head' of the build environment if necessary. This includes default
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# targets and paths to tools
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpifndef EnvironmentDefined
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignacinclude $(AP_WORK)/build/NWGNUhead.inc
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These directories will be at the beginning of the include list, followed by
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignacXINCDIRS += \
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac $(APR)/include \
3437829f938dbb44527d91fbbc5f430a1243c5a5JnRouvignac $(APRUTIL)/include \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp $(SRC)/include \
a074bebeb08cbb6d20cdeab0e3689f1e1992b3c7csovant# These flags will come after CFLAGS
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXCFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These defines will come after DEFINES
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXDEFINES += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These flags will be added to the link.opt file
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXLFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These values will be appended to the correct variables based on the value of
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpifeq "$(RELEASE)" "debug"
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXINCDIRS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXCFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXDEFINES += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXLFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpifeq "$(RELEASE)" "noopt"
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXINCDIRS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXCFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXDEFINES += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXLFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpifeq "$(RELEASE)" "release"
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXINCDIRS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXCFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpXDEFINES += \
a074bebeb08cbb6d20cdeab0e3689f1e1992b3c7csovantXLFLAGS += \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These are used by the link target if an NLM is being generated
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# This is used by the link 'name' directive to name the nlm. If left blank
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# TARGET_nlm (see below) will be used.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_NAME = uniqueid
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# This is used by the link '-desc ' directive.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If left blank, NLM_NAME will be used.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_DESCRIPTION = Apache $(VERSION_STR) Unique ID Module
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# This is used by the '-threadname' directive. If left blank,
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# NLM_NAME Thread will be used.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_THREAD_NAME = Unique ID Module
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified, it will override VERSION value in
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_VERSION =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified, it will override the default of 64K
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_STACK_SIZE = 8192
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified it will be used by the link '-entry' directive
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_ENTRY_SYM =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified it will be used by the link '-exit' directive
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_EXIT_SYM =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified it will be used by the link '-check' directive
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpNLM_CHECK_SYM =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If these are specified it will be used by the link '-flags' directive
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified it will be linked in with the XDCData option in the def
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# by setting APACHE_UNIPROC in the environment
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If there is an NLM target, put it here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpTARGET_nlm = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If there is an LIB target, put it here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpTARGET_lib = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These are the OBJ files needed to create the NLM target above.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Paths must all use the '/' character
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_objs = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These are the LIB files needed to create the NLM target above.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These will be added as a library command in the link.opt file.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_libs = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp $(PRELUDE) \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These are the modules that the above NLM target depends on to load.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These will be added as a module command in the link.opt file.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_modules = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If the nlm has a msg file, put it's path here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILE_nlm_msg =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If the nlm has a hlp file put it's path here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILE_nlm_hlp =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# If this is specified, it will override $(NWOS)\copyright.txt.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILE_nlm_copyright =
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Any additional imports go here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_Ximports = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Don't link with Winsock if standard sockets are being used
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpifndef USE_STDSOCKETS
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_Ximports += @ws2nlm.imp \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Any symbols exported to here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_nlm_exports = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp unique_id_module \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# These are the OBJ files needed to create the LIB target above.
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Paths must all use the '/' character
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpFILES_lib_objs = \
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# implement targets and dependancies (leave this section alone)
6031e9c7eb72435516a6828deb2e97533ed0382dludovicplibs :: $(OBJDIR) $(TARGET_lib)
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpnlms :: libs $(TARGET_nlm)
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Updated this target to create necessary directories and copy files to the
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpinstall :: nlms FORCE
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Any specialized rules here
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# Include the 'tail' makefile that has targets that depend on variables defined
6031e9c7eb72435516a6828deb2e97533ed0382dludovicp# in this makefile
6031e9c7eb72435516a6828deb2e97533ed0382dludovicpinclude $(APBUILD)/NWGNUtail.inc