1 | # The contents of this file are subject to the Netscape Public |
---|
2 | # License Version 1.1 (the "License"); you may not use this file |
---|
3 | # except in compliance with the License. You may obtain a copy of |
---|
4 | # the License at http://www.mozilla.org/NPL/ |
---|
5 | # |
---|
6 | # Software distributed under the License is distributed on an "AS |
---|
7 | # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
---|
8 | # implied. See the License for the specific language governing |
---|
9 | # rights and limitations under the License. |
---|
10 | # |
---|
11 | # The Original Code is mozilla.org code. |
---|
12 | # |
---|
13 | # The Initial Developer of the Original Code is Netscape |
---|
14 | # Communications Corporation. Portions created by Netscape are |
---|
15 | # Copyright (C) 1998 Netscape Communications Corporation. All |
---|
16 | # Rights Reserved. |
---|
17 | # |
---|
18 | # Contributor(s): |
---|
19 | |
---|
20 | #//------------------------------------------------------------------------ |
---|
21 | #// |
---|
22 | #// Win16 Configuration file |
---|
23 | #// |
---|
24 | #//------------------------------------------------------------------------ |
---|
25 | |
---|
26 | #//------------------------------------------------------------------------ |
---|
27 | #// |
---|
28 | #// Define the OS dependent commands used by MAKE |
---|
29 | #// |
---|
30 | #//------------------------------------------------------------------------ |
---|
31 | CC=cl |
---|
32 | LD=$(MOZ_TOOLS)\bin\optlinks.exe |
---|
33 | AR=$(DEPTH)\CONFIG\TLIB.EXE /P64 /C |
---|
34 | #AR=lib /NOLOGO /BATCH /NOIGNORECASE |
---|
35 | RC=rc |
---|
36 | #RM=del /F /Q |
---|
37 | #RM_R=del /F /S /Q |
---|
38 | RM=rm -f |
---|
39 | RM_R=rm -fr |
---|
40 | CP=cp |
---|
41 | AWK=$(MOZ_TOOLS)\bin\gawk.exe |
---|
42 | RANLIB=$(DEPTH)\config\true.bat |
---|
43 | !ifndef MOZ_DEBUG |
---|
44 | JAVAH_PROG=$(DEPTH)\dist\$(DIST_PREFIX)32_o.obj\bin\javah.exe |
---|
45 | !else |
---|
46 | JAVAH_PROG=$(DEPTH)\dist\$(DIST_PREFIX)32_d.obj\bin\javah.exe |
---|
47 | !endif |
---|
48 | |
---|
49 | #//------------------------------------------------------------------------ |
---|
50 | #// |
---|
51 | #// Define Debug and optimization flags |
---|
52 | #// |
---|
53 | #//------------------------------------------------------------------------ |
---|
54 | !ifndef MOZ_DEBUG |
---|
55 | !ifndef OPTIMIZER |
---|
56 | OPTIMIZER=-Ox -Os -DDEVELOPER_DEBUG |
---|
57 | !endif |
---|
58 | OS_LFLAGS= |
---|
59 | !else |
---|
60 | !if defined(MOZ_FULL_DEBUG_INFO) || ("$(MAKE_OBJ_TYPE)" == "DLL") |
---|
61 | OPTIMIZER=-Z7 |
---|
62 | !else if defined(MOZ_DEBUG_FLAG) |
---|
63 | OPTIMIZER=$(MOZ_DEBUG_FLAG) |
---|
64 | !else |
---|
65 | OPTIMIZER=-Zd |
---|
66 | !endif |
---|
67 | OPTIMIZER=$(OPTIMIZER) -Od -DDEBUG -UNDEBUG |
---|
68 | OS_LFLAGS=/CO |
---|
69 | !endif |
---|
70 | !if defined (MOZ_LITE) |
---|
71 | OPTIMIZER=$(OPTIMIZER) -DMOZ_LITE |
---|
72 | !endif |
---|
73 | #//------------------------------------------------------------------------ |
---|
74 | #// |
---|
75 | #// Specify the OS dependent compiler flags, linker flags and libraries |
---|
76 | #// |
---|
77 | #//------------------------------------------------------------------------ |
---|
78 | !ifdef 286_INSTRUCTIONS |
---|
79 | INSTRUCTIONS=-G2 |
---|
80 | !else |
---|
81 | INSTRUCTIONS=-G3 |
---|
82 | !endif |
---|
83 | OS_CFLAGS=$(INSTRUCTIONS) -AL -Gx- -Gf -Gd -Gs -W3 -nologo \ |
---|
84 | !ifdef MOZ_JAVA |
---|
85 | -DSEG_ARRAY \ |
---|
86 | !endif |
---|
87 | -D_X86_ -D_WINDOWS -DXP_PC -DSW_THREADS |
---|
88 | |
---|
89 | |
---|
90 | OS_LFLAGS=$(OS_LFLAGS) /NOE /NOD /NOI /XNOI \ |
---|
91 | /ALIGN:16 /BYORDINAL /FARCALL \ |
---|
92 | /PACKC:61440 /PACKD /REORDERSEGMENTS \ |
---|
93 | /DETAILEDMAP /XREF /ONERROR:NOEXE /NOLOGO /WARNDUPS |
---|
94 | |
---|
95 | OS_LIBS=LIBW.LIB TOOLHELP.LIB |
---|
96 | |
---|
97 | |
---|
98 | #//------------------------------------------------------------------------ |
---|
99 | #// |
---|
100 | #// Specify the special flags for creating EXEs |
---|
101 | #// |
---|
102 | #//------------------------------------------------------------------------ |
---|
103 | EXE_CFLAGS=/GA /Gt3 |
---|
104 | EXE_LFLAGS=/STACK:20000 |
---|
105 | EXE_LIBS=OLDNAMES.LIB LLIBCEW.LIB |
---|
106 | |
---|
107 | #//------------------------------------------------------------------------ |
---|
108 | #// |
---|
109 | #// Specify the special flags for creating DLLs |
---|
110 | #// |
---|
111 | #//------------------------------------------------------------------------ |
---|
112 | !ifndef DLL_CFLAGS |
---|
113 | DLL_CFLAGS=/GD /D "_WINDLL" |
---|
114 | !endif |
---|
115 | DLL_LFLAGS= |
---|
116 | DLL_LIBS=OLDNAMES.LIB LDLLCEW.LIB |
---|
117 | |
---|