NWGNUproxyftp revision b8022feeb260e31994600a65c2193278838a4802
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Make sure all needed macro's are defined
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Get the 'head' of the build environment if necessary. This includes default
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# targets and paths to tools
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceifndef EnvironmentDefined
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(AP_WORK)\build\NWGNUhead.inc
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These directories will be at the beginning of the include list, followed by
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXINCDIRS += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce $(AP_WORK)/include \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These flags will come after CFLAGS
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These defines will come after DEFINES
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceXDEFINES += \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These flags will be added to the link.opt file
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# These values will be appended to the correct variables based on the value of
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceifeq "$(RELEASE)" "debug"
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceXDEFINES += \
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorceifeq "$(RELEASE)" "noopt"
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceXINCDIRS += \
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo SorceXDEFINES += \
e5f455afbc2d149527bfd08f4e89903a3a8da17aPavel Březinaifeq "$(RELEASE)" "release"
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub HrozekXINCDIRS += \
b5ee224324b0158641d9b110f81d2bc6eddddc13Pavel ReichlXDEFINES += \
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.
f3a25949de81f80c136bb073e4a8f504b080c20cJakub HrozekNLM_NAME = proxyftp
804df4040eb142f82a44c019c7a55b5ce524583cMichal Zidek# This is used by the link '-desc ' directive.
1243e093fd31c5660adf1bb3dd477d6935a755beJakub Hrozek# If left blank, NLM_NAME will be used.
82a958e6592c4a4078e45b7197bbe4751b70f511Pavel ReichlNLM_DESCRIPTION = Apache Proxy FTP Sub-Module
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# This is used by the '-threadname' directive. If left blank,
64ea4127f463798410a2c20e0261c6b15f60257fJakub Hrozek# NLM_NAME Thread will be used.
b42bf6c0c01db08208fb81d8295a2909d307284aPavel ReichlNLM_THREAD_NAME = Proxy FTP Module
19e44537c28f6d5f011cd7ac885c74c1e892605fSimo Sorce# If this is specified, it will override VERSION value in
5f7cd30c865046a7ea69944f7e07c85b4c43465aSumit Bose# $(AP_WORK)\build\NWGNUenvironment.inc
e732d23f3ec986a463d757781a334040e03d1f59Jakub HrozekNLM_VERSION =
dd285415d7a8d8376207960cfa3e977524c3b98cJakub Hrozek# If this is specified, it will override the default of 64K
fcbcfa69f9291936f01f24b5fcb5a7672dca46f3Jakub HrozekNLM_STACK_SIZE = 8192
65a38b8c9cabde6c46cc0e9868f54cb9bb10afbfFabiano Fidêncio# If this is specified it will be used by the link '-entry' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_ENTRY_SYM = _LibCPrelude
0c16d2eefbc6ac8331078a4cdcecfee817a71bc6Simo Sorce# If this is specified it will be used by the link '-exit' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_EXIT_SYM = _LibCPostlude
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If this is specified it will be used by the link '-check' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_CHECK_SYM =
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If these are specified it will be used by the link '-flags' directive
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
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
$(OBJDIR)/proxyftp.nlm \
$(OBJDIR)/proxy_ftp.o \
$(OBJDIR)/proxy_util.o \
$(OBJDIR)/libprews.o \
# These will be added as a library command in the link.opt file.
# These will be added as a module command in the link.opt file.
# If this is specified, it will override $(NWOS)\copyright.txt.
@$(APR)/aprlib.imp \
@$(NWOS)/httpd.imp \
@libc.imp \
@ws2nlm.imp \
# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
$(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
include $(AP_WORK)\build\NWGNUtail.inc