tinygi
annotate Makefile @ 2:72752a1b3dbe
images and shapes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Jul 2015 04:30:00 +0300 |
parents | 16fdca2a1ef5 |
children |
rev | line source |
---|---|
nuclear@0 | 1 src = $(wildcard src/*.c) |
nuclear@0 | 2 obj = $(src:.c=.o) |
nuclear@0 | 3 dep = $(obj:.o=.d) |
nuclear@0 | 4 |
nuclear@0 | 5 bin = tgi |
nuclear@0 | 6 |
nuclear@0 | 7 CFLAGS = -pedantic -Wall -g |
nuclear@2 | 8 LDFLAGS = -lvmath -lm |
nuclear@0 | 9 |
nuclear@0 | 10 $(bin): $(obj) |
nuclear@0 | 11 $(CC) -o $@ $(obj) $(LDFLAGS) |
nuclear@0 | 12 |
nuclear@0 | 13 -include $(dep) |
nuclear@0 | 14 |
nuclear@0 | 15 %.d: %.c |
nuclear@0 | 16 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@ |
nuclear@0 | 17 |
nuclear@0 | 18 .PHONY: clean |
nuclear@0 | 19 clean: |
nuclear@0 | 20 rm -f $(obj) $(bin) |
nuclear@0 | 21 |
nuclear@0 | 22 .PHONY: cleandep |
nuclear@0 | 23 cleandep: |
nuclear@0 | 24 rm -f $(dep) |