metasurf

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/examples/volume/Makefile	Tue Oct 25 13:30:03 2011 +0300
     1.3 @@ -0,0 +1,34 @@
     1.4 +src = $(wildcard src/*.c)
     1.5 +obj = $(src:.c=.o)
     1.6 +dep = $(obj:.o=.d)
     1.7 +bin = volume
     1.8 +
     1.9 +# uncomment the following line to disable shaders (for old systems like SGI or whatever)
    1.10 +#nosdr = -DNO_SHADERS
    1.11 +
    1.12 +CC = gcc
    1.13 +CFLAGS = -pedantic -Wall -g -I../../src $(nosdr)
    1.14 +LDFLAGS = -L../.. -lmetasurf $(libgl) -limago
    1.15 +
    1.16 +ifeq ($(shell uname -s), Darwin)
    1.17 +	libgl = -framework OpenGL -framework GLUT -lGLEW
    1.18 +else
    1.19 +	libgl = -lGL -lGLU -lglut -lGLEW
    1.20 +endif
    1.21 +
    1.22 +$(bin): $(obj)
    1.23 +	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.24 +
    1.25 +-include $(dep)
    1.26 +
    1.27 +%.d: %.c
    1.28 +	@$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
    1.29 +
    1.30 +.PHONY: clean
    1.31 +clean:
    1.32 +	rm -f $(obj) $(bin)
    1.33 +
    1.34 +
    1.35 +.PHONY: cleandep
    1.36 +cleandep:
    1.37 +	rm -f $(dep)