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
michael@0 | 1 | # |
michael@0 | 2 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 5 | |
michael@0 | 6 | # Configuration information for building in the "Core Components" source module |
michael@0 | 7 | |
michael@0 | 8 | ####################################################################### |
michael@0 | 9 | # [1.0] Master "Core Components" source and release <architecture> # |
michael@0 | 10 | # tags # |
michael@0 | 11 | ####################################################################### |
michael@0 | 12 | ifndef MK_ARCH |
michael@0 | 13 | include $(CORE_DEPTH)/coreconf/arch.mk |
michael@0 | 14 | endif |
michael@0 | 15 | |
michael@0 | 16 | ####################################################################### |
michael@0 | 17 | # [2.0] Master "Core Components" default command macros # |
michael@0 | 18 | # (NOTE: may be overridden in $(OS_TARGET)$(OS_RELEASE).mk) # |
michael@0 | 19 | ####################################################################### |
michael@0 | 20 | ifndef MK_COMMAND |
michael@0 | 21 | include $(CORE_DEPTH)/coreconf/command.mk |
michael@0 | 22 | endif |
michael@0 | 23 | |
michael@0 | 24 | ####################################################################### |
michael@0 | 25 | # [3.0] Master "Core Components" <architecture>-specific macros # |
michael@0 | 26 | # (dependent upon <architecture> tags) # |
michael@0 | 27 | # # |
michael@0 | 28 | # We are moving towards just having a $(OS_TARGET).mk file # |
michael@0 | 29 | # as opposed to multiple $(OS_TARGET)$(OS_RELEASE).mk files, # |
michael@0 | 30 | # one for each OS release. # |
michael@0 | 31 | ####################################################################### |
michael@0 | 32 | |
michael@0 | 33 | TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \ |
michael@0 | 34 | AIX RISCOS WINNT WIN95 Linux Android |
michael@0 | 35 | |
michael@0 | 36 | ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET))) |
michael@0 | 37 | include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk |
michael@0 | 38 | else |
michael@0 | 39 | ifeq ($(OS_TARGET),SunOS) |
michael@0 | 40 | include $(CORE_DEPTH)/coreconf/SunOS5.mk |
michael@0 | 41 | else |
michael@0 | 42 | include $(CORE_DEPTH)/coreconf/$(OS_TARGET)$(OS_RELEASE).mk |
michael@0 | 43 | endif |
michael@0 | 44 | endif |
michael@0 | 45 | |
michael@0 | 46 | ####################################################################### |
michael@0 | 47 | # [4.0] Master "Core Components" source and release <platform> tags # |
michael@0 | 48 | # (dependent upon <architecture> tags) # |
michael@0 | 49 | ####################################################################### |
michael@0 | 50 | PLATFORM = $(OBJDIR_NAME) |
michael@0 | 51 | |
michael@0 | 52 | ####################################################################### |
michael@0 | 53 | # [5.0] Master "Core Components" release <tree> tags # |
michael@0 | 54 | # (dependent upon <architecture> tags) # |
michael@0 | 55 | ####################################################################### |
michael@0 | 56 | ifndef MK_TREE |
michael@0 | 57 | include $(CORE_DEPTH)/coreconf/tree.mk |
michael@0 | 58 | endif |
michael@0 | 59 | |
michael@0 | 60 | ####################################################################### |
michael@0 | 61 | # [6.0] Master "Core Components" source and release <component> tags # |
michael@0 | 62 | # NOTE: A component is also called a module or a subsystem. # |
michael@0 | 63 | # (dependent upon $(MODULE) being defined on the # |
michael@0 | 64 | # command line, as an environment variable, or in individual # |
michael@0 | 65 | # makefiles, or more appropriately, manifest.mn) # |
michael@0 | 66 | ####################################################################### |
michael@0 | 67 | ifndef MK_MODULE |
michael@0 | 68 | include $(CORE_DEPTH)/coreconf/module.mk |
michael@0 | 69 | endif |
michael@0 | 70 | |
michael@0 | 71 | ####################################################################### |
michael@0 | 72 | # [7.0] Master "Core Components" release <version> tags # |
michael@0 | 73 | # (dependent upon $(MODULE) being defined on the # |
michael@0 | 74 | # command line, as an environment variable, or in individual # |
michael@0 | 75 | # makefiles, or more appropriately, manifest.mn) # |
michael@0 | 76 | ####################################################################### |
michael@0 | 77 | ifndef MK_VERSION |
michael@0 | 78 | include $(CORE_DEPTH)/coreconf/version.mk |
michael@0 | 79 | endif |
michael@0 | 80 | |
michael@0 | 81 | ####################################################################### |
michael@0 | 82 | # [8.0] Master "Core Components" macros to figure out # |
michael@0 | 83 | # binary code location # |
michael@0 | 84 | # (dependent upon <platform> tags) # |
michael@0 | 85 | ####################################################################### |
michael@0 | 86 | ifndef MK_LOCATION |
michael@0 | 87 | include $(CORE_DEPTH)/coreconf/location.mk |
michael@0 | 88 | endif |
michael@0 | 89 | |
michael@0 | 90 | ####################################################################### |
michael@0 | 91 | # [9.0] Master "Core Components" <component>-specific source path # |
michael@0 | 92 | # (dependent upon <user_source_tree>, <source_component>, # |
michael@0 | 93 | # <version>, and <platform> tags) # |
michael@0 | 94 | ####################################################################### |
michael@0 | 95 | ifndef MK_SOURCE |
michael@0 | 96 | include $(CORE_DEPTH)/coreconf/source.mk |
michael@0 | 97 | endif |
michael@0 | 98 | |
michael@0 | 99 | ####################################################################### |
michael@0 | 100 | # [10.0] Master "Core Components" include switch for support header # |
michael@0 | 101 | # files # |
michael@0 | 102 | # (dependent upon <tree>, <component>, <version>, # |
michael@0 | 103 | # and <platform> tags) # |
michael@0 | 104 | ####################################################################### |
michael@0 | 105 | ifndef MK_HEADERS |
michael@0 | 106 | include $(CORE_DEPTH)/coreconf/headers.mk |
michael@0 | 107 | endif |
michael@0 | 108 | |
michael@0 | 109 | ####################################################################### |
michael@0 | 110 | # [11.0] Master "Core Components" for computing program prefixes # |
michael@0 | 111 | ####################################################################### |
michael@0 | 112 | ifndef MK_PREFIX |
michael@0 | 113 | include $(CORE_DEPTH)/coreconf/prefix.mk |
michael@0 | 114 | endif |
michael@0 | 115 | |
michael@0 | 116 | ####################################################################### |
michael@0 | 117 | # [12.0] Master "Core Components" for computing program suffixes # |
michael@0 | 118 | # (dependent upon <architecture> tags) # |
michael@0 | 119 | ####################################################################### |
michael@0 | 120 | ifndef MK_SUFFIX |
michael@0 | 121 | include $(CORE_DEPTH)/coreconf/suffix.mk |
michael@0 | 122 | endif |
michael@0 | 123 | |
michael@0 | 124 | ####################################################################### |
michael@0 | 125 | # [13.0] Master "Core Components" for defining JDK # |
michael@0 | 126 | # (dependent upon <architecture>, <source>, and <suffix> tags)# |
michael@0 | 127 | ####################################################################### |
michael@0 | 128 | ifdef NS_USE_JDK |
michael@0 | 129 | include $(CORE_DEPTH)/coreconf/jdk.mk |
michael@0 | 130 | endif |
michael@0 | 131 | |
michael@0 | 132 | ####################################################################### |
michael@0 | 133 | # [14.0] Master "Core Components" rule set # |
michael@0 | 134 | ####################################################################### |
michael@0 | 135 | ifndef MK_RULESET |
michael@0 | 136 | include $(CORE_DEPTH)/coreconf/ruleset.mk |
michael@0 | 137 | endif |
michael@0 | 138 | |
michael@0 | 139 | ####################################################################### |
michael@0 | 140 | # [15.0] Dependencies. |
michael@0 | 141 | ####################################################################### |
michael@0 | 142 | |
michael@0 | 143 | -include $(MKDEPENDENCIES) |
michael@0 | 144 | |
michael@0 | 145 | ####################################################################### |
michael@0 | 146 | # [16.0] Global environ ment defines |
michael@0 | 147 | ####################################################################### |
michael@0 | 148 | |
michael@0 | 149 | ifdef NSS_DISABLE_ECC |
michael@0 | 150 | DEFINES += -DNSS_DISABLE_ECC |
michael@0 | 151 | endif |
michael@0 | 152 | |
michael@0 | 153 | ifdef NSS_ECC_MORE_THAN_SUITE_B |
michael@0 | 154 | DEFINES += -DNSS_ECC_MORE_THAN_SUITE_B |
michael@0 | 155 | endif |
michael@0 | 156 | |
michael@0 | 157 | ifdef NSS_ALLOW_UNSUPPORTED_CRITICAL |
michael@0 | 158 | DEFINES += -DNSS_ALLOW_UNSUPPORTED_CRITICAL |
michael@0 | 159 | endif |
michael@0 | 160 | |
michael@0 | 161 | ifdef BUILD_LIBPKIX_TESTS |
michael@0 | 162 | DEFINES += -DBUILD_LIBPKIX_TESTS |
michael@0 | 163 | endif |
michael@0 | 164 | |
michael@0 | 165 | ifdef NSS_DISABLE_DBM |
michael@0 | 166 | DEFINES += -DNSS_DISABLE_DBM |
michael@0 | 167 | endif |
michael@0 | 168 | |
michael@0 | 169 | ifdef NSS_PKIX_NO_LDAP |
michael@0 | 170 | DEFINES += -DNSS_PKIX_NO_LDAP |
michael@0 | 171 | endif |
michael@0 | 172 | |
michael@0 | 173 | # Avoid building object leak test code for optimized library |
michael@0 | 174 | ifndef BUILD_OPT |
michael@0 | 175 | ifdef PKIX_OBJECT_LEAK_TEST |
michael@0 | 176 | DEFINES += -DPKIX_OBJECT_LEAK_TEST |
michael@0 | 177 | endif |
michael@0 | 178 | endif |
michael@0 | 179 | |
michael@0 | 180 | # This allows all library and tools code to use the util function |
michael@0 | 181 | # implementations directly from libnssutil3, rather than the wrappers |
michael@0 | 182 | # in libnss3 which are present for binary compatibility only |
michael@0 | 183 | DEFINES += -DUSE_UTIL_DIRECTLY |
michael@0 | 184 | USE_UTIL_DIRECTLY = 1 |
michael@0 | 185 | |
michael@0 | 186 | # Build with NO_NSPR_10_SUPPORT to avoid using obsolete NSPR features |
michael@0 | 187 | DEFINES += -DNO_NSPR_10_SUPPORT |
michael@0 | 188 | |
michael@0 | 189 | # Hide old, deprecated, TLS cipher suite names when building NSS |
michael@0 | 190 | DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES |