2010-07-19 18:43:19 +00:00
|
|
|
# makefile for atiopencl BOINC example appication on Linux.
|
|
|
|
|
|
|
|
BOINC_DIR = ../..
|
|
|
|
BOINC_API_DIR = $(BOINC_DIR)/api
|
2010-07-19 20:11:23 +00:00
|
|
|
BOINC_LIB_DIR = $(BOINC_DIR)/lib
|
2010-07-19 18:43:19 +00:00
|
|
|
|
|
|
|
CXXFLAGS = -g \
|
|
|
|
-I$(BOINC_DIR) \
|
|
|
|
-I$(BOINC_LIB_DIR) \
|
|
|
|
-I$(BOINC_API_DIR) \
|
2010-07-19 20:11:23 +00:00
|
|
|
-I ../../../ati-stream-sdk-v2.1-lnx32/include \
|
2010-07-19 18:43:19 +00:00
|
|
|
-lpthread \
|
|
|
|
-L.
|
|
|
|
|
|
|
|
PROGS = atiopencl \
|
|
|
|
|
|
|
|
all: $(PROGS)
|
|
|
|
|
|
|
|
libstdc++.a:
|
|
|
|
ln -s `g++ -print-file-name=libstdc++.a`
|
|
|
|
|
|
|
|
clean:
|
|
|
|
/bin/rm -f $(PROGS) *.o libstdc++.a
|
|
|
|
|
|
|
|
distclean:
|
|
|
|
/bin/rm -f $(PROGS) *.o libstdc++.a
|
|
|
|
|
|
|
|
install: atiopencl
|
|
|
|
|
2010-07-19 20:11:23 +00:00
|
|
|
atiopencl: atiopencl.o libstdc++.a
|
|
|
|
$(CXX) $(CXXFLAGS) -o atiopencl atiopencl.o libstdc++.a \
|
2010-07-19 20:28:39 +00:00
|
|
|
-lOpenCL -L../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \
|
2010-07-19 20:11:23 +00:00
|
|
|
-lboinc_api -L$(BOINC_API_DIR) \
|
|
|
|
-lboinc -L$(BOINC_LIB_DIR)
|
2010-07-19 18:43:19 +00:00
|
|
|
|
|
|
|
atiopencl.o: atiopencl.cpp atiopencl.hpp
|
2010-07-19 20:11:23 +00:00
|
|
|
$(CXX) $(CXXFLAGS) -c atiopencl.cpp
|