clray
diff Makefile @ 0:5767277e049f
first test works, let's try to make a raytracer now...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 12 Jul 2010 05:56:47 +0300 |
parents | |
children | 88ac4eb2d18a |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Mon Jul 12 05:56:47 2010 +0300 1.3 @@ -0,0 +1,14 @@ 1.4 +src = $(wildcard src/*.cc) 1.5 +obj = $(src:.cc=.o) 1.6 +bin = test 1.7 + 1.8 +CXX = g++ 1.9 +CXXFLAGS = -pedantic -Wall -g 1.10 +LDFLAGS = -framework OpenCL 1.11 + 1.12 +$(bin): $(obj) 1.13 + $(CXX) -o $@ $(obj) $(LDFLAGS) 1.14 + 1.15 +.PHONY: clean 1.16 +clean: 1.17 + rm -f $(obj) $(bin)