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