2013-03-04 11:54:12 +00:00
|
|
|
# makefile for openclapp BOINC example appication on Mac OS X 10.7
|
2011-10-13 10:54:48 +00:00
|
|
|
# To build:
|
2013-03-04 11:54:12 +00:00
|
|
|
# cd to the boinc/samples/openclapp directory
|
2011-10-13 10:54:48 +00:00
|
|
|
# make -f Makefile_mac [clean] all
|
|
|
|
#
|
2010-07-19 21:39:19 +00:00
|
|
|
|
2013-03-04 11:54:12 +00:00
|
|
|
|
2010-07-19 21:39:19 +00:00
|
|
|
BOINC_DIR = ../..
|
|
|
|
BOINC_API_DIR = $(BOINC_DIR)/api
|
|
|
|
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
|
|
|
BOINC_BUILD_DIR = $(BOINC_DIR)/mac_build/build/Deployment
|
2011-10-13 10:54:48 +00:00
|
|
|
BOINC_MAC_CONFIG_DIR = $(BOINC_DIR)/clientgui/mac
|
2010-07-19 21:39:19 +00:00
|
|
|
|
|
|
|
CXXFLAGS = -g \
|
|
|
|
-I$(BOINC_DIR) \
|
|
|
|
-I$(BOINC_LIB_DIR) \
|
|
|
|
-I$(BOINC_API_DIR) \
|
2013-03-04 11:54:12 +00:00
|
|
|
-I$(BOINC_MAC_CONFIG_DIR)
|
2010-07-19 21:39:19 +00:00
|
|
|
|
2013-03-04 11:54:12 +00:00
|
|
|
PROGS = openclapp \
|
2010-07-19 21:39:19 +00:00
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f $(PROGS) *.o
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
/bin/rm -f $(PROGS) *.o
|
|
|
|
|
2013-03-04 11:54:12 +00:00
|
|
|
install: openclapp
|
2010-07-19 21:39:19 +00:00
|
|
|
|
2013-03-04 11:54:12 +00:00
|
|
|
openclapp: openclapp.o boinc_opencl.o
|
|
|
|
$(CXX) $(CXXFLAGS) -o openclapp openclapp.o \
|
2011-10-13 10:54:48 +00:00
|
|
|
boinc_opencl.o \
|
2010-07-19 21:39:19 +00:00
|
|
|
-framework OpenCL \
|
|
|
|
-lboinc_api -L$(BOINC_BUILD_DIR) \
|
|
|
|
-lboinc -L$(BOINC_BUILD_DIR)
|
|
|
|
|
2013-03-04 11:54:12 +00:00
|
|
|
openclapp.o: openclapp.cpp openclapp.hpp
|
|
|
|
$(CXX) $(CXXFLAGS) -c openclapp.cpp
|
2011-10-13 10:54:48 +00:00
|
|
|
|
|
|
|
boinc_opencl.o: $(BOINC_API_DIR)/boinc_opencl.cpp $(BOINC_API_DIR)/boinc_opencl.h
|
|
|
|
$(CXX) $(CXXFLAGS) -c $(BOINC_API_DIR)/boinc_opencl.cpp
|