Mercurial > hg > graal-jvmci-8
comparison make/windows/makefiles/compile.make @ 5897:7292cff45988
7141244: build-infra merge: Include $(SPEC) in makefiles and make variables overridable
Reviewed-by: dholmes, ohrstrom, ohair, jcoomes
author | erikj |
---|---|
date | Wed, 22 Feb 2012 09:24:35 +0100 |
parents | 719f7007c8e8 |
children | 74c359c4a9e5 |
comparison
equal
deleted
inserted
replaced
5896:b5ab7482dbf9 | 5897:7292cff45988 |
---|---|
21 # questions. | 21 # questions. |
22 # | 22 # |
23 # | 23 # |
24 | 24 |
25 # Generic compiler settings | 25 # Generic compiler settings |
26 !if "x$(CXX)" == "x" | |
26 CXX=cl.exe | 27 CXX=cl.exe |
28 !endif | |
27 | 29 |
28 # CXX Flags: (these vary slightly from VC6->VS2003->VS2005 compilers) | 30 # CXX Flags: (these vary slightly from VC6->VS2003->VS2005 compilers) |
29 # /nologo Supress copyright message at every cl.exe startup | 31 # /nologo Supress copyright message at every cl.exe startup |
30 # /W3 Warning level 3 | 32 # /W3 Warning level 3 |
31 # /Zi Include debugging information | 33 # /Zi Include debugging information |
181 # NOTE: Currently we decided to not use /GS- | 183 # NOTE: Currently we decided to not use /GS- |
182 BUFFEROVERFLOWLIB = bufferoverflowU.lib | 184 BUFFEROVERFLOWLIB = bufferoverflowU.lib |
183 LD_FLAGS = /manifest $(LD_FLAGS) $(BUFFEROVERFLOWLIB) | 185 LD_FLAGS = /manifest $(LD_FLAGS) $(BUFFEROVERFLOWLIB) |
184 # Manifest Tool - used in VS2005 and later to adjust manifests stored | 186 # Manifest Tool - used in VS2005 and later to adjust manifests stored |
185 # as resources inside build artifacts. | 187 # as resources inside build artifacts. |
188 !if "x$(MT)" == "x" | |
186 MT=mt.exe | 189 MT=mt.exe |
190 !endif | |
187 !endif | 191 !endif |
188 | 192 |
189 !if "$(COMPILER_NAME)" == "VS2008" | 193 !if "$(COMPILER_NAME)" == "VS2008" |
190 PRODUCT_OPT_OPTION = /O2 /Oy- | 194 PRODUCT_OPT_OPTION = /O2 /Oy- |
191 FASTDEBUG_OPT_OPTION = /O2 /Oy- | 195 FASTDEBUG_OPT_OPTION = /O2 /Oy- |
192 DEBUG_OPT_OPTION = /Od | 196 DEBUG_OPT_OPTION = /Od |
193 GX_OPTION = /EHsc | 197 GX_OPTION = /EHsc |
194 LD_FLAGS = /manifest $(LD_FLAGS) | 198 LD_FLAGS = /manifest $(LD_FLAGS) |
195 # Manifest Tool - used in VS2005 and later to adjust manifests stored | 199 # Manifest Tool - used in VS2005 and later to adjust manifests stored |
196 # as resources inside build artifacts. | 200 # as resources inside build artifacts. |
201 !if "x$(MT)" == "x" | |
197 MT=mt.exe | 202 MT=mt.exe |
203 !endif | |
198 !endif | 204 !endif |
199 | 205 |
200 !if "$(COMPILER_NAME)" == "VS2010" | 206 !if "$(COMPILER_NAME)" == "VS2010" |
201 PRODUCT_OPT_OPTION = /O2 /Oy- | 207 PRODUCT_OPT_OPTION = /O2 /Oy- |
202 FASTDEBUG_OPT_OPTION = /O2 /Oy- | 208 FASTDEBUG_OPT_OPTION = /O2 /Oy- |
203 DEBUG_OPT_OPTION = /Od | 209 DEBUG_OPT_OPTION = /Od |
204 GX_OPTION = /EHsc | 210 GX_OPTION = /EHsc |
205 LD_FLAGS = /manifest $(LD_FLAGS) | 211 LD_FLAGS = /manifest $(LD_FLAGS) |
206 # Manifest Tool - used in VS2005 and later to adjust manifests stored | 212 # Manifest Tool - used in VS2005 and later to adjust manifests stored |
207 # as resources inside build artifacts. | 213 # as resources inside build artifacts. |
214 !if "x$(MT)" == "x" | |
208 MT=mt.exe | 215 MT=mt.exe |
216 !endif | |
209 !if "$(BUILDARCH)" == "i486" | 217 !if "$(BUILDARCH)" == "i486" |
210 LD_FLAGS = /SAFESEH $(LD_FLAGS) | 218 LD_FLAGS = /SAFESEH $(LD_FLAGS) |
211 !endif | 219 !endif |
212 !endif | 220 !endif |
213 | 221 |
223 PRODUCT_OPT_OPTION = $(DEBUG_OPT_OPTION) | 231 PRODUCT_OPT_OPTION = $(DEBUG_OPT_OPTION) |
224 FASTDEBUG_OPT_OPTION = $(DEBUG_OPT_OPTION) | 232 FASTDEBUG_OPT_OPTION = $(DEBUG_OPT_OPTION) |
225 !endif | 233 !endif |
226 | 234 |
227 # Generic linker settings | 235 # Generic linker settings |
236 !if "x$(LD)" == "x" | |
228 LD=link.exe | 237 LD=link.exe |
238 !endif | |
229 LD_FLAGS= $(LD_FLAGS) kernel32.lib user32.lib gdi32.lib winspool.lib \ | 239 LD_FLAGS= $(LD_FLAGS) kernel32.lib user32.lib gdi32.lib winspool.lib \ |
230 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ | 240 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ |
231 uuid.lib Wsock32.lib winmm.lib /nologo /machine:$(MACHINE) /opt:REF \ | 241 uuid.lib Wsock32.lib winmm.lib /nologo /machine:$(MACHINE) /opt:REF \ |
232 /opt:ICF,8 /map /debug | 242 /opt:ICF,8 /map /debug |
233 | 243 |
235 !if $(MSC_VER) >= 1600 | 245 !if $(MSC_VER) >= 1600 |
236 LD_FLAGS= $(LD_FLAGS) psapi.lib | 246 LD_FLAGS= $(LD_FLAGS) psapi.lib |
237 !endif | 247 !endif |
238 | 248 |
239 # Resource compiler settings | 249 # Resource compiler settings |
250 !if "x$(RC)" == "x" | |
240 RC=rc.exe | 251 RC=rc.exe |
252 !endif | |
241 RC_FLAGS=/D "HS_VER=$(HS_VER)" \ | 253 RC_FLAGS=/D "HS_VER=$(HS_VER)" \ |
242 /D "HS_DOTVER=$(HS_DOTVER)" \ | 254 /D "HS_DOTVER=$(HS_DOTVER)" \ |
243 /D "HS_BUILD_ID=$(HS_BUILD_ID)" \ | 255 /D "HS_BUILD_ID=$(HS_BUILD_ID)" \ |
244 /D "JDK_VER=$(JDK_VER)" \ | 256 /D "JDK_VER=$(JDK_VER)" \ |
245 /D "JDK_DOTVER=$(JDK_DOTVER)" \ | 257 /D "JDK_DOTVER=$(JDK_DOTVER)" \ |