NWGNUproxyftp revision b8022feeb260e31994600a65c2193278838a4802
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Make sure all needed macro's are defined
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Get the 'head' of the build environment if necessary. This includes default
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# targets and paths to tools
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceifndef EnvironmentDefined
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(AP_WORK)\build\NWGNUhead.inc
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceendif
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These directories will be at the beginning of the include list, followed by
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# INCDIRS
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXINCDIRS += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/include \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(NWOS) \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/modules/http \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/modules/arch/netware \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/srclib/apr/include \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/srclib/apr-util/include \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/srclib/apr \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(EOLIST)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These flags will come after CFLAGS
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXCFLAGS += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce -prefix pre_nw.h \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(EOLIST)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These defines will come after DEFINES
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXDEFINES += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(EOLIST)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These flags will be added to the link.opt file
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXLFLAGS += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(EOLIST)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These values will be appended to the correct variables based on the value of
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# RELEASE
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceifeq "$(RELEASE)" "debug"
edaadf8de0c86a2cfff2d29215775d42919476f3Pavel BřezinaXINCDIRS += \
edaadf8de0c86a2cfff2d29215775d42919476f3Pavel Březina $(EOLIST)
4ebab24f65b54720a6672898b76185462015ababPavel Březina
75d66aea7accc842e68c88f085f9053112b20eccPavel BřezinaXCFLAGS += \
c1058e96679c7ed1372825bf5226ce7d28a8e6ffPavel Březina $(EOLIST)
dee7a89098b698e756f63e4041734d7322ad8b1ePavel Březina
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceXDEFINES += \
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce $(EOLIST)
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce
c6872e79e8496fd075e20aec0343ade99cca725cSimo SorceXLFLAGS += \
7c69221077c780e62f6c536e78675f2dc1c131bcMichal Zidek $(EOLIST)
22a21e910fd216ec1468fe769dcc29f1621a52a4Ondrej Kosendif
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorceifeq "$(RELEASE)" "noopt"
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceXINCDIRS += \
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce $(EOLIST)
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce
c6872e79e8496fd075e20aec0343ade99cca725cSimo SorceXCFLAGS += \
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce $(EOLIST)
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo SorceXDEFINES += \
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl $(EOLIST)
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel ReichlXLFLAGS += \
dfd71fc92db940b2892cc996911cec03d7b6c52bSimo Sorce $(EOLIST)
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březinaendif
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina
e5f455afbc2d149527bfd08f4e89903a3a8da17aPavel Březinaifeq "$(RELEASE)" "release"
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub HrozekXINCDIRS += \
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek $(EOLIST)
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek
7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926Jakub HrozekXCFLAGS += \
dcc6877aa2e2dd63a9dc9c411a9c58feaeb36b9aStephen Gallagher $(EOLIST)
bc30ce9b7d588a17e58012e699986f0d6898b791Pavel Březina
b5ee224324b0158641d9b110f81d2bc6eddddc13Pavel ReichlXDEFINES += \
2a96981a0ac781d01e5bba473409ed2bdf4cd4e0Jakub Hrozek $(EOLIST)
e81deec535d11912b87954c81a1edd768c1386c9Jakub Hrozek
4dd38025efda88f123eac672f87d3cda12f050c8Jakub HrozekXLFLAGS += \
4dd38025efda88f123eac672f87d3cda12f050c8Jakub Hrozek $(EOLIST)
0161a3c5637a0c0092bf54c436bb3d6508d7df26Jakub Hrozekendif
0161a3c5637a0c0092bf54c436bb3d6508d7df26Jakub Hrozek
10a28f461c25d788ff4dcffefa881e7aa724a25dPavel Březina#
60cab26b12df9a2153823972cde0c38ca86e01b9Yassir Elley# These are used by the link target if an NLM is being generated
1319e71fd1680ca4864afe0b1aca2b8c8e4a1ee4Stef Walter# This is used by the link 'name' directive to name the nlm. If left blank
0c1d65998907930678da2d091789446f2c344d5dJakub Hrozek# TARGET_nlm (see below) will be used.
a2ea3f5d9ef9f17efbb61e942c2bc6cff7d1ebf2Jakub Hrozek#
f3a25949de81f80c136bb073e4a8f504b080c20cJakub HrozekNLM_NAME = proxyftp
8394eddba54b5d3e3fda868145e3751247bdbdb2Michal Zidek
5a5c5cdeb92f4012fc75fd717bfea06598f68f12Pavel Reichl#
804df4040eb142f82a44c019c7a55b5ce524583cMichal Zidek# This is used by the link '-desc ' directive.
1243e093fd31c5660adf1bb3dd477d6935a755beJakub Hrozek# If left blank, NLM_NAME will be used.
1243e093fd31c5660adf1bb3dd477d6935a755beJakub Hrozek#
82a958e6592c4a4078e45b7197bbe4751b70f511Pavel ReichlNLM_DESCRIPTION = Apache Proxy FTP Sub-Module
979e8d8d6ed444007eeff6be5269e8dc5d2bdf68Pavel Reichl
05d935cc9d04f03522d0bb44598d22d99b085926Jakub Hrozek#
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# This is used by the '-threadname' directive. If left blank,
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# NLM_NAME Thread will be used.
a8d887323f83984679a7d9b827a70146656bb7b2Sumit Bose#
b42bf6c0c01db08208fb81d8295a2909d307284aPavel ReichlNLM_THREAD_NAME = Proxy FTP Module
9118a539a5d59f669f551114f880fe91d6bb8741Jakub Hrozek
b5825c74b6bf7a99ae2172392dbecb51179013a6Jakub Hrozek#
19e44537c28f6d5f011cd7ac885c74c1e892605fSimo Sorce# If this is specified, it will override VERSION value in
5f7cd30c865046a7ea69944f7e07c85b4c43465aSumit Bose# $(AP_WORK)\build\NWGNUenvironment.inc
c30b7a1931211fdcae0564551a7625cc4f6dee9fJakub Hrozek#
e732d23f3ec986a463d757781a334040e03d1f59Jakub HrozekNLM_VERSION =
e732d23f3ec986a463d757781a334040e03d1f59Jakub Hrozek
dd285415d7a8d8376207960cfa3e977524c3b98cJakub Hrozek#
dd285415d7a8d8376207960cfa3e977524c3b98cJakub Hrozek# If this is specified, it will override the default of 64K
beec1ee5799570f34a51ea57674c7291c15f7022Jakub Hrozek#
fcbcfa69f9291936f01f24b5fcb5a7672dca46f3Jakub HrozekNLM_STACK_SIZE = 8192
4714118890e51b365fbce543d0a042b4b59b2b25Michal Zidek
efc65e78fa4e01e6cecc8690a9899af61213be62Fabiano Fidêncio
41cd6072648bb7a9e14e56ed38004a2947f67657Jakub Hrozek#
65a38b8c9cabde6c46cc0e9868f54cb9bb10afbfFabiano Fidêncio# If this is specified it will be used by the link '-entry' directive
7171a7584dda534dde5409f3e7f4657e845ece15Fabiano Fidêncio#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_ENTRY_SYM = _LibCPrelude
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
0c16d2eefbc6ac8331078a4cdcecfee817a71bc6Simo Sorce# If this is specified it will be used by the link '-exit' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_EXIT_SYM = _LibCPostlude
7650ded4ffa87fcf7ce5adf00920fecf89cffcf5Michal Zidek
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If this is specified it will be used by the link '-check' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_CHECK_SYM =
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If these are specified it will be used by the link '-flags' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If this is specified it will be linked in with the XDCData option in the def
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# by setting APACHE_UNIPROC in the environment
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXDCDATA =
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
#
# If there is an NLM target, put it here
#
TARGET_nlm = \
$(OBJDIR)/proxyftp.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)/proxy_ftp.o \
$(OBJDIR)/proxy_util.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 = \
libcpre.o \
$(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 \
$(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 = \
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
@ws2nlm.imp \
proxy_module \
proxy_hook_scheme_handler \
proxy_hook_canon_handler \
$(EOLIST)
#
# Any symbols exported to here
#
FILES_nlm_exports = \
proxy_ftp_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
#
$(OBJDIR)/%.o: ../arch/netware/%.c $(OBJDIR)\cc.opt
@echo compiling $<
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
#
# Include the 'tail' makefile that has targets that depend on variables defined
# in this makefile
#
include $(AP_WORK)\build\NWGNUtail.inc