coeng
diff Makefile @ 6:2f872a179914
first component test:
- prs, xform, physics components with dependencies
- topological sort of components to update them in the correct order
- debug visualization component
todo: remove draw() from components, doesn't make sense
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 14 Feb 2015 07:27:12 +0200 |
parents | 49a2e70ac455 |
children | 8cce82794f90 |
line diff
1.1 --- a/Makefile Sat Feb 14 01:35:42 2015 +0200 1.2 +++ b/Makefile Sat Feb 14 07:27:12 2015 +0200 1.3 @@ -1,5 +1,6 @@ 1.4 ccsrc = $(wildcard src/*.cc) 1.5 obj = $(ccsrc:.cc=.o) 1.6 +dep = $(obj:.o=.d) 1.7 bin = test 1.8 1.9 warn = -pedantic -Wall 1.10 @@ -18,6 +19,15 @@ 1.11 $(bin): $(obj) 1.12 $(CXX) -o $@ $(obj) $(LDFLAGS) 1.13 1.14 +-include $(dep) 1.15 + 1.16 +%.d: %.cc 1.17 + @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.18 + 1.19 .PHONY: clean 1.20 clean: 1.21 rm -f $(obj) $(bin) 1.22 + 1.23 +.PHONY: cleandep 1.24 +cleandep: 1.25 + rm -f $(dep)