d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Make sure all needed macro's are defined
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Get the 'head' of the build environment if necessary. This includes default
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# targets and paths to tools
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesifndef EnvironmentDefined
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(AP_WORK)/build/NWGNUhead.inc
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These directories will be at the beginning of the include list, followed by
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXINCDIRS += \
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes $(APR)/include \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These flags will come after CFLAGS
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These defines will come after DEFINES
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXDEFINES += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These flags will be added to the link.opt file
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These values will be appended to the correct variables based on the value of
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesifeq "$(RELEASE)" "debug"
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXINCDIRS += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXDEFINES += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesifeq "$(RELEASE)" "noopt"
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXINCDIRS += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXDEFINES += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesifeq "$(RELEASE)" "release"
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXINCDIRS += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesXDEFINES += \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These are used by the link target if an NLM is being generated
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# This is used by the link 'name' directive to name the nlm. If left blank
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# TARGET_nlm (see below) will be used.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_NAME = rotlogs
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# This is used by the link '-desc ' directive.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If left blank, NLM_NAME will be used.
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesNLM_DESCRIPTION = Apache $(VERSION_STR) Log Rotation Utility for NetWare
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# This is used by the '-threadname' directive. If left blank,
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# NLM_NAME Thread will be used.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_THREAD_NAME = rotlogs
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholes# This is used by the '-screenname' directive. If left blank,
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholes# 'Apache for NetWare' Thread will be used.
63e6fde94d80a39bd87f3893a5f9515fdbdb7aa4bnicholesNLM_SCREEN_NAME = DEFAULT
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified, it will override VERSION value in
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_VERSION =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified, it will override the default of 64K
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_STACK_SIZE = 98304
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified it will be used by the link '-entry' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_ENTRY_SYM =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified it will be used by the link '-exit' directive
0662ed52e814f8f08ef0e09956413a792584eddffuankgNLM_EXIT_SYM =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified it will be used by the link '-check' directive
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_CHECK_SYM =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If these are specified it will be used by the link '-flags' directive
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION, MULTIPLE
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified it will be linked in with the XDCData option in the def
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# by setting APACHE_UNIPROC in the environment
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If there is an NLM target, put it here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesTARGET_nlm = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If there is an LIB target, put it here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesTARGET_lib = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These are the OBJ files needed to create the NLM target above.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Paths must all use the '/' character
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_nlm_objs = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These are the LIB files needed to create the NLM target above.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These will be added as a library command in the link.opt file.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_nlm_libs = \
cf7ca2f9eaa6523fefcccba4287b91637391fb51fuankg $(PRELUDE) \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These are the modules that the above NLM target depends on to load.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These will be added as a module command in the link.opt file.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_nlm_modules = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If the nlm has a msg file, put it's path here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILE_nlm_msg =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If the nlm has a hlp file put it's path here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILE_nlm_hlp =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# If this is specified, it will override $(NWOS)\copyright.txt.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILE_nlm_copyright =
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Any additional imports go here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_nlm_Ximports = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Any symbols exported to here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_nlm_exports = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# These are the OBJ files needed to create the LIB target above.
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Paths must all use the '/' character
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesFILES_lib_objs = \
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# implement targets and dependancies (leave this section alone)
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholeslibs :: $(OBJDIR) $(TARGET_lib)
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesnlms :: libs $(TARGET_nlm)
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Updated this target to create necessary directories and copy files to the
0662ed52e814f8f08ef0e09956413a792584eddffuankg# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholesinstall :: nlms FORCE
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Any specialized rules here
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# Include the 'tail' makefile that has targets that depend on variables defined
d4e693ea6364a22d20884f3e6a98f2a2d271c778bnicholes# in this makefile
0662ed52e814f8f08ef0e09956413a792584eddffuankginclude $(APBUILD)/NWGNUtail.inc