clray

view Makefile @ 9:a09622aaa043

moving to triangles
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 24 Jul 2010 06:28:17 +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)