70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Make sure all needed macro's are defined
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Get the 'head' of the build environment if necessary. This includes default
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# targets and paths to tools
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesendif
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These directories will be at the beginning of the include list, followed by
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# INCDIRS
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXINCDIRS += \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(STDMOD)/cache \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APRUTIL)/include \
44f575c8cb19a7a5cd61664a7848be6bc197df02fuankg $(SRC)/include \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/misc/netware \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(NWOS) \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These flags will come after CFLAGS
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXCFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These defines will come after DEFINES
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXDEFINES += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These flags will be added to the link.opt file
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXLFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These values will be appended to the correct variables based on the value of
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# RELEASE
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesifeq "$(RELEASE)" "debug"
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXCFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXDEFINES += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXLFLAGS += \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesendif
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesifeq "$(RELEASE)" "noopt"
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXCFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXDEFINES += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXLFLAGS += \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesendif
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesifeq "$(RELEASE)" "release"
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXCFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXDEFINES += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesXLFLAGS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesendif
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These are used by the link target if an NLM is being generated
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# This is used by the link 'name' directive to name the nlm. If left blank
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# TARGET_nlm (see below) will be used.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
b387b9d37fc71c534f4718777454a8f5a1169017fuankgNLM_NAME = htcacheclean
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# This is used by the link '-desc ' directive.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If left blank, NLM_NAME will be used.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) HT Disk Cache Cleanup Utility for NetWare
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# This is used by the '-threadname' directive. If left blank,
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# NLM_NAME Thread will be used.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesNLM_THREAD_NAME = htcacheclean
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# This is used by the '-screenname' directive. If left blank,
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# 'Apache for NetWare' Thread will be used.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesNLM_SCREEN_NAME = DEFAULT
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified, it will override VERSION value in
0662ed52e814f8f08ef0e09956413a792584eddffuankg# $(AP_WORK)/build/NWGNUenvironment.inc
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
b387b9d37fc71c534f4718777454a8f5a1169017fuankgNLM_VERSION =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified, it will override the default of 64K
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesNLM_STACK_SIZE = 8192
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified it will be used by the link '-entry' directive
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified it will be used by the link '-exit' directive
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified it will be used by the link '-check' directive
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesNLM_CHECK_SYM =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If these are specified it will be used by the link '-flags' directive
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_FLAGS =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified it will be linked in with the XDCData option in the def
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# by setting APACHE_UNIPROC in the environment
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
b387b9d37fc71c534f4718777454a8f5a1169017fuankgXDCDATA =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If there is an NLM target, put it here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesTARGET_nlm = \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(OBJDIR)/htcacheclean.nlm \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If there is an LIB target, put it here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesTARGET_lib = \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These are the OBJ files needed to create the NLM target above.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Paths must all use the '/' character
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_nlm_objs = \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(OBJDIR)/htcacheclean.o \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These are the LIB files needed to create the NLM target above.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These will be added as a library command in the link.opt file.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These are the modules that the above NLM target depends on to load.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These will be added as a module command in the link.opt file.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_nlm_modules = \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes aprlib \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes libc \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If the nlm has a msg file, put it's path here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILE_nlm_msg =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If the nlm has a hlp file put it's path here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILE_nlm_hlp =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILE_nlm_copyright =
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Any additional imports go here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_nlm_Ximports = \
8ffac2c334103c0336602aaede650cb578611151fuankg @aprlib.imp \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes @libc.imp \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Any symbols exported to here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_nlm_exports = \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(EOLIST)
b387b9d37fc71c534f4718777454a8f5a1169017fuankg
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# These are the OBJ files needed to create the LIB target above.
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Paths must all use the '/' character
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesFILES_lib_objs = \
b387b9d37fc71c534f4718777454a8f5a1169017fuankg $(EOLIST)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# implement targets and dependancies (leave this section alone)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholeslibs :: $(OBJDIR) $(TARGET_lib)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesnlms :: libs $(TARGET_nlm)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholesinstall :: nlms FORCE
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Any specialized rules here
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# Include the 'tail' makefile that has targets that depend on variables defined
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# in this makefile
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes