NWGNUproxyajp revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen#
c25356d5978632df6203437e1953bcb29e0c736fTimo Sirainen# Make sure all needed macro's are defined
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen#
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen#
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen# Get the 'head' of the build environment if necessary. This includes default
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen# targets and paths to tools
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen#
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainenifndef EnvironmentDefined
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Siraineninclude $(AP_WORK)/build/NWGNUhead.inc
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainenendif
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen#
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen# These directories will be at the beginning of the include list, followed by
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen# INCDIRS
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen#
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo SirainenXINCDIRS += \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(APR)/include \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(APRUTIL)/include \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(SRC)/include \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(STDMOD)/http \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(NWOS) \
0b2b090cdc3d36f30d6d2ec99b35ac0b7657d538Timo Sirainen $(EOLIST)
f2de6ecc4424533633aea705f12d0f691d7ddf81Timo Sirainen
f2de6ecc4424533633aea705f12d0f691d7ddf81Timo Sirainen#
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen# These flags will come after CFLAGS
54df49100a0111a956662cb8a327969badd2d72dTimo Sirainen#
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo SirainenXCFLAGS += \
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen $(EOLIST)
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen#
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen# These defines will come after DEFINES
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo Sirainen#
d9076f5939edf5d20a261494b1a861dcbb0d32e2Timo SirainenXDEFINES += \
f2de6ecc4424533633aea705f12d0f691d7ddf81Timo Sirainen $(EOLIST)
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen#
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen# These flags will be added to the link.opt file
68a4946b12583b88fa802e52ebee45cd96056772Timo Sirainen#
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo SirainenXLFLAGS += \
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen $(EOLIST)
54df49100a0111a956662cb8a327969badd2d72dTimo Sirainen
c6ead31ba07401556abe0c69374d7fbed99844e7Timo Sirainen#
c6ead31ba07401556abe0c69374d7fbed99844e7Timo Sirainen# These values will be appended to the correct variables based on the value of
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen# RELEASE
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen#
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainenifeq "$(RELEASE)" "debug"
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo SirainenXINCDIRS += \
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen $(EOLIST)
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo SirainenXCFLAGS += \
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen $(EOLIST)
88311240b8db117b120171a861a64e399dab57afTimo Sirainen
88311240b8db117b120171a861a64e399dab57afTimo SirainenXDEFINES += \
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen $(EOLIST)
68a4946b12583b88fa802e52ebee45cd96056772Timo Sirainen
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenXLFLAGS += \
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainen $(EOLIST)
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainenendif
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainen
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo Sirainenifeq "$(RELEASE)" "noopt"
f66c8939c39e6bcd9dd5482bfd9689bd177ce0d4Timo SirainenXINCDIRS += \
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen $(EOLIST)
a0044466cc46baf25a316ea63781c60aa52b58caTimo Sirainen
a0044466cc46baf25a316ea63781c60aa52b58caTimo SirainenXCFLAGS += \
a0044466cc46baf25a316ea63781c60aa52b58caTimo Sirainen $(EOLIST)
68a4946b12583b88fa802e52ebee45cd96056772Timo Sirainen
68a4946b12583b88fa802e52ebee45cd96056772Timo SirainenXDEFINES += \
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen $(EOLIST)
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo SirainenXLFLAGS += \
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen $(EOLIST)
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainenendif
2a7605bb97dc9ed8accf2537fad1073a5fc5ff48Timo Sirainen
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainenifeq "$(RELEASE)" "release"
0ddb604f911b908085ef787455c015a91dc9c365Timo SirainenXINCDIRS += \
68a4946b12583b88fa802e52ebee45cd96056772Timo Sirainen $(EOLIST)
0ddb604f911b908085ef787455c015a91dc9c365Timo Sirainen
0ddb604f911b908085ef787455c015a91dc9c365Timo SirainenXCFLAGS += \
0ddb604f911b908085ef787455c015a91dc9c365Timo Sirainen $(EOLIST)
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo SirainenXDEFINES += \
3412b625dd238cc0774db968e6c351b007a98e25Timo Sirainen $(EOLIST)
0ddb604f911b908085ef787455c015a91dc9c365Timo Sirainen
0ddb604f911b908085ef787455c015a91dc9c365Timo SirainenXLFLAGS += \
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen $(EOLIST)
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainenendif
8e9666f46faceeef0f3c6f706f10f3a873e4b0ebTimo Sirainen
7aa59f55d8a4e02c7039fbd22660c4055bfc8393Timo Sirainen#
7aa59f55d8a4e02c7039fbd22660c4055bfc8393Timo Sirainen# These are used by the link target if an NLM is being generated
ef1d718c6a3a3a48b9835b004b8496de9dc4bec5Timo Sirainen# This is used by the link 'name' directive to name the nlm. If left blank
ef1d718c6a3a3a48b9835b004b8496de9dc4bec5Timo Sirainen# TARGET_nlm (see below) will be used.
296857bde8dbe965bcfe5e96cf06d37c297d9315Timo Sirainen#
296857bde8dbe965bcfe5e96cf06d37c297d9315Timo SirainenNLM_NAME = proxyajp
511ba4416aafb9f9ba1a4193703b95a033267068Timo Sirainen
aa883f5fbc68920c48c4f52919e8a5bb9611e678Timo Sirainen#
# This is used by the link '-desc ' directive.
# If left blank, NLM_NAME will be used.
#
NLM_DESCRIPTION = Apache $(VERSION_STR) Proxy AJP Sub-Module
#
# This is used by the '-threadname' directive. If left blank,
# NLM_NAME Thread will be used.
#
NLM_THREAD_NAME = Proxy AJP Module
#
# If this is specified, it will override VERSION value in
# $(AP_WORK)/build/NWGNUenvironment.inc
#
NLM_VERSION =
#
# If this is specified, it will override the default of 64K
#
NLM_STACK_SIZE = 8192
#
# If this is specified it will be used by the link '-entry' directive
#
NLM_ENTRY_SYM =
#
# If this is specified it will be used by the link '-exit' directive
#
NLM_EXIT_SYM =
#
# If this is specified it will be used by the link '-check' directive
#
NLM_CHECK_SYM =
#
# If these are specified it will be used by the link '-flags' directive
#
NLM_FLAGS =
#
# If this is specified it will be linked in with the XDCData option in the def
# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
# by setting APACHE_UNIPROC in the environment
#
XDCDATA =
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/proxyajp.nlm \
$(EOLIST)
#
# If there is an LIB target, put it here
#
TARGET_lib = \
$(EOLIST)
#
# These are the OBJ files needed to create the NLM target above.
# Paths must all use the '/' character
#
FILES_nlm_objs = \
$(OBJDIR)/mod_proxy_ajp.o \
$(OBJDIR)/ajp_header.o \
$(OBJDIR)/ajp_msg.o \
$(OBJDIR)/ajp_link.o \
$(OBJDIR)/ajp_utils.o \
$(OBJDIR)/libprews.o \
$(EOLIST)
#
# These are the LIB files needed to create the NLM target above.
# These will be added as a library command in the link.opt file.
#
FILES_nlm_libs = \
$(PRELUDE) \
$(EOLIST)
#
# These are the modules that the above NLM target depends on to load.
# These will be added as a module command in the link.opt file.
#
FILES_nlm_modules = \
aprlib \
libc \
proxy \
$(EOLIST)
#
# If the nlm has a msg file, put it's path here
#
FILE_nlm_msg =
#
# If the nlm has a hlp file put it's path here
#
FILE_nlm_hlp =
#
# If this is specified, it will override $(NWOS)\copyright.txt.
#
FILE_nlm_copyright =
#
# Any additional imports go here
#
FILES_nlm_Ximports = \
@aprlib.imp \
@httpd.imp \
@$(OBJDIR)/mod_proxy.imp \
@libc.imp \
$(EOLIST)
# Don't link with Winsock if standard sockets are being used
ifndef USE_STDSOCKETS
FILES_nlm_Ximports += @ws2nlm.imp \
$(EOLIST)
endif
#
# Any symbols exported to here
#
FILES_nlm_exports = \
proxy_ajp_module \
$(EOLIST)
#
# These are the OBJ files needed to create the LIB target above.
# Paths must all use the '/' character
#
FILES_lib_objs = \
$(EOLIST)
#
# implement targets and dependancies (leave this section alone)
#
libs :: $(OBJDIR) $(TARGET_lib)
nlms :: libs $(TARGET_nlm)
#
# Updated this target to create necessary directories and copy files to the
# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
#
install :: nlms FORCE
#
# Any specialized rules here
#
vpath %.c ../arch/netware
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(APBUILD)/NWGNUtail.inc