svn path=/trunk/boinc/; revision=22005

This commit is contained in:
Tuan Le 2010-07-19 20:11:23 +00:00
parent 0b26a28259
commit f5d95ecd53
1 changed files with 7 additions and 45 deletions

View File

@ -2,50 +2,17 @@
BOINC_DIR = ../.. BOINC_DIR = ../..
BOINC_API_DIR = $(BOINC_DIR)/api BOINC_API_DIR = $(BOINC_DIR)/api
BOINC_LIB_DIR = $(BOINC_DIR)/lib BOINC_LIB_DIR = $(BOINC_DIR)/lib
CXXFLAGS = -g \ CXXFLAGS = -g \
-m32 \
-msse2 \
-Wfloat-equal \
-Wpointer-arith \
-DATI_OS_LINUX \
-g3 \
-ffor-scope \
-DAPP_GRAPHICS \
-I$(BOINC_DIR) \ -I$(BOINC_DIR) \
-I$(BOINC_LIB_DIR) \ -I$(BOINC_LIB_DIR) \
-I$(BOINC_API_DIR) \ -I$(BOINC_API_DIR) \
-L /usr/X11R6/lib \ -I ../../../ati-stream-sdk-v2.1-lnx32/include \
-L.
CXXFLAGS2 = -g \
-m32 \
-lpthread \ -lpthread \
-ldl \
-L /usr/X11R6/lib \
-lOpenCL \ -lOpenCL \
-DAPP_GRAPHICS \
-I$(BOINC_DIR) \
-I$(BOINC_LIB_DIR) \
-I$(BOINC_API_DIR) \
-L ../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \
-L ../../../ati-stream-sdk-v2.1-lnx32/TempSDKUtil/lib/x86 \
-L. -L.
# the following should be freeglut; use nm to check
# you may have to change the paths for your system
ifeq ($(wildcard /usr/local/lib/libglut.a),)
LIBGLUT = /usr/lib/libglut.a
LIBGLU = /usr/lib/libGLU.a
LIBJPEG = /usr/lib/libjpeg.a
else
LIBGLUT = /usr/local/lib/libglut.a
LIBGLU = /usr/local/lib/libGLU.a
LIBJPEG = /usr/local/lib/libjpeg.a
endif
PROGS = atiopencl \ PROGS = atiopencl \
all: $(PROGS) all: $(PROGS)
@ -61,15 +28,10 @@ distclean:
install: atiopencl install: atiopencl
# specify library paths explicitly (rather than -l) atiopencl: atiopencl.o libstdc++.a
# because otherwise you might get a version in /usr/lib etc. $(CXX) $(CXXFLAGS) -o atiopencl atiopencl.o libstdc++.a \
-lboinc_api -L$(BOINC_API_DIR) \
atiopencl: atiopencl.o libstdc++.a $(BOINC_API_DIR)/libboinc_api.a $(BOINC_LIB_DIR)/libboinc.a -lboinc -L$(BOINC_LIB_DIR)
$(CXX) $(CXXFLAGS2) -o atiopencl atiopencl.o libstdc++.a -pthread \
$(BOINC_API_DIR)/libboinc_api.a \
$(BOINC_LIB_DIR)/libboinc.a
atiopencl.o: atiopencl.cpp atiopencl.hpp atiopencl.o: atiopencl.cpp atiopencl.hpp
$(CXX) $(CXXFLAGS) -c atiopencl.cpp \ $(CXX) $(CXXFLAGS) -c atiopencl.cpp
-I ../../../ati-stream-sdk-v2.1-lnx32/include \
-I ../../../ati-stream-sdk-v2.1-lnx32/samples/opencl/SDKUtil