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