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