clray

diff Makefile @ 8:deaf85acf6af

interactive spheres
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 23 Jul 2010 19:48:43 +0100
parents 88ac4eb2d18a
children 85fd61f374d9
line diff
     1.1 --- a/Makefile	Fri Jul 23 01:22:03 2010 +0100
     1.2 +++ b/Makefile	Fri Jul 23 19:48:43 2010 +0100
     1.3 @@ -4,7 +4,15 @@
     1.4  
     1.5  CXX = g++
     1.6  CXXFLAGS = -pedantic -Wall -g
     1.7 -LDFLAGS = -framework OpenGL -framework GLUT -framework OpenCL
     1.8 +LDFLAGS = $(libgl) $(libcl)
     1.9 +
    1.10 +ifeq ($(shell uname -s), Darwin)
    1.11 +	libgl = -framework OpenGL -framework GLUT
    1.12 +	libcl = -framework OpenCL
    1.13 +else
    1.14 +	libgl = -lGL -lglut
    1.15 +	libcl = -lOpenCL
    1.16 +endif
    1.17  
    1.18  $(bin): $(obj)
    1.19  	$(CXX) -o $@ $(obj) $(LDFLAGS)