istereo

annotate Makefile @ 28:c0ae8e668447

added vmath library
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 08 Sep 2011 08:30:42 +0300
parents 4d25539806d2
children
rev   line source
nuclear@1 1 src = $(wildcard src/*.c)
nuclear@26 2
nuclear@1 3 obj = $(src:.c=.o)
nuclear@26 4 dep = $(obj:.o=.d)
nuclear@1 5 bin = test
nuclear@1 6
nuclear@1 7 CC = gcc
nuclear@26 8 CFLAGS = -pedantic -Wall -g $(incdir)
nuclear@1 9 LDFLAGS = -lGL -lGLU -lglut -lGLEW -lm
nuclear@1 10
nuclear@26 11 include libs/Makefile
nuclear@26 12
nuclear@1 13 $(bin): $(obj)
nuclear@1 14 $(CC) -o $@ $(obj) $(LDFLAGS)
nuclear@1 15
nuclear@26 16 -include $(dep)
nuclear@26 17
nuclear@26 18 %.d: %.c
nuclear@26 19 @$(CPP) $(CFLAGS) -MM -MT $(@:.d=.o) $< >$@
nuclear@26 20
nuclear@26 21
nuclear@1 22 .PHONY: clean
nuclear@1 23 clean:
nuclear@1 24 rm -f $(obj) $(bin)
nuclear@26 25
nuclear@26 26 .PHONY: cleandep
nuclear@26 27 cleandep:
nuclear@26 28 rm -f $(dep)