clray
view Makefile @ 11:d9a1bab1c3f5
ported to windows
author | John Tsiombikas |
---|---|
date | Sat, 31 Jul 2010 22:23:57 +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)