michael@0: # michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: ####################################################################### michael@0: # Master -specific source import/export directories # michael@0: ####################################################################### michael@0: michael@0: # michael@0: # master import/export directory prefix michael@0: # michael@0: michael@0: ifndef SOURCE_PREFIX michael@0: ifndef BUILD_TREE michael@0: SOURCE_PREFIX = $(CORE_DEPTH)/../dist michael@0: else michael@0: SOURCE_PREFIX = $(BUILD_TREE)/dist michael@0: endif michael@0: endif michael@0: michael@0: # michael@0: # cross-platform (xp) master import/export directory michael@0: # michael@0: michael@0: ifndef SOURCE_XP_DIR michael@0: SOURCE_XP_DIR = $(SOURCE_PREFIX) michael@0: endif michael@0: michael@0: # michael@0: # cross-platform (xp) import/export directories michael@0: # michael@0: michael@0: SOURCE_CLASSES_DIR = $(SOURCE_XP_DIR)/classes michael@0: SOURCE_CLASSES_DBG_DIR = $(SOURCE_XP_DIR)/classes_DBG michael@0: SOURCE_XPHEADERS_DIR = $(SOURCE_XP_DIR)/public/$(MODULE) michael@0: SOURCE_XPPRIVATE_DIR = $(SOURCE_XP_DIR)/private/$(MODULE) michael@0: michael@0: ifdef BUILD_OPT michael@0: IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DIR) michael@0: else michael@0: IMPORT_XPCLASS_DIR = $(SOURCE_CLASSES_DBG_DIR) michael@0: endif michael@0: michael@0: # michael@0: # machine-dependent (md) master import/export directory michael@0: # michael@0: michael@0: ifndef SOURCE_MD_DIR michael@0: SOURCE_MD_DIR = $(SOURCE_PREFIX)/$(PLATFORM) michael@0: endif michael@0: michael@0: # michael@0: # machine-dependent (md) import/export directories michael@0: # michael@0: michael@0: #This is where we install built executables and (for Windows only) DLLs. michael@0: ifndef SOURCE_BIN_DIR michael@0: SOURCE_BIN_DIR = $(SOURCE_MD_DIR)/bin michael@0: endif michael@0: michael@0: #This is where we install built libraries (.a, .so, .lib). michael@0: ifndef SOURCE_LIB_DIR michael@0: SOURCE_LIB_DIR = $(SOURCE_MD_DIR)/lib michael@0: endif michael@0: michael@0: # This is where NSPR header files are found. michael@0: ifndef SOURCE_MDHEADERS_DIR michael@0: SOURCE_MDHEADERS_DIR = $(SOURCE_MD_DIR)/include michael@0: endif michael@0: michael@0: ####################################################################### michael@0: # Master -specific source release directories and files # michael@0: ####################################################################### michael@0: michael@0: # michael@0: # source-side master release directory prefix michael@0: # NOTE: export control policy enforced for XP and MD files released to michael@0: # the staging area michael@0: # michael@0: michael@0: ifeq ($(POLICY), domestic) michael@0: SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/domestic michael@0: else michael@0: ifeq ($(POLICY), export) michael@0: SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/export michael@0: else michael@0: ifeq ($(POLICY), france) michael@0: SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/france michael@0: else michael@0: #We shouldn't have to put another directory under here, but without it the perl michael@0: #script for releasing doesn't find the directory. It thinks it doesn't exist. michael@0: #So we're adding this no-policy directory so that the script for releasing works michael@0: #in all casese when policy is not set. This doesn't affect where the final jar michael@0: #files land, only where they are placed in the local tree when building the jar michael@0: #files. When there is no policy, the jar files will still land in michael@0: #/// like they used to. michael@0: SOURCE_RELEASE_PREFIX = $(SOURCE_PREFIX)/release/no-policy michael@0: endif michael@0: endif michael@0: endif michael@0: michael@0: # michael@0: # cross-platform (xp) source-side master release directory michael@0: # michael@0: michael@0: SOURCE_RELEASE_XP_DIR = $(SOURCE_RELEASE_PREFIX) michael@0: michael@0: # michael@0: # cross-platform (xp) source-side release directories michael@0: # michael@0: michael@0: SOURCE_RELEASE_CLASSES_DIR = classes michael@0: SOURCE_RELEASE_CLASSES_DBG_DIR = classes_DBG michael@0: SOURCE_RELEASE_XPHEADERS_DIR = include michael@0: michael@0: # michael@0: # cross-platform (xp) JAR source-side release files michael@0: # michael@0: michael@0: XPCLASS_JAR = xpclass.jar michael@0: XPCLASS_DBG_JAR = xpclass_dbg.jar michael@0: XPHEADER_JAR = xpheader.jar michael@0: michael@0: ifdef BUILD_OPT michael@0: SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DIR) michael@0: IMPORT_XPCLASS_JAR = $(XPCLASS_JAR) michael@0: else michael@0: SOURCE_RELEASE_XP_CLASSES_DIR = $(SOURCE_RELEASE_CLASSES_DBG_DIR) michael@0: IMPORT_XPCLASS_JAR = $(XPCLASS_DBG_JAR) michael@0: endif michael@0: michael@0: # michael@0: # machine-dependent (md) source-side master release directory michael@0: # michael@0: michael@0: SOURCE_RELEASE_MD_DIR = $(PLATFORM) michael@0: michael@0: # michael@0: # machine-dependent (md) source-side release directories michael@0: # michael@0: michael@0: SOURCE_RELEASE_BIN_DIR = $(PLATFORM)/bin michael@0: SOURCE_RELEASE_LIB_DIR = $(PLATFORM)/lib michael@0: SOURCE_RELEASE_MDHEADERS_DIR = $(PLATFORM)/include michael@0: SOURCE_RELEASE_SPEC_DIR = $(SOURCE_RELEASE_MD_DIR) michael@0: michael@0: # michael@0: # machine-dependent (md) JAR/tar source-side release files michael@0: # michael@0: michael@0: MDBINARY_JAR = mdbinary.jar michael@0: MDHEADER_JAR = mdheader.jar michael@0: michael@0: michael@0: # Where to put the results michael@0: michael@0: ifneq ($(RESULTS_DIR),) michael@0: RESULTS_DIR = $(RELEASE_TREE)/sectools/results michael@0: endif michael@0: michael@0: MK_SOURCE = included