tx fix
[calu.git] / 3c_disasm / Makefile
index 35b6ff503bbe5b0d8d8304baff5dbb184f31f682..062b6fe854559c856cbe7a1119658f725c710216 100644 (file)
@@ -15,8 +15,8 @@ $(PROG): $(sources:.cpp=.o)
 libs:   
        $(MAKE) -C instr all
 
-$(sources):
-       $(CC) $(CPPFLAGS) -c  -o ${@:.cpp=.o} ${@}
+$(sources:.cpp=.o):
+       $(CC) $(CPPFLAGS) -c  -o ${@} ${@:.o=.cpp}
 
 .PHONY:clean
 clean:  
@@ -24,7 +24,7 @@ clean:
        $(MAKE) -C instr clean
 
 .PHONY: run
-run: $(PROG)
+run: all
        ./$(PROG) sum.dthex
 
 %.d: %.cpp