Bug 591874 - windows screen readers are broken due to post-130078 changes in the...
[mozilla-central.git] / security / coreconf / WINCE.mk
blobaf23a8ee0d486fdc5c43215912dabe53c925c960
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 *****
39 # Configuration common to all versions of Windows CE and Pocket PC x.
42 ifeq ($(CPU_ARCH),x86)
43 DEFAULT_COMPILER = cl
44 CC = cl
45 CCC = cl
46 else
47 ifeq ($(CPU_ARCH),ARM)
48 DEFAULT_COMPILER = clarm
49 CC = clarm
50 CCC = clarm
51 else
52 include CPU_ARCH_is_not_recognized
53 include _$(CPU_ARCH)
54 endif
55 endif
57 LINK = link
58 AR = lib
59 AR += -NOLOGO -OUT:"$@"
60 RANLIB = echo
61 BSDECHO = echo
63 ifdef BUILD_TREE
64 NSINSTALL_DIR = $(BUILD_TREE)/nss
65 else
66 NSINSTALL_DIR = $(CORE_DEPTH)/coreconf/nsinstall
67 endif
68 NSINSTALL = nsinstall
70 MKDEPEND_DIR = $(CORE_DEPTH)/coreconf/mkdepend
71 MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend.exe
72 # Note: MKDEPENDENCIES __MUST__ be a relative pathname, not absolute.
73 # If it is absolute, gmake will crash unless the named file exists.
74 MKDEPENDENCIES = $(OBJDIR_NAME)/depend.mk
76 INSTALL = $(NSINSTALL)
77 MAKE_OBJDIR = mkdir
78 MAKE_OBJDIR += $(OBJDIR)
79 RC = rc.exe
80 GARBAGE += $(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb
81 XP_DEFINE += -DXP_PC
82 LIB_SUFFIX = lib
83 DLL_SUFFIX = dll
84 OS_DLLFLAGS += -DLL
86 EXTRA_EXE_LD_FLAGS += -ENTRY:mainWCRTStartup
88 ifdef BUILD_OPT
89 # OS_CFLAGS += -MD
90 OPTIMIZER += -O2
91 DEFINES += -UDEBUG -U_DEBUG -DNDEBUG
92 DLLFLAGS += -OUT:"$@"
93 else
95 # Define USE_DEBUG_RTL if you want to use the debug runtime library
96 # (RTL) in the debug build
98 ifdef USE_DEBUG_RTL
99 # OS_CFLAGS += -MDd
100 else
101 # OS_CFLAGS += -MD
102 endif
103 OPTIMIZER += -Od -Z7
104 #OPTIMIZER += -Zi -Fd$(OBJDIR)/ -Od
105 DEFINES += -DDEBUG -D_DEBUG -UNDEBUG -DDEBUG_$(USERNAME)
106 DLLFLAGS += -DEBUG -DEBUGTYPE:CV -OUT:"$@"
107 LDFLAGS += -DEBUG -DEBUGTYPE:CV
108 endif
110 # DEFINES += -DWIN32
112 ifdef MAPFILE
113 DLLFLAGS += -DEF:$(MAPFILE)
114 endif
116 # Change PROCESS to put the mapfile in the correct format for this platform
117 PROCESS_MAP_FILE = cp $< $@
120 # The following is NOT needed for the NSPR 2.0 library.
123 DEFINES += -D_WINDOWS
125 # override default, which is ASFLAGS = CFLAGS
126 AS = ml.exe
127 ASFLAGS = -Cp -Sn -Zi -coff $(INCLUDES)
130 # override the definitions of RELEASE_TREE found in tree.mk
132 ifndef RELEASE_TREE
133 ifdef BUILD_SHIP
134 ifdef USE_SHIPS
135 RELEASE_TREE = $(NTBUILD_SHIP)
136 else
137 RELEASE_TREE = //redbuild/components
138 endif
139 else
140 RELEASE_TREE = //redbuild/components
141 endif
142 endif
145 # override the definitions of LIB_PREFIX and DLL_PREFIX in prefix.mk
148 ifndef LIB_PREFIX
149 LIB_PREFIX = $(NULL)
150 endif
152 ifndef DLL_PREFIX
153 DLL_PREFIX = $(NULL)
154 endif
157 # override the definitions of various _SUFFIX symbols in suffix.mk
161 # Object suffixes
163 ifndef OBJ_SUFFIX
164 OBJ_SUFFIX = .obj
165 endif
168 # Assembler source suffixes
170 ifndef ASM_SUFFIX
171 ASM_SUFFIX = .asm
172 endif
175 # Library suffixes
178 ifndef IMPORT_LIB_SUFFIX
179 IMPORT_LIB_SUFFIX = .$(LIB_SUFFIX)
180 endif
182 ifndef DYNAMIC_LIB_SUFFIX_FOR_LINKING
183 DYNAMIC_LIB_SUFFIX_FOR_LINKING = $(IMPORT_LIB_SUFFIX)
184 endif
187 # Program suffixes
189 ifndef PROG_SUFFIX
190 PROG_SUFFIX = .exe
191 endif
194 # override ruleset.mk, removing the "lib" prefix for library names, and
195 # adding the "32" after the LIBRARY_VERSION.
197 ifdef LIBRARY_NAME
198 SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)32$(JDK_DEBUG_SUFFIX).dll
199 IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)32$(JDK_DEBUG_SUFFIX).lib
200 endif
203 # override the TARGETS defined in ruleset.mk, adding IMPORT_LIBRARY
205 ifndef TARGETS
206 TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(PROGRAM)
207 endif
211 # Always set CPU_TAG on Linux, WINCE.
213 CPU_TAG = _$(CPU_ARCH)