1 #
2 # Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
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 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
155 $(QUIETLY) $(REMOVE_TARGET)
156 $(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
157 else
158 %.o: %.cpp
159 @echo $(LOG_INFO) Compiling $<
160 $(QUIETLY) $(REMOVE_TARGET)
161 $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
162 $(subst $(VM_PICFLAG), ,$(COMPILE.CXX)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
163 $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
164 endif
165
166 %.o: %.s
167 @echo $(LOG_INFO) Assembling $<
168 $(QUIETLY) $(REMOVE_TARGET)
169 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
170
171 # gcc applies preprocessing if the file extension is .S instead of .s
172 %.o: %.S
173 @echo $(LOG_INFO) Preprocessing and assembling $<
174 $(QUIETLY) $(REMOVE_TARGET)
175 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
176
177 %.s: %.cpp
178 @echo $(LOG_INFO) Generating assembly for $<
179 $(QUIETLY) $(GENASM.CXX) -o $@ $<
180 $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
181
182 # Intermediate files (for debugging macros)
183 %.i: %.cpp
184 @echo $(LOG_INFO) Preprocessing $< to $@
185 $(QUIETLY) $(PREPROCESS.CXX) $< > $@ $(COMPILE_DONE)
186
187 # Override gnumake built-in rules which do sccs get operations badly.
188 # (They put the checked out code in the current directory, not in the
189 # directory of the original file.) Since this is a symptom of a teamware
190 # failure, and since not all problems can be detected by gnumake due
191 # to incomplete dependency checking... just complain and stop.
192 %:: s.%
193 @echo "========================================================="
194 @echo File $@
195 @echo is out of date with respect to its SCCS file.
|
1 #
2 # Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
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 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
155 $(QUIETLY) $(REMOVE_TARGET)
156 $(QUIETLY) $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
157 else
158 %.o: %.cpp
159 @echo $(LOG_INFO) Compiling $<
160 $(QUIETLY) $(REMOVE_TARGET)
161 $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
162 $(subst $(VM_PICFLAG), ,$(COMPILE.CXX)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
163 $(COMPILE.CXX) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
164 endif
165
166 %.o: %.s
167 @echo $(LOG_INFO) Assembling $<
168 $(QUIETLY) $(REMOVE_TARGET)
169 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
170
171 # gcc applies preprocessing if the file extension is .S instead of .s
172 %.o: %.S
173 @echo $(LOG_INFO) Preprocessing and assembling $<
174 $(QUIETLY) $(REMOVE_TARGET)
175 $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
176
177 %.s: %.cpp
178 @echo $(LOG_INFO) Generating assembly for $<
179 $(QUIETLY) $(GENASM.CXX) -o $@ $<
180 $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
181
182 # Intermediate files (for debugging macros)
183 %.i: %.cpp
184 @echo $(LOG_INFO) Preprocessing $< to $@
185 $(QUIETLY) $(PREPROCESS.CXX) $< > $@ $(COMPILE_DONE)
186
187 # Override gnumake built-in rules which do sccs get operations badly.
188 # (They put the checked out code in the current directory, not in the
189 # directory of the original file.) Since this is a symptom of a teamware
190 # failure, and since not all problems can be detected by gnumake due
191 # to incomplete dependency checking... just complain and stop.
192 %:: s.%
193 @echo "========================================================="
194 @echo File $@
195 @echo is out of date with respect to its SCCS file.
|