make/linux/makefiles/rules.make

Print this page


   1 #
   2 # Copyright (c) 2003, 2008, 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 #  


 134 BOOT_SOURCE_LANGUAGE_VERSION = 6
 135 BOOT_TARGET_CLASS_VERSION = 6
 136 JAVAC_FLAGS = -g -encoding ascii
 137 BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 138 
 139 # With parallel makes, print a message at the end of compilation.
 140 ifeq    ($(findstring j,$(MFLAGS)),j)
 141 COMPILE_DONE    = && { echo Done with $<; }
 142 endif
 143 
 144 # Include $(NONPIC_OBJ_FILES) definition
 145 ifndef LP64
 146 include $(GAMMADIR)/make/pic.make
 147 endif
 148 
 149 # The non-PIC object files are only generated for 32 bit platforms.
 150 ifdef LP64
 151 %.o: %.cpp
 152         @echo Compiling $<
 153         $(QUIETLY) $(REMOVE_TARGET)
 154         $(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE)
 155 else
 156 %.o: %.cpp
 157         @echo Compiling $<
 158         $(QUIETLY) $(REMOVE_TARGET)
 159         $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
 160            $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) -o $@ $< $(COMPILE_DONE), \
 161            $(COMPILE.CC) -o $@ $< $(COMPILE_DONE))
 162 endif
 163 
 164 %.o: %.s
 165         @echo Assembling $<
 166         $(QUIETLY) $(REMOVE_TARGET)
 167         $(QUIETLY) $(AS.S) -o $@ $< $(COMPILE_DONE)
 168 
 169 %.s: %.cpp
 170         @echo Generating assembly for $<
 171         $(QUIETLY) $(GENASM.CC) -o $@ $<
 172         $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
 173 
 174 # Intermediate files (for debugging macros)
 175 %.i: %.cpp
 176         @echo Preprocessing $< to $@
 177         $(QUIETLY) $(PREPROCESS.CC) $< > $@ $(COMPILE_DONE)
 178 
 179 #  Override gnumake built-in rules which do sccs get operations badly.
 180 #  (They put the checked out code in the current directory, not in the
 181 #  directory of the original file.)  Since this is a symptom of a teamware
 182 #  failure, and since not all problems can be detected by gnumake due
 183 #  to incomplete dependency checking... just complain and stop.
 184 %:: s.%
 185         @echo "========================================================="
 186         @echo File $@
 187         @echo is out of date with respect to its SCCS file.
   1 #
   2 # Copyright (c) 2003, 2010, 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 #  


 134 BOOT_SOURCE_LANGUAGE_VERSION = 6
 135 BOOT_TARGET_CLASS_VERSION = 6
 136 JAVAC_FLAGS = -g -encoding ascii
 137 BOOTSTRAP_JAVAC_FLAGS = $(JAVAC_FLAGS) -source $(BOOT_SOURCE_LANGUAGE_VERSION) -target $(BOOT_TARGET_CLASS_VERSION)
 138 
 139 # With parallel makes, print a message at the end of compilation.
 140 ifeq    ($(findstring j,$(MFLAGS)),j)
 141 COMPILE_DONE    = && { echo Done with $<; }
 142 endif
 143 
 144 # Include $(NONPIC_OBJ_FILES) definition
 145 ifndef LP64
 146 include $(GAMMADIR)/make/pic.make
 147 endif
 148 
 149 # The non-PIC object files are only generated for 32 bit platforms.
 150 ifdef LP64
 151 %.o: %.cpp
 152         @echo Compiling $<
 153         $(QUIETLY) $(REMOVE_TARGET)
 154         $(QUIETLY) $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
 155 else
 156 %.o: %.cpp
 157         @echo Compiling $<
 158         $(QUIETLY) $(REMOVE_TARGET)
 159         $(QUIETLY) $(if $(findstring $@, $(NONPIC_OBJ_FILES)), \
 160            $(subst $(VM_PICFLAG), ,$(COMPILE.CC)) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE), \
 161            $(COMPILE.CC) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE))
 162 endif
 163 
 164 %.o: %.s
 165         @echo Assembling $<
 166         $(QUIETLY) $(REMOVE_TARGET)
 167         $(QUIETLY) $(AS.S) $(DEPFLAGS) -o $@ $< $(COMPILE_DONE)
 168 
 169 %.s: %.cpp
 170         @echo Generating assembly for $<
 171         $(QUIETLY) $(GENASM.CC) -o $@ $<
 172         $(QUIETLY) $(DEMANGLE) $(COMPILE_DONE)
 173 
 174 # Intermediate files (for debugging macros)
 175 %.i: %.cpp
 176         @echo Preprocessing $< to $@
 177         $(QUIETLY) $(PREPROCESS.CC) $< > $@ $(COMPILE_DONE)
 178 
 179 #  Override gnumake built-in rules which do sccs get operations badly.
 180 #  (They put the checked out code in the current directory, not in the
 181 #  directory of the original file.)  Since this is a symptom of a teamware
 182 #  failure, and since not all problems can be detected by gnumake due
 183 #  to incomplete dependency checking... just complain and stop.
 184 %:: s.%
 185         @echo "========================================================="
 186         @echo File $@
 187         @echo is out of date with respect to its SCCS file.