istereo
diff Makefile @ 26:862a3329a8f0
wohooo, added a shitload of code from zlib/libpng/libjpeg. When the good lord was raining shared libraries the iphone held a fucking umbrella...
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Thu, 08 Sep 2011 06:28:38 +0300 |
parents | 4d25539806d2 |
children |
line diff
1.1 --- a/Makefile Thu Sep 08 04:23:56 2011 +0300 1.2 +++ b/Makefile Thu Sep 08 06:28:38 2011 +0300 1.3 @@ -1,14 +1,28 @@ 1.4 src = $(wildcard src/*.c) 1.5 + 1.6 obj = $(src:.c=.o) 1.7 +dep = $(obj:.o=.d) 1.8 bin = test 1.9 1.10 CC = gcc 1.11 -CFLAGS = -pedantic -Wall -g 1.12 +CFLAGS = -pedantic -Wall -g $(incdir) 1.13 LDFLAGS = -lGL -lGLU -lglut -lGLEW -lm 1.14 1.15 +include libs/Makefile 1.16 + 1.17 $(bin): $(obj) 1.18 $(CC) -o $@ $(obj) $(LDFLAGS) 1.19 1.20 +-include $(dep) 1.21 + 1.22 +%.d: %.c 1.23 + @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@ 1.24 + 1.25 + 1.26 .PHONY: clean 1.27 clean: 1.28 rm -f $(obj) $(bin) 1.29 + 1.30 +.PHONY: cleandep 1.31 +cleandep: 1.32 + rm -f $(dep)