NWGNUmakefile revision 16b55a35cff91315d261d1baa776138af465c4e4
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# Declare the sub-directories to be built here
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# Get the 'head' of the build environment. This includes default targets and
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# paths to tools
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Huntinclude $(AP_WORK)\build\NWGNUhead.inc
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# build this level's files
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# Make sure all needed macro's are defined
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# These directories will be at the beginning of the include list, followed by
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan HuntXINCDIRS += \
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt $(APR)/include \
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt $(APRUTIL)/include \
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt $(AP_WORK)/include \
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# These flags will come after CFLAGS
c707e2b9861dfa3f86b3520b9c3630db70cb020cEvan Hunt# These defines will come after DEFINES
afc3103851e3876db36a9f17193c72b6bddd1b97Evan HuntXDEFINES += \
ce9f893e21d2ffc6f6a78bf226c038c396740aebEvan Hunt# These flags will be added to the link.opt file
310f88d008f976a278121341f5b16666ff4db902Tinderbox User# These values will be appended to the correct variables based on the value of
ce9f893e21d2ffc6f6a78bf226c038c396740aebEvan Huntifeq "$(RELEASE)" "debug"
c5eb9add52241aab2e95f31b53bb911438bb38f5Mark AndrewsXINCDIRS += \
c5eb9add52241aab2e95f31b53bb911438bb38f5Mark AndrewsXDEFINES += \
572e95f52a2156ab6147e29dd271f94a6a533537Mark Andrewsifeq "$(RELEASE)" "noopt"
572e95f52a2156ab6147e29dd271f94a6a533537Mark AndrewsXINCDIRS += \
8b29fc0b7a13db404f1a13fcfad42c2e7cfbe25bMark AndrewsXDEFINES += \
801fb8b894c75fc1e3fa0284e096ade6dcdc1110Evan Huntifeq "$(RELEASE)" "release"
801fb8b894c75fc1e3fa0284e096ade6dcdc1110Evan HuntXINCDIRS += \
801fb8b894c75fc1e3fa0284e096ade6dcdc1110Evan HuntXDEFINES += \
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# These are used by the link target if an NLM is being generated
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# This is used by the link 'name' directive to name the nlm. If left blank
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# TARGET_nlm (see below) will be used.
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_NAME = modDAVFS
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# This is used by the link '-desc ' directive.
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# If left blank, NLM_NAME will be used.
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_DESCRIPTION = Apache $(VERSION_STR) DAV FileSystem Sub-Module
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# This is used by the '-threadname' directive. If left blank,
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# NLM_NAME Thread will be used.
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_THREAD_NAME = modDAVFS Thread
7be3c12291467fa7450b2123c161ea8bfe13f1a1Evan Hunt# If this is specified, it will override VERSION value in
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# $(AP_WORK)\build\NWGNUenvironment.inc
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_VERSION =
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# If this is specified, it will override the default of 64K
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_STACK_SIZE = 65536
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan Hunt# If this is specified it will be used by the link '-entry' directive
166a7500be8d4c925d6b4f54ea8981120933ad4eEvan HuntNLM_ENTRY_SYM = _LibCPrelude
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# If this is specified it will be used by the link '-exit' directive
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan HuntNLM_EXIT_SYM = _LibCPostlude
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# If this is specified it will be used by the link '-check' directive
1479200aa05414b2acf33607dbd1682c16f58c51Evan HuntNLM_CHECK_SYM =
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# If this is specified it will be used by the link '-flags' directive
1479200aa05414b2acf33607dbd1682c16f58c51Evan HuntNLM_FLAGS = AUTOUNLOAD, PSEUDOPREEMPTION
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# Declare all target files (you must add your files here)
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# If there is an NLM target, put it here
1479200aa05414b2acf33607dbd1682c16f58c51Evan HuntTARGET_nlm = \
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# If there is an LIB target, put it here
1479200aa05414b2acf33607dbd1682c16f58c51Evan HuntTARGET_lib = \
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# These are the OBJ files needed to create the NLM target above.
1479200aa05414b2acf33607dbd1682c16f58c51Evan Hunt# Paths must all use the '/' character
1479200aa05414b2acf33607dbd1682c16f58c51Evan HuntFILES_nlm_objs = \
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan Hunt# These are the LIB files needed to create the NLM target above.
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan Hunt# These will be added as a library command in the link.opt file.
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan HuntFILES_nlm_libs = \
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan Hunt# These are the modules that the above NLM target depends on to load.
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan Hunt# These will be added as a module command in the link.opt file.
70d987def5a58ebeb8243017c0ec2e9b2c326cf4Evan HuntFILES_nlm_modules = \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# If the nlm has a msg file, put it's path here
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund SivaramanFILE_nlm_msg =
90e0af6bc6c1bcafad126e1779fc478c0aeaeb8fEvan Hunt# If the nlm has a hlp file put it's path here
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan HuntFILE_nlm_hlp =
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# If this is specified, it will override $(NWOS)\copyright.txt.
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund SivaramanFILE_nlm_copyright =
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# Any additional imports go here
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan HuntFILES_nlm_Ximports = \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# Don't link with Winsock if standard sockets are being used
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaramanifndef USE_STDSOCKETS
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund SivaramanFILES_nlm_Ximports += @ws2nlm.imp \
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt# Any symbols exported to here
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan HuntFILES_nlm_exports = \
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt dav_fs_module \
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# These are the OBJ files needed to create the LIB target above.
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# Paths must all use the '/' character
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan HuntFILES_lib_objs = \
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt# implement targets and dependancies (leave this section alone)
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Huntlibs :: $(OBJDIR) $(TARGET_lib)
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Huntnlms :: libs $(TARGET_nlm)
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# Updated this target to create necessary directories and copy files to the
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaraman# correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples)
a6f0e9c985220f0e4509777e6528afb64e0ad576Mukund Sivaramaninstall :: nlms FORCE
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt copy $(OBJDIR)\moddavfs.nlm $(INSTALL)\$(BASEDIR)\modules
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt# Any specialized rules here
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt# Include the 'tail' makefile that has targets that depend on variables defined
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Hunt# in this makefile
67c6b5edd034c445ccb6c36097d9fac4de21a542Evan Huntinclude $(AP_WORK)\build\NWGNUtail.inc