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 # win16_3.11.mk -- Make configuration for Win16
41 # This file configures gmake to build the Win16 variant of
42 # NSPR 2.0. This file has the function of two files commonly
43 # used on other platforms, for example: winnt.mk and
44 # winnt4.0.mk. ... The packaging is easier and there is only
45 # one variant of the Win16 target.
47 # Win16 is built using the Watcom C/C++ version 11.0
48 # compiler. You gotta set up the compiler first.
49 # The Watcom compiler depends on a few environment
50 # variables; these environment variables define where the
51 # compiler components are installed; they must be set before
55 # OS_CFLAGS is the command line options for the compiler when
56 # building the .DLL object files.
57 # OS_EXE_CFLAGS is the command line options for the compiler
58 # when building the .EXE object files; this is for the test
60 # the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the
61 # makefile for the pr/tests directory. ... Hack.
67 # -- configuration -----------------------------------------
69 DEFAULT_COMPILER
= wcc
77 RC
+= /r
/dWIN16
=1 /bt
=windows
80 NSINSTALL_DIR
= $(CORE_DEPTH
)/coreconf
/nsinstall
82 INSTALL
= $(NSINSTALL
)
84 MAKE_OBJDIR
+= $(OBJDIR
)
90 OPTIMIZER
= -oneatx
-oh
-oi
-ei
-3 -fpi87
-fp3
92 OPTIMIZER
+= -d2
-hc
-DDEBUG
93 # OPTIMIZER += -d2 -hw -DDEBUG
94 # LDFLAGS += -DEBUG -DEBUGTYPE:CV
98 # $(CPU_ARCH) has been commented out so that its contents
99 # are not added to the WIN16_?.OBJ names thus expanding
100 # them beyond the 8.3 character limit for this platform.
104 # added "-s" to avoid dependency on watcom's libs (e.g. on _STK)
105 # added "-zt3" for compatibility with MSVC's "/Gt3" option
107 OS_CFLAGS
+= -ml
-3 -bd
-zc
-zu
-bt
=windows
-s
-zt3
-d_X86_
-dWIN16
-d_WINDLL
108 #OS_EXE_CFLAGS += -ml -3 -bt=windows -d_X86_ -dWIN16
109 OS_LIB_FLAGS
= -c
-iro
111 # Name of the binary code directories
112 OS_DLL_OPTION
= CASEEXACT
117 # Add LD options to restrict exported symbols to those in the map file
119 # Change PROCESS to put the mapfile in the correct format for this platform
120 PROCESS_MAP_FILE
= copy
$< $@
124 # The following is NOT needed for the NSPR 2.0 library.
127 OS_CFLAGS
+= -d_WINDOWS
-d_MSC_VER
=700
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
156 # override the definitions of various _SUFFIX symbols in suffix.mk
167 # Assembler source suffixes
176 ifndef IMPORT_LIB_SUFFIX
177 IMPORT_LIB_SUFFIX
= .
$(LIB_SUFFIX
)
180 ifndef DYNAMIC_LIB_SUFFIX_FOR_LINKING
181 DYNAMIC_LIB_SUFFIX_FOR_LINKING
= $(IMPORT_LIB_SUFFIX
)
192 # When the processor is NOT 386-based on Windows NT, override the
193 # value of $(CPU_TAG). For WinNT, 95, 16, not CE.
195 ifneq ($(CPU_ARCH
),x386
)
196 CPU_TAG
= _
$(CPU_ARCH
)
200 # override ruleset.mk, removing the "lib" prefix for library names, and
201 # adding the "32" after the LIBRARY_VERSION.
204 SHARED_LIBRARY
= $(OBJDIR
)/$(LIBRARY_NAME
)$(LIBRARY_VERSION
)32$(JDK_DEBUG_SUFFIX
).dll
205 IMPORT_LIBRARY
= $(OBJDIR
)/$(LIBRARY_NAME
)$(LIBRARY_VERSION
)32$(JDK_DEBUG_SUFFIX
).lib
209 # override the TARGETS defined in ruleset.mk, adding IMPORT_LIBRARY
212 TARGETS
= $(LIBRARY
) $(SHARED_LIBRARY
) $(IMPORT_LIBRARY
) $(PROGRAM
)