~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to samples/atiopencl/Makefile

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# makefile for atiopencl BOINC example appication on Linux.
 
2
 
 
3
BOINC_DIR = ../..
 
4
BOINC_API_DIR = $(BOINC_DIR)/api
 
5
BOINC_LIB_DIR = $(BOINC_DIR)/lib 
 
6
 
 
7
CXXFLAGS = -g \
 
8
    -I$(BOINC_DIR) \
 
9
    -I$(BOINC_LIB_DIR) \
 
10
    -I$(BOINC_API_DIR) \
 
11
    -I ../../../ati-stream-sdk-v2.1-lnx32/include \
 
12
    -lpthread \
 
13
    -L.
 
14
 
 
15
PROGS = atiopencl \
 
16
 
 
17
all: $(PROGS)
 
18
 
 
19
libstdc++.a:
 
20
        ln -s `g++ -print-file-name=libstdc++.a`
 
21
 
 
22
clean:
 
23
        /bin/rm -f $(PROGS) *.o libstdc++.a
 
24
 
 
25
distclean:
 
26
        /bin/rm -f $(PROGS) *.o libstdc++.a
 
27
 
 
28
install: atiopencl
 
29
 
 
30
atiopencl: atiopencl.o libstdc++.a
 
31
        $(CXX) $(CXXFLAGS) -o atiopencl atiopencl.o libstdc++.a \
 
32
        -lOpenCL -L../../../ati-stream-sdk-v2.1-lnx32/lib/x86 \
 
33
        -lboinc_api -L$(BOINC_API_DIR) \
 
34
        -lboinc -L$(BOINC_LIB_DIR)
 
35
 
 
36
atiopencl.o: atiopencl.cpp atiopencl.hpp
 
37
        $(CXX) $(CXXFLAGS) -c atiopencl.cpp