mirror of https://github.com/BOINC/boinc.git
atiopencl sample: call boinc_get_opencl_ids() if not stand-alone; improve error messages
svn path=/trunk/boinc/; revision=24388
This commit is contained in:
parent
cb45cec08c
commit
3f8c0a9068
|
@ -1,15 +1,20 @@
|
|||
# makefile for atiopencl BOINC example appication on Mac OS X 10.6
|
||||
# makefile for atiopencl BOINC example appication on Mac OS X 10.7
|
||||
# To build:
|
||||
# cd to the boinc/samples/atiopencl directory
|
||||
# make -f Makefile_mac [clean] all
|
||||
#
|
||||
|
||||
BOINC_DIR = ../..
|
||||
BOINC_API_DIR = $(BOINC_DIR)/api
|
||||
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
||||
BOINC_BUILD_DIR = $(BOINC_DIR)/mac_build/build/Deployment
|
||||
BOINC_MAC_CONFIG_DIR = $(BOINC_DIR)/clientgui/mac
|
||||
|
||||
CXXFLAGS = -g \
|
||||
-I$(BOINC_DIR) \
|
||||
-I$(BOINC_LIB_DIR) \
|
||||
-I$(BOINC_API_DIR) \
|
||||
-lpthread \
|
||||
-I$(BOINC_MAC_CONFIG_DIR) \
|
||||
-L.
|
||||
|
||||
PROGS = atiopencl \
|
||||
|
@ -24,11 +29,15 @@ distclean:
|
|||
|
||||
install: atiopencl
|
||||
|
||||
atiopencl: atiopencl.o
|
||||
atiopencl: atiopencl.o boinc_opencl.o
|
||||
$(CXX) $(CXXFLAGS) -o atiopencl atiopencl.o \
|
||||
boinc_opencl.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
|
||||
$(CXX) $(CXXFLAGS) -c atiopencl.cpp
|
||||
|
||||
boinc_opencl.o: $(BOINC_API_DIR)/boinc_opencl.cpp $(BOINC_API_DIR)/boinc_opencl.h
|
||||
$(CXX) $(CXXFLAGS) -c $(BOINC_API_DIR)/boinc_opencl.cpp
|
||||
|
|
Loading…
Reference in New Issue