metasurf

view examples/volume/Makefile @ 3:52664d3451ad

added volume rendering example
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Oct 2011 13:30:03 +0300
parents
children dedd153d2ceb
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = volume
6 # uncomment the following line to disable shaders (for old systems like SGI or whatever)
7 #nosdr = -DNO_SHADERS
9 CC = gcc
10 CFLAGS = -pedantic -Wall -g -I../../src $(nosdr)
11 LDFLAGS = -L../.. -lmetasurf $(libgl) -limago
13 ifeq ($(shell uname -s), Darwin)
14 libgl = -framework OpenGL -framework GLUT -lGLEW
15 else
16 libgl = -lGL -lGLU -lglut -lGLEW
17 endif
19 $(bin): $(obj)
20 $(CC) -o $@ $(obj) $(LDFLAGS)
22 -include $(dep)
24 %.d: %.c
25 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
27 .PHONY: clean
28 clean:
29 rm -f $(obj) $(bin)
32 .PHONY: cleandep
33 cleandep:
34 rm -f $(dep)