istereo

view Makefile @ 29:fb4c9641059f

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