NWGNUproxyfcgi revision 0662ed52e814f8f08ef0e09956413a792584eddf
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# Make sure all needed macro's are defined
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# Get the 'head' of the build environment if necessary. This includes default
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# targets and paths to tools
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberifndef EnvironmentDefined
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# These directories will be at the beginning of the include list, followed by
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber $(APR)/include \
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber $(APRUTIL)/include \
df9e22ea5470b30d99630674e3127e5fb841f9c0Stéphane Graber $(AP_WORK)/include \
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# These flags will come after CFLAGS
f2363e38d07db2ad4796b5580b95e3665ed34a88S.Çağlar Onur -relax_pointers \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These defines will come after DEFINES
dc18b2c96efdf4da533e765327bee9e5dd17e121Masami Ichikawa# These flags will be added to the link.opt file
b7f2846aabb8c1c59b078b4c529e60ea254432f1Christian Seiler# These values will be appended to the correct variables based on the value of
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberifeq "$(RELEASE)" "debug"
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberifeq "$(RELEASE)" "noopt"
15451ecf742bfa38a0732270b36d4a8666d2124eStéphane Graberifeq "$(RELEASE)" "release"
15451ecf742bfa38a0732270b36d4a8666d2124eStéphane Graber# These are used by the link target if an NLM is being generated
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane Graber# This is used by the link 'name' directive to name the nlm. If left blank
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane Graber# TARGET_nlm (see below) will be used.
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane GraberNLM_NAME = proxyfcgi
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# This is used by the link '-desc ' directive.
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# If left blank, NLM_NAME will be used.
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane GraberNLM_DESCRIPTION = Apache $(VERSION_STR) Proxy Fast CGI Sub-Module
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane Graber# This is used by the '-threadname' directive. If left blank,
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane Graber# NLM_NAME Thread will be used.
6516ad8b01aac298bffe60a8d7d21745f3354a38Stéphane GraberNLM_THREAD_NAME = Proxy FCGI Module
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# If this is specified, it will override VERSION value in
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If this is specified, it will override the default of 64K
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane GraberNLM_STACK_SIZE = 8192
4027875db1d25dba48712327afa0073c014f1930Danil Osherov# If this is specified it will be used by the link '-entry' directive
4027875db1d25dba48712327afa0073c014f1930Danil OsherovNLM_ENTRY_SYM =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If this is specified it will be used by the link '-exit' directive
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberNLM_EXIT_SYM =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If this is specified it will be used by the link '-check' directive
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberNLM_CHECK_SYM =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If these are specified it will be used by the link '-flags' directive
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If this is specified it will be linked in with the XDCData option in the def
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graber# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# by setting APACHE_UNIPROC in the environment
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If there is an NLM target, put it here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberTARGET_nlm = \
4e31246a25d29db0c554ae2f6b34fc19b8fcdefdStéphane Graber# If there is an LIB target, put it here
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane GraberTARGET_lib = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These are the OBJ files needed to create the NLM target above.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Paths must all use the '/' character
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_objs = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These are the LIB files needed to create the NLM target above.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These will be added as a library command in the link.opt file.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_libs = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These are the modules that the above NLM target depends on to load.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These will be added as a module command in the link.opt file.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_modules = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If the nlm has a msg file, put it's path here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILE_nlm_msg =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If the nlm has a hlp file put it's path here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILE_nlm_hlp =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# If this is specified, it will override $(NWOS)\copyright.txt.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILE_nlm_copyright =
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Any additional imports go here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_Ximports = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Don't link with Winsock if standard sockets are being used
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graberifndef USE_STDSOCKETS
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_Ximports += @ws2nlm.imp \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Any symbols exported to here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_nlm_exports = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber proxy_fcgi_module \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# These are the OBJ files needed to create the LIB target above.
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Paths must all use the '/' character
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane GraberFILES_lib_objs = \
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# implement targets and dependancies (leave this section alone)
be2e4e54da3c8054525321422f7f290d45b32a6cStéphane Graberlibs :: $(OBJDIR) $(TARGET_lib)
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Grabernlms :: libs $(TARGET_nlm)
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Updated this target to create necessary directories and copy files to the
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graberinstall :: nlms FORCE
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Any specialized rules here
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# Include the 'tail' makefile that has targets that depend on variables defined
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graber# in this makefile
b6c70e430a0cff5240ce78dd24191925f7586b5bStéphane Graberinclude $(APBUILD)/NWGNUtail.inc