NWGNUproxyftp revision cb2846ded4de1abbb5934b92132baf826f1babfe
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Make sure all needed macro's are defined
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# Get the 'head' of the build environment if necessary. This includes default
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# targets and paths to tools
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrewsifndef EnvironmentDefined
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updaterinclude $(AP_WORK)\build\NWGNUhead.inc
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# These directories will be at the beginning of the include list, followed by
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater $(AP_WORK)/include \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# These flags will come after CFLAGS
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# These defines will come after DEFINES
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# These flags will be added to the link.opt file
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# These values will be appended to the correct variables based on the value of
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterifeq "$(RELEASE)" "debug"
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updaterifeq "$(RELEASE)" "noopt"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsXINCDIRS += \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsifeq "$(RELEASE)" "release"
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater# These are used by the link target if an NLM is being generated
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater# This is used by the link 'name' directive to name the nlm. If left blank
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater# TARGET_nlm (see below) will be used.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic UpdaterNLM_NAME = proxyftp
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# This is used by the link '-desc ' directive.
f9119ad8f6114b2255e7545bf5cd187f4db0a89bAutomatic Updater# If left blank, NLM_NAME will be used.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_DESCRIPTION = Proxy FTP Module
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# This is used by the '-threadname' directive. If left blank,
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# NLM_NAME Thread will be used.
b29e5c56eb74a6de1a84c29879afc90ffc6b1436Automatic UpdaterNLM_THREAD_NAME = Proxy FTP Module
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If this is specified, it will override VERSION value in
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsNLM_VERSION =
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If this is specified, it will override the default of 64K
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterNLM_STACK_SIZE = 8192
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater# If this is specified it will be used by the link '-entry' directive
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterNLM_ENTRY_SYM = _LibCPrelude
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews# If this is specified it will be used by the link '-exit' directive
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic UpdaterNLM_EXIT_SYM = _LibCPostlude
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater# If this is specified it will be used by the link '-check' directive
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterNLM_CHECK_SYM =
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# If these are specified it will be used by the link '-flags' directive
0df8ead472f207020f8da22a185fe4b945248ab8Automatic UpdaterNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater# If this is specified it will be linked in with the XDCData option in the def
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater# file instead of the default of $(NWOS)/apache.xdc. XDCData can be disabled
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# by setting APACHE_UNIPROC in the environment
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater# If there is an NLM target, put it here
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If there is an LIB target, put it here
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These are the OBJ files needed to create the NLM target above.
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater# Paths must all use the '/' character
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_objs = \
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater# These are the LIB files needed to create the NLM target above.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# These will be added as a library command in the link.opt file.
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic UpdaterFILES_nlm_libs = \
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater# These are the modules that the above NLM target depends on to load.
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews# These will be added as a module command in the link.opt file.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterFILES_nlm_modules = \
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# If the nlm has a msg file, put it's path here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# If the nlm has a hlp file put it's path here
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsFILE_nlm_hlp =
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# If this is specified, it will override $(NWOS)\copyright.txt.
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic UpdaterFILE_nlm_copyright =
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# Any additional imports go here
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonFILES_nlm_Ximports = \
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater proxy_hook_scheme_handler \
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater proxy_hook_canon_handler \
361bec4bdec45042897fb479b7071cd05bbd56b9Automatic Updater# Any symbols exported to here
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic UpdaterFILES_nlm_exports = \
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater proxy_ftp_module \
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater# These are the OBJ files needed to create the LIB target above.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Paths must all use the '/' character
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic UpdaterFILES_lib_objs = \
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# implement targets and dependancies (leave this section alone)
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updaterlibs :: $(OBJDIR) $(TARGET_lib)
699487d8026a2b931bdce8ce3ae6bc1025d639fbMark Andrewsnlms :: libs $(TARGET_nlm)
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater# Updated this target to create necessary directories and copy files to the
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updaterinstall :: nlms FORCE
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# Any specialized rules here
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater$(OBJDIR)/%.o: ../arch/netware/%.c $(OBJDIR)\cc.opt
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @echo compiling $<
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater $(CC) $< -o=$(OBJDIR)\$(@F) @$(OBJDIR)\cc.opt
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# Include the 'tail' makefile that has targets that depend on variables defined
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater# in this makefile
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updaterinclude $(AP_WORK)\build\NWGNUtail.inc