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 CFLAGS_WARN = -Werror |
71 CFLAGS_WARN = -Werror |
72 CFLAGS += $(CFLAGS_WARN) |
72 CFLAGS += $(CFLAGS_WARN) |
107 |
107 |
108 all: $(EXEC) |
108 all: $(EXEC) |
109 |
109 |
110 $(EXEC) : $(OBJECTS) |
110 $(EXEC) : $(OBJECTS) |
111 @echo Making adlc |
111 @echo Making adlc |
112 $(QUIETLY) $(HOST.LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS) |
112 $(QUIETLY) $(HOST.LINK_NOPROF.CXX) -o $(EXEC) $(OBJECTS) |
113 |
113 |
114 # Random dependencies: |
114 # Random dependencies: |
115 $(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 |
115 $(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 |
116 |
116 |
117 # The source files refer to ostream.h, which sparcworks calls iostream.h |
117 # The source files refer to ostream.h, which sparcworks calls iostream.h |
209 print }' |
209 print }' |
210 |
210 |
211 $(OUTDIR)/%.o: %.cpp |
211 $(OUTDIR)/%.o: %.cpp |
212 @echo Compiling $< |
212 @echo Compiling $< |
213 $(QUIETLY) $(REMOVE_TARGET) |
213 $(QUIETLY) $(REMOVE_TARGET) |
214 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
214 $(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) |
215 |
215 |
216 # Some object files are given a prefix, to disambiguate |
216 # Some object files are given a prefix, to disambiguate |
217 # them from objects of the same name built for the VM. |
217 # them from objects of the same name built for the VM. |
218 $(OUTDIR)/adlc-%.o: %.cpp |
218 $(OUTDIR)/adlc-%.o: %.cpp |
219 @echo Compiling $< |
219 @echo Compiling $< |
220 $(QUIETLY) $(REMOVE_TARGET) |
220 $(QUIETLY) $(REMOVE_TARGET) |
221 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
221 $(QUIETLY) $(HOST.COMPILE.CXX) -o $@ $< $(COMPILE_DONE) |
222 |
222 |
223 # ######################################################################### |
223 # ######################################################################### |
224 |
224 |
225 clean : |
225 clean : |
226 rm $(OBJECTS) |
226 rm $(OBJECTS) |