Bug 591874 - windows screen readers are broken due to post-130078 changes in the...
[mozilla-central.git] / security / coreconf / config.mk
blob5b560fbbc1884251d93ac2830e9de97e2a3f13b8
2 # ***** BEGIN LICENSE BLOCK *****
3 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 # The contents of this file are subject to the Mozilla Public License Version
6 # 1.1 (the "License"); you may not use this file except in compliance with
7 # the License. You may obtain a copy of the License at
8 # http://www.mozilla.org/MPL/
10 # Software distributed under the License is distributed on an "AS IS" basis,
11 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 # for the specific language governing rights and limitations under the
13 # License.
15 # The Original Code is the Netscape security libraries.
17 # The Initial Developer of the Original Code is
18 # Netscape Communications Corporation.
19 # Portions created by the Initial Developer are Copyright (C) 1994-2000
20 # the Initial Developer. All Rights Reserved.
22 # Contributor(s):
24 # Alternatively, the contents of this file may be used under the terms of
25 # either the GNU General Public License Version 2 or later (the "GPL"), or
26 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 # in which case the provisions of the GPL or the LGPL are applicable instead
28 # of those above. If you wish to allow use of your version of this file only
29 # under the terms of either the GPL or the LGPL, and not to allow others to
30 # use your version of this file under the terms of the MPL, indicate your
31 # decision by deleting the provisions above and replace them with the notice
32 # and other provisions required by the GPL or the LGPL. If you do not delete
33 # the provisions above, a recipient may use your version of this file under
34 # the terms of any one of the MPL, the GPL or the LGPL.
36 # ***** END LICENSE BLOCK *****
38 # Configuration information for building in the "Core Components" source module
40 #######################################################################
41 # [1.0] Master "Core Components" source and release <architecture> #
42 # tags #
43 #######################################################################
44 ifndef MK_ARCH
45 include $(CORE_DEPTH)/coreconf/arch.mk
46 endif
48 #######################################################################
49 # [2.0] Master "Core Components" default command macros #
50 # (NOTE: may be overridden in $(OS_TARGET)$(OS_RELEASE).mk) #
51 #######################################################################
52 ifndef MK_COMMAND
53 include $(CORE_DEPTH)/coreconf/command.mk
54 endif
56 #######################################################################
57 # [3.0] Master "Core Components" <architecture>-specific macros #
58 # (dependent upon <architecture> tags) #
59 # #
60 # We are moving towards just having a $(OS_TARGET).mk file #
61 # as opposed to multiple $(OS_TARGET)$(OS_RELEASE).mk files, #
62 # one for each OS release. #
63 #######################################################################
65 TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
66 AIX RISCOS WINNT WIN95 WINCE
68 ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
69 include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
70 else
71 include $(CORE_DEPTH)/coreconf/$(OS_TARGET)$(OS_RELEASE).mk
72 endif
74 #######################################################################
75 # [4.0] Master "Core Components" source and release <platform> tags #
76 # (dependent upon <architecture> tags) #
77 #######################################################################
78 PLATFORM = $(OBJDIR_NAME)
80 #######################################################################
81 # [5.0] Master "Core Components" release <tree> tags #
82 # (dependent upon <architecture> tags) #
83 #######################################################################
84 ifndef MK_TREE
85 include $(CORE_DEPTH)/coreconf/tree.mk
86 endif
88 #######################################################################
89 # [6.0] Master "Core Components" source and release <component> tags #
90 # NOTE: A component is also called a module or a subsystem. #
91 # (dependent upon $(MODULE) being defined on the #
92 # command line, as an environment variable, or in individual #
93 # makefiles, or more appropriately, manifest.mn) #
94 #######################################################################
95 ifndef MK_MODULE
96 include $(CORE_DEPTH)/coreconf/module.mk
97 endif
99 #######################################################################
100 # [7.0] Master "Core Components" release <version> tags #
101 # (dependent upon $(MODULE) being defined on the #
102 # command line, as an environment variable, or in individual #
103 # makefiles, or more appropriately, manifest.mn) #
104 #######################################################################
105 ifndef MK_VERSION
106 include $(CORE_DEPTH)/coreconf/version.mk
107 endif
109 #######################################################################
110 # [8.0] Master "Core Components" macros to figure out #
111 # binary code location #
112 # (dependent upon <platform> tags) #
113 #######################################################################
114 ifndef MK_LOCATION
115 include $(CORE_DEPTH)/coreconf/location.mk
116 endif
118 #######################################################################
119 # [9.0] Master "Core Components" <component>-specific source path #
120 # (dependent upon <user_source_tree>, <source_component>, #
121 # <version>, and <platform> tags) #
122 #######################################################################
123 ifndef MK_SOURCE
124 include $(CORE_DEPTH)/coreconf/source.mk
125 endif
127 #######################################################################
128 # [10.0] Master "Core Components" include switch for support header #
129 # files #
130 # (dependent upon <tree>, <component>, <version>, #
131 # and <platform> tags) #
132 #######################################################################
133 ifndef MK_HEADERS
134 include $(CORE_DEPTH)/coreconf/headers.mk
135 endif
137 #######################################################################
138 # [11.0] Master "Core Components" for computing program prefixes #
139 #######################################################################
140 ifndef MK_PREFIX
141 include $(CORE_DEPTH)/coreconf/prefix.mk
142 endif
144 #######################################################################
145 # [12.0] Master "Core Components" for computing program suffixes #
146 # (dependent upon <architecture> tags) #
147 #######################################################################
148 ifndef MK_SUFFIX
149 include $(CORE_DEPTH)/coreconf/suffix.mk
150 endif
152 #######################################################################
153 # [13.0] Master "Core Components" for defining JDK #
154 # (dependent upon <architecture>, <source>, and <suffix> tags)#
155 #######################################################################
156 ifdef NS_USE_JDK
157 include $(CORE_DEPTH)/coreconf/jdk.mk
158 endif
160 #######################################################################
161 # [14.0] Master "Core Components" rule set #
162 #######################################################################
163 ifndef MK_RULESET
164 include $(CORE_DEPTH)/coreconf/ruleset.mk
165 endif
167 #######################################################################
168 # [15.0] Dependencies.
169 #######################################################################
171 -include $(MKDEPENDENCIES)
173 #######################################################################
174 # [16.0] Global environ ment defines
175 #######################################################################
177 ifdef NSS_ENABLE_ECC
178 DEFINES += -DNSS_ENABLE_ECC
179 endif
181 ifdef NSS_ECC_MORE_THAN_SUITE_B
182 DEFINES += -DNSS_ECC_MORE_THAN_SUITE_B
183 endif
185 ifdef NSS_ALLOW_UNSUPPORTED_CRITICAL
186 DEFINES += -DNSS_ALLOW_UNSUPPORTED_CRITICAL
187 endif
189 ifdef BUILD_LIBPKIX_TESTS
190 DEFINES += -DBUILD_LIBPKIX_TESTS
191 endif
193 ifdef NSS_DISABLE_DBM
194 DEFINES += -DNSS_DISABLE_DBM
195 endif
197 # Avoid building object leak test code for optimized library
198 ifndef BUILD_OPT
199 ifdef PKIX_OBJECT_LEAK_TEST
200 DEFINES += -DPKIX_OBJECT_LEAK_TEST
201 endif
202 endif
204 # This allows all library and tools code to use the util function
205 # implementations directly from libnssutil3, rather than the wrappers
206 # in libnss3 which are present for binary compatibility only
207 DEFINES += -DUSE_UTIL_DIRECTLY
208 USE_UTIL_DIRECTLY = 1