NWGNUproxyscgi revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Make sure all needed macro's are defined
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Get the 'head' of the build environment if necessary. This includes default
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# targets and paths to tools
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiifndef EnvironmentDefined
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiinclude $(AP_WORK)/build/NWGNUhead.inc
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These directories will be at the beginning of the include list, followed by
8177c14444271eeec2bc3d965f7898322e16e358Aki TuomiXINCDIRS += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi $(APR)/include \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi $(APRUTIL)/include \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi $(SRC)/include \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi $(STDMOD)/http \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These flags will come after CFLAGS
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These defines will come after DEFINES
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXDEFINES += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These flags will be added to the link.opt file
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These values will be appended to the correct variables based on the value of
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiifeq "$(RELEASE)" "debug"
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXINCDIRS += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXDEFINES += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiifeq "$(RELEASE)" "noopt"
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXINCDIRS += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXDEFINES += \
9f99d5a1b52247efcfd9688e830c861f92608ccaAki Tuomiifeq "$(RELEASE)" "release"
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXINCDIRS += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiXDEFINES += \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These are used by the link target if an NLM is being generated
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# This is used by the link 'name' directive to name the nlm. If left blank
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# TARGET_nlm (see below) will be used.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_NAME = proxyscgi
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# This is used by the link '-desc ' directive.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If left blank, NLM_NAME will be used.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy SCGI Sub-Module
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# This is used by the '-threadname' directive. If left blank,
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# NLM_NAME Thread will be used.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_THREAD_NAME = Proxy SCGI Module
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If this is specified, it will override VERSION value in
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_VERSION =
1c85a443bba5caca70c19dc05b609c29aef9049fStephan Bosch# If this is specified, it will override the default of 64K
1c85a443bba5caca70c19dc05b609c29aef9049fStephan BoschNLM_STACK_SIZE = 8192
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If this is specified it will be used by the link '-entry' directive
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_ENTRY_SYM =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If this is specified it will be used by the link '-exit' directive
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_EXIT_SYM =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If this is specified it will be used by the link '-check' directive
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiNLM_CHECK_SYM =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If these are specified it will be used by the link '-flags' directive
541446ac8ee3730ffd028c4071340dcc0cb63abbAki Tuomi# If this is specified it will be linked in with the XDCData option in the def
870bf394d43e653dd7669093a12bafbfc0b8fe92Timo Sirainen# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
870bf394d43e653dd7669093a12bafbfc0b8fe92Timo Sirainen# by setting APACHE_UNIPROC in the environment
870bf394d43e653dd7669093a12bafbfc0b8fe92Timo Sirainen# If there is an NLM target, put it here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiTARGET_nlm = \
541446ac8ee3730ffd028c4071340dcc0cb63abbAki Tuomi# If there is an LIB target, put it here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiTARGET_lib = \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These are the OBJ files needed to create the NLM target above.
4755f8d37a2abb18f3783b4102c26fcd11a9f379Timo Sirainen# Paths must all use the '/' character
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILES_nlm_objs = \
1c85a443bba5caca70c19dc05b609c29aef9049fStephan Bosch# These are the LIB files needed to create the NLM target above.
1c85a443bba5caca70c19dc05b609c29aef9049fStephan Bosch# These will be added as a library command in the link.opt file.
1c85a443bba5caca70c19dc05b609c29aef9049fStephan BoschFILES_nlm_libs = \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These are the modules that the above NLM target depends on to load.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These will be added as a module command in the link.opt file.
1c85a443bba5caca70c19dc05b609c29aef9049fStephan BoschFILES_nlm_modules = \
1c85a443bba5caca70c19dc05b609c29aef9049fStephan Bosch# If the nlm has a msg file, put it's path here
1c85a443bba5caca70c19dc05b609c29aef9049fStephan BoschFILE_nlm_msg =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If the nlm has a hlp file put it's path here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILE_nlm_hlp =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# If this is specified, it will override $(NWOS)\copyright.txt.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILE_nlm_copyright =
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Any additional imports go here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILES_nlm_Ximports = \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Don't link with Winsock if standard sockets are being used
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiifndef USE_STDSOCKETS
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILES_nlm_Ximports += @ws2nlm.imp \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Any symbols exported to here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILES_nlm_exports = \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi proxy_scgi_module \
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# These are the OBJ files needed to create the LIB target above.
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Paths must all use the '/' character
0a017e924aa2490f6a54096d11e534b2a7554ebeAki TuomiFILES_lib_objs = \
4755f8d37a2abb18f3783b4102c26fcd11a9f379Timo Sirainen# implement targets and dependancies (leave this section alone)
8177c14444271eeec2bc3d965f7898322e16e358Aki Tuomilibs :: $(OBJDIR) $(TARGET_lib)
8177c14444271eeec2bc3d965f7898322e16e358Aki Tuominlms :: libs $(TARGET_nlm)
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Updated this target to create necessary directories and copy files to the
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiinstall :: nlms FORCE
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Any specialized rules here
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# Include the 'tail' makefile that has targets that depend on variables defined
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomi# in this makefile
0a017e924aa2490f6a54096d11e534b2a7554ebeAki Tuomiinclude $(APBUILD)/NWGNUtail.inc