author | alanb |
Tue, 03 May 2016 09:11:31 +0100 | |
changeset 37827 | 09fa0c82a5f7 |
parent 22234 | da823d78ad65 |
permissions | -rw-r--r-- |
1 | 1 |
# |
22234
da823d78ad65
8029233: Update copyright year to match last edit in jdk8 hotspot repository for 2013
mikael
parents:
19280
diff
changeset
|
2 |
# Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3261
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3261
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
3261
diff
changeset
|
21 |
# questions. |
1 | 22 |
# |
23 |
# |
|
24 |
||
25 |
||
26 |
# Rules for building adlc.exe |
|
27 |
||
28 |
# Need exception handling support here |
|
29 |
# $(MS_RUNTIME_OPTION) ( with /D_STATIC_CPPLIB) |
|
30 |
# causes adlc.exe to link with the static |
|
31 |
# multithread Standard C++ library (libcpmt.lib) instead of |
|
32 |
# the dynamic version (msvcprt.lib), which is not included |
|
33 |
# in any of the free tools. |
|
34 |
EXH_FLAGS=$(GX_OPTION) $(MS_RUNTIME_OPTION) |
|
35 |
||
36 |
!ifdef ALT_ADLC_PATH |
|
37 |
ADLC=$(ALT_ADLC_PATH)\adlc.exe |
|
38 |
!else |
|
39 |
ADLC=adlc |
|
40 |
!endif |
|
41 |
||
42 |
!ifdef LP64 |
|
43 |
ADLCFLAGS=-q -T -D_LP64 |
|
44 |
!else |
|
45 |
ADLCFLAGS=-q -T -U_LP64 |
|
46 |
!endif |
|
47 |
||
11721
dcd1f62c9caf
7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents:
11429
diff
changeset
|
48 |
ADLC_CXX_FLAGS=$(CXX_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE |
1 | 49 |
|
11721
dcd1f62c9caf
7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents:
11429
diff
changeset
|
50 |
CXX_INCLUDE_DIRS=\ |
7397 | 51 |
/I "..\generated" \ |
52 |
/I "$(WorkSpace)\src\share\vm" \ |
|
53 |
/I "$(WorkSpace)\src\os\windows\vm" \ |
|
1 | 54 |
/I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" |
55 |
||
11429
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
56 |
!if "$(Platform_arch_model)" == "$(Platform_arch)" |
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
57 |
SOURCES_AD=\ |
19280 | 58 |
$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad |
11429
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
59 |
!else |
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
60 |
SOURCES_AD=\ |
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
61 |
$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \ |
19280 | 62 |
$(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch).ad |
11429
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
63 |
!endif |
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
64 |
|
7397 | 65 |
# NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR |
66 |
# and ProjectCreatorIDEOptions in projectcreator.make. |
|
1 | 67 |
GENERATED_NAMES=\ |
68 |
ad_$(Platform_arch_model).cpp \ |
|
69 |
ad_$(Platform_arch_model).hpp \ |
|
70 |
ad_$(Platform_arch_model)_clone.cpp \ |
|
71 |
ad_$(Platform_arch_model)_expand.cpp \ |
|
72 |
ad_$(Platform_arch_model)_format.cpp \ |
|
73 |
ad_$(Platform_arch_model)_gen.cpp \ |
|
74 |
ad_$(Platform_arch_model)_misc.cpp \ |
|
75 |
ad_$(Platform_arch_model)_peephole.cpp \ |
|
76 |
ad_$(Platform_arch_model)_pipeline.cpp \ |
|
77 |
adGlobals_$(Platform_arch_model).hpp \ |
|
78 |
dfa_$(Platform_arch_model).cpp |
|
79 |
||
80 |
# NOTE! This must be kept in sync with GENERATED_NAMES |
|
7397 | 81 |
GENERATED_NAMES_IN_DIR=\ |
82 |
$(AdlcOutDir)\ad_$(Platform_arch_model).cpp \ |
|
83 |
$(AdlcOutDir)\ad_$(Platform_arch_model).hpp \ |
|
84 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \ |
|
85 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \ |
|
86 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \ |
|
87 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \ |
|
88 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \ |
|
89 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \ |
|
90 |
$(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \ |
|
91 |
$(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \ |
|
92 |
$(AdlcOutDir)\dfa_$(Platform_arch_model).cpp |
|
1 | 93 |
|
94 |
{$(WorkSpace)\src\share\vm\adlc}.cpp.obj:: |
|
11721
dcd1f62c9caf
7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents:
11429
diff
changeset
|
95 |
$(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $< |
1 | 96 |
|
97 |
{$(WorkSpace)\src\share\vm\opto}.cpp.obj:: |
|
11721
dcd1f62c9caf
7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents:
11429
diff
changeset
|
98 |
$(CXX) $(ADLC_CXX_FLAGS) $(EXH_FLAGS) $(CXX_INCLUDE_DIRS) /c $< |
1 | 99 |
|
100 |
adlc.exe: main.obj adlparse.obj archDesc.obj arena.obj dfa.obj dict2.obj filebuff.obj \ |
|
101 |
forms.obj formsopt.obj formssel.obj opcodes.obj output_c.obj output_h.obj |
|
11721
dcd1f62c9caf
7141242: build-infra merge: Rename CPP->CXX and LINK->LD
erikj
parents:
11429
diff
changeset
|
102 |
$(LD) $(LD_FLAGS) /subsystem:console /out:$@ $** |
1546
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
103 |
!if "$(MT)" != "" |
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
104 |
# The previous link command created a .manifest file that we want to |
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
105 |
# insert into the linked artifact so we do not need to track it |
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
106 |
# separately. Use ";#2" for .dll and ";#1" for .exe: |
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
107 |
$(MT) /manifest $@.manifest /outputresource:$@;#1 |
a02228c60567
6764892: VS2008 changes required to compile hotspot sources
tbell
parents:
670
diff
changeset
|
108 |
!endif |
1 | 109 |
|
7397 | 110 |
$(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe |
1 | 111 |
rm -f $(GENERATED_NAMES) |
7397 | 112 |
if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir) |
113 |
mkdir $(AdlcOutDir) |
|
1 | 114 |
$(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad |
7397 | 115 |
mv $(GENERATED_NAMES) $(AdlcOutDir)/ |
1 | 116 |
|
11429
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
117 |
$(Platform_arch_model).ad: $(SOURCES_AD) |
1 | 118 |
rm -f $(Platform_arch_model).ad |
11429
e894217a5d94
7121648: Use 3-operands SIMD instructions on x86 with AVX
kvn
parents:
7452
diff
changeset
|
119 |
cat $(SOURCES_AD) >$(Platform_arch_model).ad |