make/linux/makefiles/rules.make

Print this page




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


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