clray

annotate Makefile @ 10:2da57bedc550

added vs project
author John Tsiombikas
date Fri, 30 Jul 2010 19:28:18 +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)