1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/location.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,74 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +####################################################################### 1.10 +# Master "Core Components" macros to figure out binary code location # 1.11 +####################################################################### 1.12 + 1.13 +# 1.14 +# Figure out where the binary code lives. 1.15 +# 1.16 + 1.17 +ifdef BUILD_TREE 1.18 +ifdef LIBRARY_NAME 1.19 +BUILD = $(BUILD_TREE)/nss/$(LIBRARY_NAME) 1.20 +OBJDIR = $(BUILD_TREE)/nss/$(LIBRARY_NAME) 1.21 +DEPENDENCIES = $(BUILD_TREE)/nss/$(LIBRARY_NAME)/.md 1.22 +else 1.23 +BUILD = $(BUILD_TREE)/nss 1.24 +OBJDIR = $(BUILD_TREE)/nss 1.25 +DEPENDENCIES = $(BUILD_TREE)/nss/.md 1.26 +endif 1.27 +else 1.28 +BUILD = $(PLATFORM) 1.29 +OBJDIR = $(PLATFORM) 1.30 +DEPENDENCIES = $(PLATFORM)/.md 1.31 +endif 1.32 + 1.33 +DIST = $(SOURCE_PREFIX)/$(PLATFORM) 1.34 + 1.35 +ifdef BUILD_DEBUG_GC 1.36 + DEFINES += -DDEBUG_GC 1.37 +endif 1.38 + 1.39 +GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*) 1.40 + 1.41 +ifdef NSPR_INCLUDE_DIR 1.42 + INCLUDES += -I$(NSPR_INCLUDE_DIR) 1.43 +endif 1.44 + 1.45 +ifndef NSPR_LIB_DIR 1.46 + NSPR_LIB_DIR = $(DIST)/lib 1.47 +endif 1.48 + 1.49 +ifdef NSS_INCLUDE_DIR 1.50 + INCLUDES += -I$(NSS_INCLUDE_DIR) 1.51 +endif 1.52 + 1.53 +ifndef NSS_LIB_DIR 1.54 + NSS_LIB_DIR = $(DIST)/lib 1.55 +endif 1.56 + 1.57 +ifdef NSSUTIL_INCLUDE_DIR 1.58 + INCLUDES += -I$(NSSUTIL_INCLUDE_DIR) 1.59 +endif 1.60 + 1.61 +ifndef NSSUTIL_LIB_DIR 1.62 + NSSUTIL_LIB_DIR = $(DIST)/lib 1.63 +endif 1.64 + 1.65 +ifdef SOFTOKEN_INCLUDE_DIR 1.66 + INCLUDES += -I$(SOFTOKEN_INCLUDE_DIR) 1.67 +endif 1.68 + 1.69 +ifndef SOFTOKEN_LIB_DIR 1.70 + SOFTOKEN_LIB_DIR = $(DIST)/lib 1.71 +endif 1.72 + 1.73 +ifndef SQLITE_LIB_NAME 1.74 + SQLITE_LIB_NAME = sqlite3 1.75 +endif 1.76 + 1.77 +MK_LOCATION = included