100 |
100 |
101 all: $(EXEC) |
101 all: $(EXEC) |
102 |
102 |
103 $(EXEC) : $(OBJECTS) |
103 $(EXEC) : $(OBJECTS) |
104 @echo Making adlc |
104 @echo Making adlc |
105 $(QUIETLY) $(LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS) |
105 $(QUIETLY) $(HOST.LINK_NOPROF.CC) -o $(EXEC) $(OBJECTS) |
106 |
106 |
107 # Random dependencies: |
107 # Random dependencies: |
108 $(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 |
108 $(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 |
109 |
109 |
110 # The source files refer to ostream.h, which sparcworks calls iostream.h |
110 # The source files refer to ostream.h, which sparcworks calls iostream.h |
202 print }' |
202 print }' |
203 |
203 |
204 $(OUTDIR)/%.o: %.cpp |
204 $(OUTDIR)/%.o: %.cpp |
205 @echo Compiling $< |
205 @echo Compiling $< |
206 $(QUIETLY) $(REMOVE_TARGET) |
206 $(QUIETLY) $(REMOVE_TARGET) |
207 $(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
207 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
208 |
208 |
209 # Some object files are given a prefix, to disambiguate |
209 # Some object files are given a prefix, to disambiguate |
210 # them from objects of the same name built for the VM. |
210 # them from objects of the same name built for the VM. |
211 $(OUTDIR)/adlc-%.o: %.cpp |
211 $(OUTDIR)/adlc-%.o: %.cpp |
212 @echo Compiling $< |
212 @echo Compiling $< |
213 $(QUIETLY) $(REMOVE_TARGET) |
213 $(QUIETLY) $(REMOVE_TARGET) |
214 $(QUIETLY) $(COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
214 $(QUIETLY) $(HOST.COMPILE.CC) -o $@ $< $(COMPILE_DONE) |
215 |
215 |
216 # ######################################################################### |
216 # ######################################################################### |
217 |
217 |
218 clean : |
218 clean : |
219 rm $(OBJECTS) |
219 rm $(OBJECTS) |