libs:
$(MAKE) -C instr all
-$(sources):
- $(CC) $(CPPFLAGS) -c -o ${@:.cpp=.o} ${@}
+$(sources:.cpp=.o):
+ $(CC) $(CPPFLAGS) -c -o ${@} ${@:.o=.cpp}
.PHONY:clean
clean:
$(MAKE) -C instr clean
.PHONY: run
-run: $(PROG)
+run: all
./$(PROG) sum.dthex
%.d: %.cpp