Update Makefile with better rules and a clean option

This commit is contained in:
Tom Deakin 2015-07-16 12:30:30 +01:00
parent 9791b7e3d1
commit c8e35d1307

View File

@ -1,3 +1,13 @@
all:
icpc ocl-stream.cpp -framework OpenCL
LIBS = -l OpenCL
PLATFORM = $(shell uname -s)
ifeq ($(PLATFORM), Darwin)
LIBS = -framework OpenCL
endif
gpu-stream-ocl: ocl-stream.cpp
c++ $< -std=c++11 -o $@ $(LIBS)
clean:
rm -f gpu-stream-ocl