Mercurial > hg > truffle
annotate make/windows/makefiles/adlc.make @ 1972:f95d63e2154a
6989984: Use standard include model for Hospot
Summary: Replaced MakeDeps and the includeDB files with more standardized solutions.
Reviewed-by: coleenp, kvn, kamg
author | stefank |
---|---|
date | Tue, 23 Nov 2010 13:22:55 -0800 |
parents | c18cbe5936b8 |
children | 01c0559441c8 |
rev | line source |
---|---|
0 | 1 # |
1972 | 2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | |
5 # This code is free software; you can redistribute it and/or modify it | |
6 # under the terms of the GNU General Public License version 2 only, as | |
7 # published by the Free Software Foundation. | |
8 # | |
9 # This code is distributed in the hope that it will be useful, but WITHOUT | |
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 # version 2 for more details (a copy is included in the LICENSE file that | |
13 # accompanied this code). | |
14 # | |
15 # You should have received a copy of the GNU General Public License version | |
16 # 2 along with this work; if not, write to the Free Software Foundation, | |
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 # | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
844
diff
changeset
|
21 # questions. |
0 | 22 # |
23 # | |
24 | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
25 !include $(WorkSpace)/make/windows/makefiles/compile.make |
0 | 26 |
27 # Rules for building adlc.exe | |
28 | |
29 # Need exception handling support here | |
30 # $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB) | |
31 # causes adlc.exe to link with the static | |
32 # multithread Standard C++ library (libcpmt.lib) instead of | |
33 # the dynamic version (msvcprt.lib), which is not included | |
34 # in any of the free tools. | |
35 EXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION) | |
36 | |
37 !ifdef ALT_ADLC_PATH | |
38 ADLC=$(ALT_ADLC_PATH)\adlc.exe | |
39 !else | |
40 ADLC=adlc | |
41 !endif | |
42 | |
43 !ifdef LP64 | |
44 ADLCFLAGS=-q -T -D_LP64 | |
45 !else | |
46 ADLCFLAGS=-q -T -U_LP64 | |
47 !endif | |
48 | |
659
520d43965b1f
6812297: update project creation for Visual Studio 2005-2008
ikrylov
parents:
427
diff
changeset
|
49 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE |
0 | 50 |
51 CPP_INCLUDE_DIRS=\ | |
1972 | 52 /I "..\generated" \ |
53 /I "$(WorkSpace)\src\share\vm" \ | |
54 /I "$(WorkSpace)\src\os\windows\vm" \ | |
0 | 55 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" |
56 | |
1972 | 57 # NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR |
58 # and ProjectCreatorIDEOptions in projectcreator.make. | |
0 | 59 GENERATED_NAMES=\ |
60 ad_$(Platform_arch_model).cpp \ | |
61 ad_$(Platform_arch_model).hpp \ | |
62 ad_$(Platform_arch_model)_clone.cpp \ | |
63 ad_$(Platform_arch_model)_expand.cpp \ | |
64 ad_$(Platform_arch_model)_format.cpp \ | |
65 ad_$(Platform_arch_model)_gen.cpp \ | |
66 ad_$(Platform_arch_model)_misc.cpp \ | |
67 ad_$(Platform_arch_model)_peephole.cpp \ | |
68 ad_$(Platform_arch_model)_pipeline.cpp \ | |
69 adGlobals_$(Platform_arch_model).hpp \ | |
70 dfa_$(Platform_arch_model).cpp | |
71 | |
72 # NOTE! This must be kept in sync with GENERATED_NAMES | |
1972 | 73 GENERATED_NAMES_IN_DIR=\ |
74 $(AdlcOutDir)\ad_$(Platform_arch_model).cpp \ | |
75 $(AdlcOutDir)\ad_$(Platform_arch_model).hpp \ | |
76 $(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \ | |
77 $(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \ | |
78 $(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \ | |
79 $(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \ | |
80 $(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \ | |
81 $(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \ | |
82 $(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \ | |
83 $(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \ | |
84 $(AdlcOutDir)\dfa_$(Platform_arch_model).cpp | |
0 | 85 |
86 {$(WorkSpace)\src\share\vm\adlc}.cpp.obj:: | |
87 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $< | |
88 | |
89 {$(WorkSpace)\src\share\vm\opto}.cpp.obj:: | |
90 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $< | |
91 | |
92 adlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \ | |
93 forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj | |
94 $(LINK) $(LINK_FLAGS) /subsystem:console /out:$@ $** | |
427
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
95 !if "$(MT)" != "" |
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
96 # The previous link command created a .manifest file that we want to |
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
97 # insert into the linked artifact so we do not need to track it |
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
98 # separately. Use ";#2" for .dll and ";#1" for .exe: |
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
99 $(MT) /manifest $@.manifest /outputresource:$@;#1 |
3c07cda72b7d
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
196
diff
changeset
|
100 !endif |
0 | 101 |
1972 | 102 $(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe |
0 | 103 rm -f $(GENERATED_NAMES) |
1972 | 104 if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir) |
105 mkdir $(AdlcOutDir) | |
0 | 106 $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad |
1972 | 107 mv $(GENERATED_NAMES) $(AdlcOutDir)/ |
0 | 108 |
109 $(Platform_arch_model).ad: $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad | |
110 rm -f $(Platform_arch_model).ad | |
111 cat $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \ | |
112 $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad >$(Platform_arch_model).ad |