NWGNUuniqueid revision 16b55a35cff91315d261d1baa776138af465c4e4
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# Make sure all needed macro's are defined
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# Get the 'head' of the build environment if necessary. This includes default
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# targets and paths to tools
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberifndef EnvironmentDefined
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberinclude $(AP_WORK)\build\NWGNUhead.inc
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberendif
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These directories will be at the beginning of the include list, followed by
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# INCDIRS
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXINCDIRS += \
948955a2d6f8e4e28bceada9666c5831de4a6bb8Stéphane Graber $(APR)/include \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(APRUTIL)/include \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(AP_WORK)/include \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(NWOS) \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These flags will come after CFLAGS
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXCFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
787c3ebec62eae66ad0441710ee46c8d355bfcfdSerge Hallyn#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These defines will come after DEFINES
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXDEFINES += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These flags will be added to the link.opt file
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXLFLAGS += \
787c3ebec62eae66ad0441710ee46c8d355bfcfdSerge Hallyn $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These values will be appended to the correct variables based on the value of
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# RELEASE
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberifeq "$(RELEASE)" "debug"
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXINCDIRS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXCFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXDEFINES += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXLFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberendif
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberifeq "$(RELEASE)" "noopt"
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXINCDIRS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXCFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
afeecbba0359d2b4404cdf896e6b6d0b5a8443b0Serge HallynXDEFINES += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXLFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberendif
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberifeq "$(RELEASE)" "release"
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXINCDIRS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
787c3ebec62eae66ad0441710ee46c8d355bfcfdSerge HallynXCFLAGS += \
787c3ebec62eae66ad0441710ee46c8d355bfcfdSerge Hallyn $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXDEFINES += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberXLFLAGS += \
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber $(EOLIST)
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graberendif
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# These are used by the link target if an NLM is being generated
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# This is used by the link 'name' directive to name the nlm. If left blank
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# TARGET_nlm (see below) will be used.
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberNLM_NAME = uniqueid
e29bf450cafa2ce2564aeb0b64d2014c17228407Dwight Engen
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# This is used by the link '-desc ' directive.
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# If left blank, NLM_NAME will be used.
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberNLM_DESCRIPTION = Apache $(VERSION_STR) Unique ID Module
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber#
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber# This is used by the '-threadname' directive. If left blank,
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber# NLM_NAME Thread will be used.
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber#
068b3d04311c427b85e02205d2369f81f327e481Stéphane GraberNLM_THREAD_NAME = Unique ID Module
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber#
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber# If this is specified, it will override VERSION value in
068b3d04311c427b85e02205d2369f81f327e481Stéphane Graber# $(AP_WORK)\build\NWGNUenvironment.inc
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane GraberNLM_VERSION =
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber# If this is specified, it will override the default of 64K
72d0e1cb2facaa4b8ba2f15e311d6bb9491badb7Stéphane Graber#
NLM_STACK_SIZE = 8192
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM = _LibCPrelude
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM = _LibCPostlude
#
# 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 = AUTOUNLOAD, PSEUDOPREEMPTION
#
# 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)/uniqueid.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_unique_id.o \
$(OBJDIR)/libprews.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 = \
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
$(EOLIST)
# Don't link with Winsock if standard sockets are being used
ifndef USE_STDSOCKETS
FILES_nlm_Ximports += @ws2nlm.imp \
$(EOLIST)
endif
#
# Any symbols exported to here
#
FILES_nlm_exports = \
unique_id_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
#
vpath %.c ../arch/netware
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc