tavli
diff Makefile @ 6:a0d30f6f20d4
- texture coordinate generation in class Mesh
- wood texture
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 26 Jun 2015 04:22:06 +0300 |
parents | 3fcd7b4d631f |
children | b1a195c3ee16 |
line diff
1.1 --- a/Makefile Thu Jun 25 20:43:34 2015 +0300 1.2 +++ b/Makefile Fri Jun 26 04:22:06 2015 +0300 1.3 @@ -2,6 +2,7 @@ 1.4 1.5 src = $(wildcard src/*.cc) 1.6 obj = $(src:.cc=.o) 1.7 +dep = $(obj:.o=.d) 1.8 1.9 bin = tavli 1.10 1.11 @@ -17,10 +18,19 @@ 1.12 $(bin): $(obj) 1.13 $(CXX) -o $@ $(obj) $(LDFLAGS) 1.14 1.15 +-include $(dep) 1.16 + 1.17 +%.d: %.cc 1.18 + @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.19 + 1.20 .PHONY: clean 1.21 clean: 1.22 rm -f $(obj) $(bin) 1.23 1.24 +.PHONY: cleandep 1.25 +cleandep: 1.26 + rm -f $(dep) 1.27 + 1.28 .PHONY: install 1.29 install: $(bin) 1.30 mkdir -p $(PREFIX)/bin