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
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.
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
)
47 ifeq ($(CPU_ARCH
),ARM
)
48 DEFAULT_COMPILER
= clarm
52 include CPU_ARCH_is_not_recognized
59 AR
+= -NOLOGO
-OUT
:"$@"
64 NSINSTALL_DIR
= $(BUILD_TREE
)/nss
66 NSINSTALL_DIR
= $(CORE_DEPTH
)/coreconf
/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
)
78 MAKE_OBJDIR
+= $(OBJDIR
)
80 GARBAGE
+= $(OBJDIR
)/vc20.pdb
$(OBJDIR
)/vc40.pdb
86 EXTRA_EXE_LD_FLAGS
+= -ENTRY
:mainWCRTStartup
91 DEFINES
+= -UDEBUG
-U_DEBUG
-DNDEBUG
95 # Define USE_DEBUG_RTL if you want to use the debug runtime library
96 # (RTL) in the debug build
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
113 DLLFLAGS
+= -DEF
:$(MAPFILE
)
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
127 ASFLAGS
= -Cp
-Sn
-Zi
-coff
$(INCLUDES
)
130 # override the definitions of RELEASE_TREE found in tree.mk
135 RELEASE_TREE
= $(NTBUILD_SHIP
)
137 RELEASE_TREE
= //redbuild
/components
140 RELEASE_TREE
= //redbuild
/components
145 # override the definitions of LIB_PREFIX and DLL_PREFIX in prefix.mk
157 # override the definitions of various _SUFFIX symbols in suffix.mk
168 # Assembler source suffixes
178 ifndef IMPORT_LIB_SUFFIX
179 IMPORT_LIB_SUFFIX
= .
$(LIB_SUFFIX
)
182 ifndef DYNAMIC_LIB_SUFFIX_FOR_LINKING
183 DYNAMIC_LIB_SUFFIX_FOR_LINKING
= $(IMPORT_LIB_SUFFIX
)
194 # override ruleset.mk, removing the "lib" prefix for library names, and
195 # adding the "32" after the LIBRARY_VERSION.
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
203 # override the TARGETS defined in ruleset.mk, adding IMPORT_LIBRARY
206 TARGETS
= $(LIBRARY
) $(SHARED_LIBRARY
) $(IMPORT_LIBRARY
) $(PROGRAM
)
211 # Always set CPU_TAG on Linux, WINCE.
213 CPU_TAG
= _
$(CPU_ARCH
)