NWGNUmod_cgi revision ac7985784d08a3655291f24f711812b4d8b1cbcf
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Make sure all needed macro's are defined
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Get the 'head' of the build environment if necessary. This includes default
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# targets and paths to tools
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooifndef EnvironmentDefined
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooinclude $(AP_WORK)\build\NWGNUhead.inc
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These directories will be at the beginning of the include list, followed by
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXINCDIRS += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo $(AP_WORK)/include \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo $(APR)/include \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo $(APRUTIL)/include \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These flags will come after CFLAGS
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These defines will come after DEFINES
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXDEFINES += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These flags will be added to the link.opt file
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These values will be appended to the correct variables based on the value of
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooifeq "$(RELEASE)" "debug"
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXINCDIRS += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXDEFINES += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooifeq "$(RELEASE)" "noopt"
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXINCDIRS += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXDEFINES += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooifeq "$(RELEASE)" "release"
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXINCDIRS += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooXDEFINES += \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These are used by the link target if an NLM is being generated
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# This is used by the link 'name' directive to name the nlm. If left blank
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# TARGET_nlm (see below) will be used.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_NAME = mod_cgi
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# This is used by the link '-desc ' directive.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If left blank, NLM_NAME will be used.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_DESCRIPTION = Apache $(VERSION_STR) CGI Module
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# This is used by the '-threadname' directive. If left blank,
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# NLM_NAME Thread will be used.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_THREAD_NAME = Mod_cgi Module
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified, it will override VERSION value in
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# $(AP_WORK)\build\NWGNUenvironment.inc
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_VERSION =
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified, it will override the default of 64K
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_STACK_SIZE = 8192
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified it will be used by the link '-entry' directive
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_ENTRY_SYM = _LibCPrelude
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified it will be used by the link '-exit' directive
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_EXIT_SYM = _LibCPostlude
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified it will be used by the link '-check' directive
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_CHECK_SYM =
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If these are specified it will be used by the link '-flags' directive
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified it will be linked in with the XDCData option in the def
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# by setting APACHE_UNIPROC in the environment
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If there is an NLM target, put it here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooTARGET_nlm = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If there is an LIB target, put it here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooTARGET_lib = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These are the OBJ files needed to create the NLM target above.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Paths must all use the '/' character
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_nlm_objs = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These are the LIB files needed to create the NLM target above.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These will be added as a library command in the link.opt file.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_nlm_libs = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These are the modules that the above NLM target depends on to load.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These will be added as a module command in the link.opt file.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_nlm_modules = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If the nlm has a msg file, put it's path here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILE_nlm_msg =
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If the nlm has a hlp file put it's path here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILE_nlm_hlp =
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# If this is specified, it will override $(NWOS)\copyright.txt.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILE_nlm_copyright =
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Any additional imports go here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_nlm_Ximports = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Any symbols exported to here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_nlm_exports = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo cgi_module \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# These are the OBJ files needed to create the LIB target above.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Paths must all use the '/' character
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFILES_lib_objs = \
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# implement targets and dependancies (leave this section alone)
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoolibs :: $(OBJDIR) $(TARGET_lib)
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoonlms :: libs $(TARGET_nlm)
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Updated this target to create necessary directories and copy files to the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooinstall :: nlms FORCE
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Any specialized rules here
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# Include the 'tail' makefile that has targets that depend on variables defined
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo# in this makefile
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooinclude $(AP_WORK)\build\NWGNUtail.inc