208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# Make sure all needed macro's are defined
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
a99c5d4cc3cab6a62b04d52000dbc22ce1fa2d94coar
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# Get the 'head' of the build environment if necessary. This includes default
031b91a62d25106ae69d4693475c79618dd5e884fielding# targets and paths to tools
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding
031b91a62d25106ae69d4693475c79618dd5e884fieldingifndef EnvironmentDefined
031b91a62d25106ae69d4693475c79618dd5e884fieldinginclude $(AP_WORK)/build/NWGNUhead.inc
031b91a62d25106ae69d4693475c79618dd5e884fieldingendif
acc36ab93565d2880447d535da6ca6e5feac7a70nd
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# These directories will be at the beginning of the include list, followed by
acc36ab93565d2880447d535da6ca6e5feac7a70nd# INCDIRS
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70ndXINCDIRS += \
acc36ab93565d2880447d535da6ca6e5feac7a70nd $(STDMOD)/cache \
acc36ab93565d2880447d535da6ca6e5feac7a70nd $(APR)/include \
acc36ab93565d2880447d535da6ca6e5feac7a70nd $(APRUTIL)/include \
acc36ab93565d2880447d535da6ca6e5feac7a70nd $(SRC)/include \
7db9f691a00ead175b03335457ca296a33ddf31bnd $(APR)/misc/netware \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(NWOS) \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These flags will come after CFLAGS
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXCFLAGS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# These defines will come after DEFINES
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXDEFINES += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# These flags will be added to the link.opt file
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXLFLAGS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# These values will be appended to the correct variables based on the value of
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# RELEASE
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiifeq "$(RELEASE)" "debug"
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXINCDIRS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawai
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawaiXCFLAGS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXDEFINES += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXLFLAGS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiendif
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiifeq "$(RELEASE)" "noopt"
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXINCDIRS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashiXCFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXDEFINES += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashiXLFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiendif
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashiifeq "$(RELEASE)" "release"
208651a016b098f4fa1f6279559f104d70f1632dtakashiXINCDIRS += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashiXCFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXDEFINES += \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiXLFLAGS += \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashiendif
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These are used by the link target if an NLM is being generated
208651a016b098f4fa1f6279559f104d70f1632dtakashi# This is used by the link 'name' directive to name the nlm. If left blank
208651a016b098f4fa1f6279559f104d70f1632dtakashi# TARGET_nlm (see below) will be used.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_NAME = htcacheclean
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# This is used by the link '-desc ' directive.
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If left blank, NLM_NAME will be used.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_DESCRIPTION = Apache $(VERSION_STR) HT Disk Cache Cleanup Utility for NetWare
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# This is used by the '-threadname' directive. If left blank,
208651a016b098f4fa1f6279559f104d70f1632dtakashi# NLM_NAME Thread will be used.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_THREAD_NAME = htcacheclean
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# This is used by the '-screenname' directive. If left blank,
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# 'Apache for NetWare' Thread will be used.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_SCREEN_NAME = DEFAULT
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If this is specified, it will override VERSION value in
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# $(AP_WORK)/build/NWGNUenvironment.inc
57fbfdce466d9a43dd4c161c901360f8f2ad2757yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiNLM_VERSION =
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If this is specified, it will override the default of 64K
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_STACK_SIZE = 8192
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# If this is specified it will be used by the link '-entry' directive
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_ENTRY_SYM =
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If this is specified it will be used by the link '-exit' directive
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiNLM_EXIT_SYM =
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If this is specified it will be used by the link '-check' directive
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_CHECK_SYM =
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If these are specified it will be used by the link '-flags' directive
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiNLM_FLAGS =
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If this is specified it will be linked in with the XDCData option in the def
208651a016b098f4fa1f6279559f104d70f1632dtakashi# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
208651a016b098f4fa1f6279559f104d70f1632dtakashi# by setting APACHE_UNIPROC in the environment
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiXDCDATA =
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If there is an NLM target, put it here
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiTARGET_nlm = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(OBJDIR)/htcacheclean.nlm \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
57fbfdce466d9a43dd4c161c901360f8f2ad2757yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# If there is an LIB target, put it here
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiTARGET_lib = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These are the OBJ files needed to create the NLM target above.
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Paths must all use the '/' character
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiFILES_nlm_objs = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(OBJDIR)/htcacheclean.o \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These are the LIB files needed to create the NLM target above.
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These will be added as a library command in the link.opt file.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiFILES_nlm_libs = \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(PRELUDE) \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These are the modules that the above NLM target depends on to load.
208651a016b098f4fa1f6279559f104d70f1632dtakashi# These will be added as a module command in the link.opt file.
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiFILES_nlm_modules = \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki aprlib \
208651a016b098f4fa1f6279559f104d70f1632dtakashi libc \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If the nlm has a msg file, put it's path here
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiFILE_nlm_msg =
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# If the nlm has a hlp file put it's path here
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiFILE_nlm_hlp =
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
498e8a909bc308283d3713bb348246fe51de059cyoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# If this is specified, it will override $(NWOS)\copyright.txt.
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
208651a016b098f4fa1f6279559f104d70f1632dtakashiFILE_nlm_copyright =
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Any additional imports go here
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashiFILES_nlm_Ximports = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi @aprlib.imp \
208651a016b098f4fa1f6279559f104d70f1632dtakashi @libc.imp \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Any symbols exported to here
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiFILES_nlm_exports = \
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki $(EOLIST)
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawai#
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawai# These are the OBJ files needed to create the LIB target above.
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawai# Paths must all use the '/' character
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshikiFILES_lib_objs = \
208651a016b098f4fa1f6279559f104d70f1632dtakashi $(EOLIST)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# implement targets and dependancies (leave this section alone)
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashilibs :: $(OBJDIR) $(TARGET_lib)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashinlms :: libs $(TARGET_nlm)
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Updated this target to create necessary directories and copy files to the
208651a016b098f4fa1f6279559f104d70f1632dtakashi# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
18d6d78c596e3e6193fbef9cfbd33618cec13f19kawaiinstall :: nlms FORCE
208651a016b098f4fa1f6279559f104d70f1632dtakashi
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki#
75429b361faff4e3109d7e5962f70d2d65271f60yoshiki# Any specialized rules here
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi# Include the 'tail' makefile that has targets that depend on variables defined
208651a016b098f4fa1f6279559f104d70f1632dtakashi# in this makefile
208651a016b098f4fa1f6279559f104d70f1632dtakashi#
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashiinclude $(APBUILD)/NWGNUtail.inc
208651a016b098f4fa1f6279559f104d70f1632dtakashi
208651a016b098f4fa1f6279559f104d70f1632dtakashi