tavli
diff Makefile @ 15:b1a195c3ee16
added shaders
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 28 Jun 2015 08:34:24 +0300 |
parents | a0d30f6f20d4 |
children |
line diff
1.1 --- a/Makefile Sun Jun 28 07:44:23 2015 +0300 1.2 +++ b/Makefile Sun Jun 28 08:34:24 2015 +0300 1.3 @@ -1,11 +1,13 @@ 1.4 PREFIX ?= /usr/local 1.5 1.6 src = $(wildcard src/*.cc) 1.7 -obj = $(src:.cc=.o) 1.8 +csrc = $(wildcard src/*.c) 1.9 +obj = $(src:.cc=.o) $(csrc:.c=.o) 1.10 dep = $(obj:.o=.d) 1.11 1.12 bin = tavli 1.13 1.14 +CFLAGS = -pedantic -Wall -g 1.15 CXXFLAGS = -pedantic -Wall -g 1.16 LDFLAGS = $(libgl) -lvmath -limago -lm -lpthread 1.17 1.18 @@ -20,6 +22,9 @@ 1.19 1.20 -include $(dep) 1.21 1.22 +%.d: %.c 1.23 + @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.24 + 1.25 %.d: %.cc 1.26 @$(CPP) $(CXXFLAGS) $< -MM -MT $(@:.d=.o) >$@ 1.27