qvolray
view Makefile @ 10:9d2396738b60
GL_RGBA32F -> GL_RGBA32F_ARB
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 08 Apr 2012 14:31:03 +0300 |
parents | b050ce167ff1 |
children | 8990b5d2c7fe |
line source
1 src = $(wildcard src/*.c)
2 obj = $(src:.c=.o)
3 dep = $(obj:.o=.d)
4 bin = volray
6 CC = gcc
7 CFLAGS = -pedantic -Wall -g $(incdir)
8 LDFLAGS = $(libdir) $(libgl) -limago -lvmath -lm
10 ifeq ($(shell uname -s), Darwin)
11 libgl = -framework OpenGL -framework GLUT -lGLEW
12 incdir = -I/opt/local/include
13 libdir = -L/opt/local/lib
14 else
15 libgl = -lGL -lglut -lGLEW
16 endif
18 $(bin): $(obj)
19 $(CC) -o $@ $(obj) $(LDFLAGS)
21 -include $(dep)
23 %.d: %.c
24 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
26 .PHONY: clean
27 clean:
28 rm -f $(obj) $(bin)