istereo

view Makefile @ 40:9e8fb79fd959

converted to xcode 4 created xcodebuild makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 19 Feb 2012 17:25:41 +0200
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)