Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 #######################################################################
7 # Master "Core Components" macros to figure out binary code location #
8 #######################################################################
10 #
11 # Figure out where the binary code lives.
12 #
14 ifdef BUILD_TREE
15 ifdef LIBRARY_NAME
16 BUILD = $(BUILD_TREE)/nss/$(LIBRARY_NAME)
17 OBJDIR = $(BUILD_TREE)/nss/$(LIBRARY_NAME)
18 DEPENDENCIES = $(BUILD_TREE)/nss/$(LIBRARY_NAME)/.md
19 else
20 BUILD = $(BUILD_TREE)/nss
21 OBJDIR = $(BUILD_TREE)/nss
22 DEPENDENCIES = $(BUILD_TREE)/nss/.md
23 endif
24 else
25 BUILD = $(PLATFORM)
26 OBJDIR = $(PLATFORM)
27 DEPENDENCIES = $(PLATFORM)/.md
28 endif
30 DIST = $(SOURCE_PREFIX)/$(PLATFORM)
32 ifdef BUILD_DEBUG_GC
33 DEFINES += -DDEBUG_GC
34 endif
36 GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
38 ifdef NSPR_INCLUDE_DIR
39 INCLUDES += -I$(NSPR_INCLUDE_DIR)
40 endif
42 ifndef NSPR_LIB_DIR
43 NSPR_LIB_DIR = $(DIST)/lib
44 endif
46 ifdef NSS_INCLUDE_DIR
47 INCLUDES += -I$(NSS_INCLUDE_DIR)
48 endif
50 ifndef NSS_LIB_DIR
51 NSS_LIB_DIR = $(DIST)/lib
52 endif
54 ifdef NSSUTIL_INCLUDE_DIR
55 INCLUDES += -I$(NSSUTIL_INCLUDE_DIR)
56 endif
58 ifndef NSSUTIL_LIB_DIR
59 NSSUTIL_LIB_DIR = $(DIST)/lib
60 endif
62 ifdef SOFTOKEN_INCLUDE_DIR
63 INCLUDES += -I$(SOFTOKEN_INCLUDE_DIR)
64 endif
66 ifndef SOFTOKEN_LIB_DIR
67 SOFTOKEN_LIB_DIR = $(DIST)/lib
68 endif
70 ifndef SQLITE_LIB_NAME
71 SQLITE_LIB_NAME = sqlite3
72 endif
74 MK_LOCATION = included