goat3d

view converters/ass2goat/Makefile @ 55:af1310ed212b

not done yet
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Jan 2014 14:56:44 +0200
parents
children
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = ass2goat
6 CC = clang
7 CPP = clang -E
8 CFLAGS = -pedantic -Wall -g $(goatinc)
9 LDFLAGS = -lgoat3d -lassimp
11 $(bin): $(obj)
12 $(CC) -o $@ $(obj) $(LDFLAGS)
14 -include $(dep)
16 %.d: %.c
17 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
19 .PHONY: clean
20 clean:
21 rm -f $(obj) $(bin)
23 .PHONY: cleandep
24 cleandep:
25 rm -f $(dep)