NWGNUhttxt2dbm revision 0662ed52e814f8f08ef0e09956413a792584eddf
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Make sure all needed macro's are defined
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Get the 'head' of the build environment if necessary. This includes default
39104937e2de97c2cd172024da7ca1b07b9b8737nd# targets and paths to tools
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
39104937e2de97c2cd172024da7ca1b07b9b8737ndendif
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These directories will be at the beginning of the include list, followed by
39104937e2de97c2cd172024da7ca1b07b9b8737nd# INCDIRS
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndXINCDIRS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(NWOS) \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(APR)/include \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(APRUTIL)/include \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(APR)/misc/netware \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These flags will come after CFLAGS
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndXCFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These defines will come after DEFINES
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndXDEFINES += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These flags will be added to the link.opt file
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndXLFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These values will be appended to the correct variables based on the value of
39104937e2de97c2cd172024da7ca1b07b9b8737nd# RELEASE
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndifeq "$(RELEASE)" "debug"
39104937e2de97c2cd172024da7ca1b07b9b8737ndXINCDIRS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXCFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXDEFINES += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXLFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737ndendif
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndifeq "$(RELEASE)" "noopt"
39104937e2de97c2cd172024da7ca1b07b9b8737ndXINCDIRS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXCFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXDEFINES += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXLFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737ndendif
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndifeq "$(RELEASE)" "release"
39104937e2de97c2cd172024da7ca1b07b9b8737ndXINCDIRS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXCFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXDEFINES += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndXLFLAGS += \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737ndendif
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These are used by the link target if an NLM is being generated
39104937e2de97c2cd172024da7ca1b07b9b8737nd# This is used by the link 'name' directive to name the nlm. If left blank
39104937e2de97c2cd172024da7ca1b07b9b8737nd# TARGET_nlm (see below) will be used.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_NAME = httxt2dbm
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# This is used by the link '-desc ' directive.
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If left blank, NLM_NAME will be used.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_DESCRIPTION = Apache $(VERSION_STR) HT Text to DBM Conversion Utility for NetWare
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# This is used by the '-threadname' directive. If left blank,
39104937e2de97c2cd172024da7ca1b07b9b8737nd# NLM_NAME Thread will be used.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_THREAD_NAME = httxt2dbm
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# This is used by the '-screenname' directive. If left blank,
39104937e2de97c2cd172024da7ca1b07b9b8737nd# 'Apache for NetWare' Thread will be used.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_SCREEN_NAME = httxt2dbm Conversion Utility
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_VERSION =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified, it will override the default of 64K
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_STACK_SIZE = 8192
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified it will be used by the link '-entry' directive
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified it will be used by the link '-exit' directive
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified it will be used by the link '-check' directive
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_CHECK_SYM =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If these are specified it will be used by the link '-flags' directive
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified it will be linked in with the XDCData option in the def
39104937e2de97c2cd172024da7ca1b07b9b8737nd# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
39104937e2de97c2cd172024da7ca1b07b9b8737nd# by setting APACHE_UNIPROC in the environment
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndXDCDATA =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If there is an NLM target, put it here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndTARGET_nlm = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(OBJDIR)/httxt2dbm.nlm \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If there is an LIB target, put it here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndTARGET_lib = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These are the OBJ files needed to create the NLM target above.
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Paths must all use the '/' character
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_nlm_objs = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(OBJDIR)/httxt2dbm.o \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These are the LIB files needed to create the NLM target above.
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These will be added as a library command in the link.opt file.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_nlm_libs = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd libcpre.o \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These are the modules that the above NLM target depends on to load.
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These will be added as a module command in the link.opt file.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_nlm_modules = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd aprlib \
39104937e2de97c2cd172024da7ca1b07b9b8737nd libc \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If the nlm has a msg file, put it's path here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILE_nlm_msg =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If the nlm has a hlp file put it's path here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILE_nlm_hlp =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# If this is specified, it will override $(NWOS)\copyright.txt.
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILE_nlm_copyright =
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Any additional imports go here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_nlm_Ximports = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd @$(APR)/aprlib.imp \
39104937e2de97c2cd172024da7ca1b07b9b8737nd @libc.imp \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Any symbols exported to here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_nlm_exports = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# These are the OBJ files needed to create the LIB target above.
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Paths must all use the '/' character
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndFILES_lib_objs = \
39104937e2de97c2cd172024da7ca1b07b9b8737nd $(EOLIST)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# implement targets and dependancies (leave this section alone)
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndlibs :: $(OBJDIR) $(TARGET_lib)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737ndnlms :: libs $(TARGET_nlm)
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737ndinstall :: nlms FORCE
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Any specialized rules here
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd# Include the 'tail' makefile that has targets that depend on variables defined
39104937e2de97c2cd172024da7ca1b07b9b8737nd# in this makefile
39104937e2de97c2cd172024da7ca1b07b9b8737nd#
39104937e2de97c2cd172024da7ca1b07b9b8737nd
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
39104937e2de97c2cd172024da7ca1b07b9b8737nd