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 "Core Components" macros to figure out binary code location # michael@0: ####################################################################### michael@0: michael@0: # michael@0: # Figure out where the binary code lives. michael@0: # michael@0: michael@0: ifdef BUILD_TREE michael@0: ifdef LIBRARY_NAME michael@0: BUILD = $(BUILD_TREE)/nss/$(LIBRARY_NAME) michael@0: OBJDIR = $(BUILD_TREE)/nss/$(LIBRARY_NAME) michael@0: DEPENDENCIES = $(BUILD_TREE)/nss/$(LIBRARY_NAME)/.md michael@0: else michael@0: BUILD = $(BUILD_TREE)/nss michael@0: OBJDIR = $(BUILD_TREE)/nss michael@0: DEPENDENCIES = $(BUILD_TREE)/nss/.md michael@0: endif michael@0: else michael@0: BUILD = $(PLATFORM) michael@0: OBJDIR = $(PLATFORM) michael@0: DEPENDENCIES = $(PLATFORM)/.md michael@0: endif michael@0: michael@0: DIST = $(SOURCE_PREFIX)/$(PLATFORM) michael@0: michael@0: ifdef BUILD_DEBUG_GC michael@0: DEFINES += -DDEBUG_GC michael@0: endif michael@0: michael@0: GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*) michael@0: michael@0: ifdef NSPR_INCLUDE_DIR michael@0: INCLUDES += -I$(NSPR_INCLUDE_DIR) michael@0: endif michael@0: michael@0: ifndef NSPR_LIB_DIR michael@0: NSPR_LIB_DIR = $(DIST)/lib michael@0: endif michael@0: michael@0: ifdef NSS_INCLUDE_DIR michael@0: INCLUDES += -I$(NSS_INCLUDE_DIR) michael@0: endif michael@0: michael@0: ifndef NSS_LIB_DIR michael@0: NSS_LIB_DIR = $(DIST)/lib michael@0: endif michael@0: michael@0: ifdef NSSUTIL_INCLUDE_DIR michael@0: INCLUDES += -I$(NSSUTIL_INCLUDE_DIR) michael@0: endif michael@0: michael@0: ifndef NSSUTIL_LIB_DIR michael@0: NSSUTIL_LIB_DIR = $(DIST)/lib michael@0: endif michael@0: michael@0: ifdef SOFTOKEN_INCLUDE_DIR michael@0: INCLUDES += -I$(SOFTOKEN_INCLUDE_DIR) michael@0: endif michael@0: michael@0: ifndef SOFTOKEN_LIB_DIR michael@0: SOFTOKEN_LIB_DIR = $(DIST)/lib michael@0: endif michael@0: michael@0: ifndef SQLITE_LIB_NAME michael@0: SQLITE_LIB_NAME = sqlite3 michael@0: endif michael@0: michael@0: MK_LOCATION = included