1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/coreconf/config.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,190 @@ 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 +# Configuration information for building in the "Core Components" source module 1.10 + 1.11 +####################################################################### 1.12 +# [1.0] Master "Core Components" source and release <architecture> # 1.13 +# tags # 1.14 +####################################################################### 1.15 +ifndef MK_ARCH 1.16 +include $(CORE_DEPTH)/coreconf/arch.mk 1.17 +endif 1.18 + 1.19 +####################################################################### 1.20 +# [2.0] Master "Core Components" default command macros # 1.21 +# (NOTE: may be overridden in $(OS_TARGET)$(OS_RELEASE).mk) # 1.22 +####################################################################### 1.23 +ifndef MK_COMMAND 1.24 +include $(CORE_DEPTH)/coreconf/command.mk 1.25 +endif 1.26 + 1.27 +####################################################################### 1.28 +# [3.0] Master "Core Components" <architecture>-specific macros # 1.29 +# (dependent upon <architecture> tags) # 1.30 +# # 1.31 +# We are moving towards just having a $(OS_TARGET).mk file # 1.32 +# as opposed to multiple $(OS_TARGET)$(OS_RELEASE).mk files, # 1.33 +# one for each OS release. # 1.34 +####################################################################### 1.35 + 1.36 +TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \ 1.37 + AIX RISCOS WINNT WIN95 Linux Android 1.38 + 1.39 +ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET))) 1.40 +include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk 1.41 +else 1.42 +ifeq ($(OS_TARGET),SunOS) 1.43 +include $(CORE_DEPTH)/coreconf/SunOS5.mk 1.44 +else 1.45 +include $(CORE_DEPTH)/coreconf/$(OS_TARGET)$(OS_RELEASE).mk 1.46 +endif 1.47 +endif 1.48 + 1.49 +####################################################################### 1.50 +# [4.0] Master "Core Components" source and release <platform> tags # 1.51 +# (dependent upon <architecture> tags) # 1.52 +####################################################################### 1.53 +PLATFORM = $(OBJDIR_NAME) 1.54 + 1.55 +####################################################################### 1.56 +# [5.0] Master "Core Components" release <tree> tags # 1.57 +# (dependent upon <architecture> tags) # 1.58 +####################################################################### 1.59 +ifndef MK_TREE 1.60 +include $(CORE_DEPTH)/coreconf/tree.mk 1.61 +endif 1.62 + 1.63 +####################################################################### 1.64 +# [6.0] Master "Core Components" source and release <component> tags # 1.65 +# NOTE: A component is also called a module or a subsystem. # 1.66 +# (dependent upon $(MODULE) being defined on the # 1.67 +# command line, as an environment variable, or in individual # 1.68 +# makefiles, or more appropriately, manifest.mn) # 1.69 +####################################################################### 1.70 +ifndef MK_MODULE 1.71 +include $(CORE_DEPTH)/coreconf/module.mk 1.72 +endif 1.73 + 1.74 +####################################################################### 1.75 +# [7.0] Master "Core Components" release <version> tags # 1.76 +# (dependent upon $(MODULE) being defined on the # 1.77 +# command line, as an environment variable, or in individual # 1.78 +# makefiles, or more appropriately, manifest.mn) # 1.79 +####################################################################### 1.80 +ifndef MK_VERSION 1.81 +include $(CORE_DEPTH)/coreconf/version.mk 1.82 +endif 1.83 + 1.84 +####################################################################### 1.85 +# [8.0] Master "Core Components" macros to figure out # 1.86 +# binary code location # 1.87 +# (dependent upon <platform> tags) # 1.88 +####################################################################### 1.89 +ifndef MK_LOCATION 1.90 +include $(CORE_DEPTH)/coreconf/location.mk 1.91 +endif 1.92 + 1.93 +####################################################################### 1.94 +# [9.0] Master "Core Components" <component>-specific source path # 1.95 +# (dependent upon <user_source_tree>, <source_component>, # 1.96 +# <version>, and <platform> tags) # 1.97 +####################################################################### 1.98 +ifndef MK_SOURCE 1.99 +include $(CORE_DEPTH)/coreconf/source.mk 1.100 +endif 1.101 + 1.102 +####################################################################### 1.103 +# [10.0] Master "Core Components" include switch for support header # 1.104 +# files # 1.105 +# (dependent upon <tree>, <component>, <version>, # 1.106 +# and <platform> tags) # 1.107 +####################################################################### 1.108 +ifndef MK_HEADERS 1.109 +include $(CORE_DEPTH)/coreconf/headers.mk 1.110 +endif 1.111 + 1.112 +####################################################################### 1.113 +# [11.0] Master "Core Components" for computing program prefixes # 1.114 +####################################################################### 1.115 +ifndef MK_PREFIX 1.116 +include $(CORE_DEPTH)/coreconf/prefix.mk 1.117 +endif 1.118 + 1.119 +####################################################################### 1.120 +# [12.0] Master "Core Components" for computing program suffixes # 1.121 +# (dependent upon <architecture> tags) # 1.122 +####################################################################### 1.123 +ifndef MK_SUFFIX 1.124 +include $(CORE_DEPTH)/coreconf/suffix.mk 1.125 +endif 1.126 + 1.127 +####################################################################### 1.128 +# [13.0] Master "Core Components" for defining JDK # 1.129 +# (dependent upon <architecture>, <source>, and <suffix> tags)# 1.130 +####################################################################### 1.131 +ifdef NS_USE_JDK 1.132 +include $(CORE_DEPTH)/coreconf/jdk.mk 1.133 +endif 1.134 + 1.135 +####################################################################### 1.136 +# [14.0] Master "Core Components" rule set # 1.137 +####################################################################### 1.138 +ifndef MK_RULESET 1.139 +include $(CORE_DEPTH)/coreconf/ruleset.mk 1.140 +endif 1.141 + 1.142 +####################################################################### 1.143 +# [15.0] Dependencies. 1.144 +####################################################################### 1.145 + 1.146 +-include $(MKDEPENDENCIES) 1.147 + 1.148 +####################################################################### 1.149 +# [16.0] Global environ ment defines 1.150 +####################################################################### 1.151 + 1.152 +ifdef NSS_DISABLE_ECC 1.153 +DEFINES += -DNSS_DISABLE_ECC 1.154 +endif 1.155 + 1.156 +ifdef NSS_ECC_MORE_THAN_SUITE_B 1.157 +DEFINES += -DNSS_ECC_MORE_THAN_SUITE_B 1.158 +endif 1.159 + 1.160 +ifdef NSS_ALLOW_UNSUPPORTED_CRITICAL 1.161 +DEFINES += -DNSS_ALLOW_UNSUPPORTED_CRITICAL 1.162 +endif 1.163 + 1.164 +ifdef BUILD_LIBPKIX_TESTS 1.165 +DEFINES += -DBUILD_LIBPKIX_TESTS 1.166 +endif 1.167 + 1.168 +ifdef NSS_DISABLE_DBM 1.169 +DEFINES += -DNSS_DISABLE_DBM 1.170 +endif 1.171 + 1.172 +ifdef NSS_PKIX_NO_LDAP 1.173 +DEFINES += -DNSS_PKIX_NO_LDAP 1.174 +endif 1.175 + 1.176 +# Avoid building object leak test code for optimized library 1.177 +ifndef BUILD_OPT 1.178 +ifdef PKIX_OBJECT_LEAK_TEST 1.179 +DEFINES += -DPKIX_OBJECT_LEAK_TEST 1.180 +endif 1.181 +endif 1.182 + 1.183 +# This allows all library and tools code to use the util function 1.184 +# implementations directly from libnssutil3, rather than the wrappers 1.185 +# in libnss3 which are present for binary compatibility only 1.186 +DEFINES += -DUSE_UTIL_DIRECTLY 1.187 +USE_UTIL_DIRECTLY = 1 1.188 + 1.189 +# Build with NO_NSPR_10_SUPPORT to avoid using obsolete NSPR features 1.190 +DEFINES += -DNO_NSPR_10_SUPPORT 1.191 + 1.192 +# Hide old, deprecated, TLS cipher suite names when building NSS 1.193 +DEFINES += -DSSL_DISABLE_DEPRECATED_CIPHER_SUITE_NAMES