NWGNUuniqueid revision 0a39e7683f6611d66c55712f50bb240428d832a1
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Make sure all needed macro's are defined
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Get the 'head' of the build environment if necessary. This includes default
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# targets and paths to tools
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifndef EnvironmentDefined
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(AP_WORK)\build\NWGNUhead.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These directories will be at the beginning of the include list, followed by
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# INCDIRS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXINCDIRS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(AP_WORK)/include \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(NWOS) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(AP_WORK)/modules/arch/netware \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(AP_WORK)/srclib/apr/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(AP_WORK)/srclib/apr-util/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(AP_WORK)/srclib/apr \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These flags will come after CFLAGS
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXCFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -prefix pre_nw.h \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These defines will come after DEFINES
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXDEFINES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These flags will be added to the link.opt file
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXLFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These values will be appended to the correct variables based on the value of
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# RELEASE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifeq "$(RELEASE)" "debug"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXINCDIRS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXCFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXDEFINES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXLFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifeq "$(RELEASE)" "noopt"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXINCDIRS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXCFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXDEFINES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXLFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesifeq "$(RELEASE)" "release"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXINCDIRS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXCFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXDEFINES += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXLFLAGS += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesendif
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These are used by the link target if an NLM is being generated
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# TARGET_nlm (see below) will be used.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_NAME = uniqueid
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This is used by the link '-desc ' directive.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If left blank, NLM_NAME will be used.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Unique ID Module
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This is used by the '-threadname' directive. If left blank,
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# NLM_NAME Thread will be used.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_THREAD_NAME = Unique ID Module
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified, it will override VERSION value in
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# $(AP_WORK)\build\NWGNUenvironment.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_VERSION =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified, it will override the default of 64K
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_STACK_SIZE = 8192
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified it will be used by the link '-entry' directive
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_ENTRY_SYM = _LibCPrelude
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified it will be used by the link '-exit' directive
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_EXIT_SYM = _LibCPostlude
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified it will be used by the link '-check' directive
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_CHECK_SYM =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If these are specified it will be used by the link '-flags' directive
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified it will be linked in with the XDCData option in the def
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# by setting APACHE_UNIPROC in the environment
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesXDCDATA =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If there is an NLM target, put it here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTARGET_nlm = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJDIR)/uniqueid.nlm \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If there is an LIB target, put it here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTARGET_lib = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These are the OBJ files needed to create the NLM target above.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Paths must all use the '/' character
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_nlm_objs = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJDIR)/mod_unique_id.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(OBJDIR)/libprews.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These are the LIB files needed to create the NLM target above.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These will be added as a library command in the link.opt file.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_nlm_libs = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes libcpre.o \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These are the modules that the above NLM target depends on to load.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These will be added as a module command in the link.opt file.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_nlm_modules = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes aprlib \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes libc \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If the nlm has a msg file, put it's path here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILE_nlm_msg =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If the nlm has a hlp file put it's path here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILE_nlm_hlp =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILE_nlm_copyright =
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Any additional imports go here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_nlm_Ximports = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(APR)/aprlib.imp \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @$(NWOS)/httpd.imp \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @libc.imp \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @ws2nlm.imp \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes#
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes# Any symbols exported to here
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes#
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholesFILES_nlm_exports = \
609ef720afd62ca63391c9fdb415cd2faf29aa46bnicholes unique_id_module \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# These are the OBJ files needed to create the LIB target above.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Paths must all use the '/' character
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesFILES_lib_objs = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(EOLIST)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# implement targets and dependancies (leave this section alone)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesnlms :: libs $(TARGET_nlm)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Updated this target to create necessary directories and copy files to the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall :: nlms FORCE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Any specialized rules here
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(OBJDIR)/%.o: ../arch/netware/%.c $(OBJDIR)\cc.opt
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @echo compiling $<
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
8410c53aaf5e0372a19d5f4d2bc696b9c609ce3cbnicholes# Include the 'tail' makefile that has targets that depend on variables defined
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# in this makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(AP_WORK)\build\NWGNUtail.inc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes