istereo

view Makefile @ 39:ff055bff6a15

copyright statements and stuff
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 11 Sep 2011 09:03:18 +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)