clray

view 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 source
1 src = $(wildcard src/*.cc)
2 obj = $(src:.cc=.o)
3 bin = test
5 CXX = g++
6 CXXFLAGS = -pedantic -Wall -g
7 LDFLAGS = $(libgl) $(libcl)
9 ifeq ($(shell uname -s), Darwin)
10 libgl = -framework OpenGL -framework GLUT
11 libcl = -framework OpenCL
12 else
13 libgl = -lGL -lglut
14 libcl = -lOpenCL
15 endif
17 $(bin): $(obj)
18 $(CXX) -o $@ $(obj) $(LDFLAGS)
20 .PHONY: clean
21 clean:
22 rm -f $(obj) $(bin)