NWGNUmakefile revision 44f575c8cb19a7a5cd61664a7848be6bc197df02
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# Declare the sub-directories to be built here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Get the 'head' of the build environment. This includes default targets and
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# paths to tools
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(AP_WORK)/build/NWGNUhead.inc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# build this level's files
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Make sure all needed macro's are defined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These directories will be at the beginning of the include list, followed by
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APR)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(APRUTIL)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(SRC)/include \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will come after CFLAGS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These defines will come after DEFINES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These flags will be added to the link.opt file
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# These values will be appended to the correct variables based on the value of
58d9e9169e7ab4355a0b0bfc13bc616bc5247dfeAutomatic Updaterifeq "$(RELEASE)" "debug"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsXDEFINES += \
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updaterifeq "$(RELEASE)" "noopt"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXINCDIRS += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinXDEFINES += \
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updaterifeq "$(RELEASE)" "release"
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceXDEFINES += \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are used by the link target if an NLM is being generated
1fdd2470b625a58b57d0b155e6caf8c4fc0afe8aAutomatic Updater# This is used by the link 'name' directive to name the nlm. If left blank
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# TARGET_nlm (see below) will be used.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinNLM_NAME = moddavfs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This is used by the link '-desc ' directive.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If left blank, NLM_NAME will be used.
ac93437301f55ed69bf85883a497a75598c628f9Automatic UpdaterNLM_DESCRIPTION = Apache $(VERSION_STR) DAV FileSystem Sub-Module
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# This is used by the '-threadname' directive. If left blank,
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# NLM_NAME Thread will be used.
ac93437301f55ed69bf85883a497a75598c628f9Automatic UpdaterNLM_THREAD_NAME = $(NLM_NAME) Thread
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# If this is specified, it will override VERSION value in
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceNLM_VERSION =
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# If this is specified, it will override the default of 64K
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceNLM_STACK_SIZE = 65536
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# If this is specified it will be used by the link '-entry' directive
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceNLM_ENTRY_SYM =
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# If this is specified it will be used by the link '-exit' directive
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceNLM_EXIT_SYM =
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce# If this is specified it will be used by the link '-check' directive
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceNLM_CHECK_SYM =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified it will be used by the link '-flags' directive
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Declare all target files (you must add your files here)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an NLM target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_nlm = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(OBJDIR)/$(NLM_NAME).nlm \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If there is an LIB target, put it here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARGET_lib = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the LIB files needed to create the NLM target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a library command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_libs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(PRELUDE) \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the modules that the above NLM target depends on to load.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These will be added as a module command in the link.opt file.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_modules = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a msg file, put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_msg =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If the nlm has a hlp file put it's path here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_hlp =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If this is specified, it will override $(NWOS)\copyright.txt.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILE_nlm_copyright =
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any additional imports go here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_Ximports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Don't link with Winsock if standard sockets are being used
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifndef USE_STDSOCKETS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_Ximports += @ws2nlm.imp \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any symbols exported to here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_nlm_exports = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein dav_fs_module \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# These are the OBJ files needed to create the LIB target above.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Paths must all use the '/' character
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFILES_lib_objs = \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# implement targets and dependancies (leave this section alone)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinlibs :: $(OBJDIR) $(TARGET_lib)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinnlms :: libs $(TARGET_nlm)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Updated this target to create necessary directories and copy files to the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# correct place. (See $(AP_WORK)/build/NWGNUhead.inc for examples)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall :: nlms FORCE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein $(call COPY,$(OBJDIR)/*.nlm, $(INSTALLBASE)/modules/)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Any specialized rules here
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include the 'tail' makefile that has targets that depend on variables defined
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# in this makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(APBUILD)/NWGNUtail.inc