1 # |
1 # |
2 # Copyright (c) 1999, 2009, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
47 !endif |
47 !endif |
48 |
48 |
49 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE |
49 CPP_FLAGS=$(CPP_FLAGS) /D _CRT_SECURE_NO_WARNINGS /D _CRT_SECURE_NO_DEPRECATE |
50 |
50 |
51 CPP_INCLUDE_DIRS=\ |
51 CPP_INCLUDE_DIRS=\ |
52 /I "..\generated" \ |
52 /I "..\generated" \ |
53 /I "$(WorkSpace)\src\share\vm\compiler" \ |
53 /I "$(WorkSpace)\src\share\vm" \ |
54 /I "$(WorkSpace)\src\share\vm\code" \ |
54 /I "$(WorkSpace)\src\os\windows\vm" \ |
55 /I "$(WorkSpace)\src\share\vm\interpreter" \ |
|
56 /I "$(WorkSpace)\src\share\vm\classfile" \ |
|
57 /I "$(WorkSpace)\src\share\vm\asm" \ |
|
58 /I "$(WorkSpace)\src\share\vm\memory" \ |
|
59 /I "$(WorkSpace)\src\share\vm\oops" \ |
|
60 /I "$(WorkSpace)\src\share\vm\prims" \ |
|
61 /I "$(WorkSpace)\src\share\vm\runtime" \ |
|
62 /I "$(WorkSpace)\src\share\vm\utilities" \ |
|
63 /I "$(WorkSpace)\src\share\vm\libadt" \ |
|
64 /I "$(WorkSpace)\src\share\vm\opto" \ |
|
65 /I "$(WorkSpace)\src\os\windows\vm" \ |
|
66 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" |
55 /I "$(WorkSpace)\src\cpu\$(Platform_arch)\vm" |
67 |
56 |
68 # NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_INCL |
57 # NOTE! If you add any files here, you must also update GENERATED_NAMES_IN_DIR |
69 # and MakeDepsIDEOptions in makedeps.make. |
58 # and ProjectCreatorIDEOptions in projectcreator.make. |
70 GENERATED_NAMES=\ |
59 GENERATED_NAMES=\ |
71 ad_$(Platform_arch_model).cpp \ |
60 ad_$(Platform_arch_model).cpp \ |
72 ad_$(Platform_arch_model).hpp \ |
61 ad_$(Platform_arch_model).hpp \ |
73 ad_$(Platform_arch_model)_clone.cpp \ |
62 ad_$(Platform_arch_model)_clone.cpp \ |
74 ad_$(Platform_arch_model)_expand.cpp \ |
63 ad_$(Platform_arch_model)_expand.cpp \ |
79 ad_$(Platform_arch_model)_pipeline.cpp \ |
68 ad_$(Platform_arch_model)_pipeline.cpp \ |
80 adGlobals_$(Platform_arch_model).hpp \ |
69 adGlobals_$(Platform_arch_model).hpp \ |
81 dfa_$(Platform_arch_model).cpp |
70 dfa_$(Platform_arch_model).cpp |
82 |
71 |
83 # NOTE! This must be kept in sync with GENERATED_NAMES |
72 # NOTE! This must be kept in sync with GENERATED_NAMES |
84 GENERATED_NAMES_IN_INCL=\ |
73 GENERATED_NAMES_IN_DIR=\ |
85 incls/ad_$(Platform_arch_model).cpp \ |
74 $(AdlcOutDir)\ad_$(Platform_arch_model).cpp \ |
86 incls/ad_$(Platform_arch_model).hpp \ |
75 $(AdlcOutDir)\ad_$(Platform_arch_model).hpp \ |
87 incls/ad_$(Platform_arch_model)_clone.cpp \ |
76 $(AdlcOutDir)\ad_$(Platform_arch_model)_clone.cpp \ |
88 incls/ad_$(Platform_arch_model)_expand.cpp \ |
77 $(AdlcOutDir)\ad_$(Platform_arch_model)_expand.cpp \ |
89 incls/ad_$(Platform_arch_model)_format.cpp \ |
78 $(AdlcOutDir)\ad_$(Platform_arch_model)_format.cpp \ |
90 incls/ad_$(Platform_arch_model)_gen.cpp \ |
79 $(AdlcOutDir)\ad_$(Platform_arch_model)_gen.cpp \ |
91 incls/ad_$(Platform_arch_model)_misc.cpp \ |
80 $(AdlcOutDir)\ad_$(Platform_arch_model)_misc.cpp \ |
92 incls/ad_$(Platform_arch_model)_peephole.cpp \ |
81 $(AdlcOutDir)\ad_$(Platform_arch_model)_peephole.cpp \ |
93 incls/ad_$(Platform_arch_model)_pipeline.cpp \ |
82 $(AdlcOutDir)\ad_$(Platform_arch_model)_pipeline.cpp \ |
94 incls/adGlobals_$(Platform_arch_model).hpp \ |
83 $(AdlcOutDir)\adGlobals_$(Platform_arch_model).hpp \ |
95 incls/dfa_$(Platform_arch_model).cpp |
84 $(AdlcOutDir)\dfa_$(Platform_arch_model).cpp |
96 |
85 |
97 {$(WorkSpace)\src\share\vm\adlc}.cpp.obj:: |
86 {$(WorkSpace)\src\share\vm\adlc}.cpp.obj:: |
98 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $< |
87 $(CPP) $(CPP_FLAGS) $(EXH_FLAGS) $(CPP_INCLUDE_DIRS) /c $< |
99 |
88 |
100 {$(WorkSpace)\src\share\vm\opto}.cpp.obj:: |
89 {$(WorkSpace)\src\share\vm\opto}.cpp.obj:: |
108 # insert into the linked artifact so we do not need to track it |
97 # insert into the linked artifact so we do not need to track it |
109 # separately. Use ";#2" for .dll and ";#1" for .exe: |
98 # separately. Use ";#2" for .dll and ";#1" for .exe: |
110 $(MT) /manifest $@.manifest /outputresource:$@;#1 |
99 $(MT) /manifest $@.manifest /outputresource:$@;#1 |
111 !endif |
100 !endif |
112 |
101 |
113 $(GENERATED_NAMES_IN_INCL): $(Platform_arch_model).ad adlc.exe includeDB.current |
102 $(GENERATED_NAMES_IN_DIR): $(Platform_arch_model).ad adlc.exe |
114 rm -f $(GENERATED_NAMES) |
103 rm -f $(GENERATED_NAMES) |
|
104 if exist $(AdlcOutDir) rmdir /s /q $(AdlcOutDir) |
|
105 mkdir $(AdlcOutDir) |
115 $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad |
106 $(ADLC) $(ADLCFLAGS) $(Platform_arch_model).ad |
116 mv $(GENERATED_NAMES) incls/ |
107 mv $(GENERATED_NAMES) $(AdlcOutDir)/ |
117 |
108 |
118 $(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 |
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 |
119 rm -f $(Platform_arch_model).ad |
110 rm -f $(Platform_arch_model).ad |
120 cat $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \ |
111 cat $(WorkSpace)/src/cpu/$(Platform_arch)/vm/$(Platform_arch_model).ad \ |
121 $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad >$(Platform_arch_model).ad |
112 $(WorkSpace)/src/os_cpu/windows_$(Platform_arch)/vm/windows_$(Platform_arch_model).ad >$(Platform_arch_model).ad |