From 3d57bb38edf39d50a305559a7ffa634162b867a9 Mon Sep 17 00:00:00 2001 From: Tuan Le Date: Mon, 19 Jul 2010 21:39:19 +0000 Subject: [PATCH] atiopencl makefile for mac os x 10.6 completed svn path=/trunk/boinc/; revision=22007 --- samples/atiopencl/Makefile_mac | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 samples/atiopencl/Makefile_mac diff --git a/samples/atiopencl/Makefile_mac b/samples/atiopencl/Makefile_mac new file mode 100644 index 0000000000..70dece0b21 --- /dev/null +++ b/samples/atiopencl/Makefile_mac @@ -0,0 +1,34 @@ +# makefile for atiopencl BOINC example appication on Mac OS X 10.6 + +BOINC_DIR = ../.. +BOINC_API_DIR = $(BOINC_DIR)/api +BOINC_LIB_DIR = $(BOINC_DIR)/lib +BOINC_BUILD_DIR = $(BOINC_DIR)/mac_build/build/Deployment + +CXXFLAGS = -g \ + -I$(BOINC_DIR) \ + -I$(BOINC_LIB_DIR) \ + -I$(BOINC_API_DIR) \ + -lpthread \ + -L. + +PROGS = atiopencl \ + +all: $(PROGS) + +clean: + /bin/rm -f $(PROGS) *.o + +distclean: + /bin/rm -f $(PROGS) *.o + +install: atiopencl + +atiopencl: atiopencl.o + $(CXX) $(CXXFLAGS) -o atiopencl atiopencl.o \ + -framework OpenCL \ + -lboinc_api -L$(BOINC_BUILD_DIR) \ + -lboinc -L$(BOINC_BUILD_DIR) + +atiopencl.o: atiopencl.cpp atiopencl.hpp + $(CXX) $(CXXFLAGS) -c atiopencl.cpp