59 # set INCLUDES for C preprocessor |
59 # set INCLUDES for C preprocessor |
60 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED) |
60 Src_Dirs_I += $(GAMMADIR)/src/share/vm/adlc $(GENERATED) |
61 INCLUDES += $(Src_Dirs_I:%=-I%) |
61 INCLUDES += $(Src_Dirs_I:%=-I%) |
62 |
62 |
63 # set flags for adlc compilation |
63 # set flags for adlc compilation |
64 CPPFLAGS = $(SYSDEFS) $(INCLUDES) |
64 CXXFLAGS = $(SYSDEFS) $(INCLUDES) |
65 |
65 |
66 # Force assertions on. |
66 # Force assertions on. |
67 CPPFLAGS += -DASSERT |
67 CXXFLAGS += -DASSERT |
68 |
68 |
69 # CFLAGS_WARN holds compiler options to suppress/enable warnings. |
69 # CFLAGS_WARN holds compiler options to suppress/enable warnings. |
70 # Compiler warnings are treated as errors |
70 # Compiler warnings are treated as errors |
71 ifneq ($(COMPILER_WARNINGS_FATAL),false) |
71 ifneq ($(COMPILER_WARNINGS_FATAL),false) |
72 CFLAGS_WARN = -Werror |
72 CFLAGS_WARN = -Werror |
109 |
109 |
110 all: $(EXEC) |
110 all: $(EXEC) |
111 |
111 |
112 $(EXEC) : $(OBJECTS) |
112 $(EXEC) : $(OBJECTS) |
113 @echo Making adlc |
113 @echo Making adlc |
114 $(QUIETLY) $(HOST.LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS) |
114 $(QUIETLY) $(HOST.LINK_NOPROF.CXX) -o $(EXEC) $(OBJECTS) |
115 |
115 |
116 # Random dependencies: |
116 # Random dependencies: |
117 $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp |
117 $(OBJECTS): opcodes.hpp classes.hpp adlc.hpp adlcVMDeps.hpp adlparse.hpp archDesc.hpp arena.hpp dict2.hpp filebuff.hpp forms.hpp formsopt.hpp formssel.hpp |
118 |
118 |
119 # The source files refer to ostream.h, which sparcworks calls iostream.h |
119 # The source files refer to ostream.h, which sparcworks calls iostream.h |
211 print }' |
211 print }' |
212 |
212 |
213 $(OUTDIR)/%.o: %.cpp |
213 $(OUTDIR)/%.o: %.cpp |
214 @echo Compiling $< |
214 @echo Compiling $< |
215 $(QUIETLY) $(REMOVE_TARGET) |
215 $(QUIETLY) $(REMOVE_TARGET) |
216 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
216 $(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) |
217 |
217 |
218 # Some object files are given a prefix, to disambiguate |
218 # Some object files are given a prefix, to disambiguate |
219 # them from objects of the same name built for the VM. |
219 # them from objects of the same name built for the VM. |
220 $(OUTDIR)/adlc-%.o: %.cpp |
220 $(OUTDIR)/adlc-%.o: %.cpp |
221 @echo Compiling $< |
221 @echo Compiling $< |
222 $(QUIETLY) $(REMOVE_TARGET) |
222 $(QUIETLY) $(REMOVE_TARGET) |
223 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
223 $(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) |
224 |
224 |
225 # ######################################################################### |
225 # ######################################################################### |
226 |
226 |
227 clean : |
227 clean : |
228 rm $(OBJECTS) |
228 rm $(OBJECTS) |