security/nss/coreconf/location.mk

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:2553a8b30ec4
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/.
5
6 #######################################################################
7 # Master "Core Components" macros to figure out binary code location #
8 #######################################################################
9
10 #
11 # Figure out where the binary code lives.
12 #
13
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
29
30 DIST = $(SOURCE_PREFIX)/$(PLATFORM)
31
32 ifdef BUILD_DEBUG_GC
33 DEFINES += -DDEBUG_GC
34 endif
35
36 GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*)
37
38 ifdef NSPR_INCLUDE_DIR
39 INCLUDES += -I$(NSPR_INCLUDE_DIR)
40 endif
41
42 ifndef NSPR_LIB_DIR
43 NSPR_LIB_DIR = $(DIST)/lib
44 endif
45
46 ifdef NSS_INCLUDE_DIR
47 INCLUDES += -I$(NSS_INCLUDE_DIR)
48 endif
49
50 ifndef NSS_LIB_DIR
51 NSS_LIB_DIR = $(DIST)/lib
52 endif
53
54 ifdef NSSUTIL_INCLUDE_DIR
55 INCLUDES += -I$(NSSUTIL_INCLUDE_DIR)
56 endif
57
58 ifndef NSSUTIL_LIB_DIR
59 NSSUTIL_LIB_DIR = $(DIST)/lib
60 endif
61
62 ifdef SOFTOKEN_INCLUDE_DIR
63 INCLUDES += -I$(SOFTOKEN_INCLUDE_DIR)
64 endif
65
66 ifndef SOFTOKEN_LIB_DIR
67 SOFTOKEN_LIB_DIR = $(DIST)/lib
68 endif
69
70 ifndef SQLITE_LIB_NAME
71 SQLITE_LIB_NAME = sqlite3
72 endif
73
74 MK_LOCATION = included

mercurial