NWGNUheaders revision ac7985784d08a3655291f24f711812b4d8b1cbcf
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Make sure all needed macro's are defined
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Get the 'head' of the build environment if necessary. This includes default
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# targets and paths to tools
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiifndef EnvironmentDefined
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiinclude $(AP_WORK)\build\NWGNUhead.inc
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiendif
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These directories will be at the beginning of the include list, followed by
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# INCDIRS
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXINCDIRS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(AP_WORK)/include \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(NWOS) \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(AP_WORK)/modules/arch/netware \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(AP_WORK)/modules/ssl \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(APR)/include \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(APRUTIL)/include \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(APR) \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These flags will come after CFLAGS
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXCFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These defines will come after DEFINES
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXDEFINES += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These flags will be added to the link.opt file
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXLFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These values will be appended to the correct variables based on the value of
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# RELEASE
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiifeq "$(RELEASE)" "debug"
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXINCDIRS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXCFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXDEFINES += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXLFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiendif
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiifeq "$(RELEASE)" "noopt"
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXINCDIRS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
79dff39e8994fc697884fed4f27613b9093058f4KATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXCFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXDEFINES += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXLFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiendif
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiifeq "$(RELEASE)" "release"
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXINCDIRS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
79dff39e8994fc697884fed4f27613b9093058f4KATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXCFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXDEFINES += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXLFLAGS += \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiendif
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These are used by the link target if an NLM is being generated
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# This is used by the link 'name' directive to name the nlm. If left blank
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# TARGET_nlm (see below) will be used.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_NAME = headers
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# This is used by the link '-desc ' directive.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If left blank, NLM_NAME will be used.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_DESCRIPTION = Apache $(VERSION_STR) Headers Module
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# This is used by the '-threadname' directive. If left blank,
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# NLM_NAME Thread will be used.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_THREAD_NAME = Headers Module
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified, it will override VERSION value in
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# $(AP_WORK)\build\NWGNUenvironment.inc
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_VERSION =
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified, it will override the default of 64K
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_STACK_SIZE = 8192
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified it will be used by the link '-entry' directive
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_ENTRY_SYM = _LibCPrelude
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified it will be used by the link '-exit' directive
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_EXIT_SYM = _LibCPostlude
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified it will be used by the link '-check' directive
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_CHECK_SYM =
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If these are specified it will be used by the link '-flags' directive
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified it will be linked in with the XDCData option in the def
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# by setting APACHE_UNIPROC in the environment
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiXDCDATA =
988247d5add4114b4a8311ff5364f1fbddd8613fHiroaki Nakamura
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If there is an NLM target, put it here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiTARGET_nlm = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(OBJDIR)/headers.nlm \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If there is an LIB target, put it here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiTARGET_lib = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These are the OBJ files needed to create the NLM target above.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Paths must all use the '/' character
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_nlm_objs = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(OBJDIR)/mod_headers.o \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These are the LIB files needed to create the NLM target above.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These will be added as a library command in the link.opt file.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_nlm_libs = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi libcpre.o \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These are the modules that the above NLM target depends on to load.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These will be added as a module command in the link.opt file.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_nlm_modules = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi aprlib \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi libc \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If the nlm has a msg file, put it's path here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILE_nlm_msg =
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If the nlm has a hlp file put it's path here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILE_nlm_hlp =
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# If this is specified, it will override $(NWOS)\copyright.txt.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILE_nlm_copyright =
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Any additional imports go here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_nlm_Ximports = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi @$(APR)/aprlib.imp \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi @$(NWOS)/httpd.imp \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi @libc.imp \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Any symbols exported to here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_nlm_exports = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi headers_module \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# These are the OBJ files needed to create the LIB target above.
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Paths must all use the '/' character
e9555a6bc7056cd887ee19c80b6c59627ac61255Evgeni Golov#
842948e4162d89ffce0e8cd292702598d736489aKATOH YasufumiFILES_lib_objs = \
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi $(EOLIST)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# implement targets and dependancies (leave this section alone)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumilibs :: $(OBJDIR) $(TARGET_lib)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufuminlms :: libs $(TARGET_nlm)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Updated this target to create necessary directories and copy files to the
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiinstall :: nlms FORCE
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Any specialized rules here
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# Include the 'tail' makefile that has targets that depend on variables defined
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi# in this makefile
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi#
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumiinclude $(AP_WORK)\build\NWGNUtail.inc
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi
842948e4162d89ffce0e8cd292702598d736489aKATOH Yasufumi