diff options
author | Tom Gall <tom.gall@linaro.org> | 2014-04-15 15:52:06 +0000 |
---|---|---|
committer | Tom Gall <tom.gall@linaro.org> | 2014-04-15 15:52:06 +0000 |
commit | f1671ba96a63a9e761cd59886695a72f53c76a9b (patch) | |
tree | 58635cb1f38aa8bd6bf4e65cc06b4c3f9f58bd55 | |
parent | 53a45813e8c4e4918c160c14f0373e07166afd2b (diff) |
Put the build for mali into it's own shell script for now
and change the default build script to use a standard opencl install.
-rwxr-xr-x | build-mali.sh | 20 | ||||
-rwxr-xr-x | build.sh | 4 |
2 files changed, 22 insertions, 2 deletions
diff --git a/build-mali.sh b/build-mali.sh new file mode 100755 index 0000000..0ec4907 --- /dev/null +++ b/build-mali.sh @@ -0,0 +1,20 @@ +#! /bin/bash + +# -D options +# OPENCL_DEBUG +# USE_DOUBLES +# USE_INT64 + +#gcc -g -c vm-opencl.c -o vm-opencl.o +# gcc -g -c select-opencl.c -o select-opencl.o +gcc -g -c sq-cl.c -o sq-cl.o +gcc -g -c sqlite3.c -o sqlite3.o +gcc -g -c time-stamp.c -o time-stamp.o +# +gcc -g -o sq-cl.dbg *.o -L/mali/x11 -lOpenCL -lmali -lpthread -ldl -lm -lc + +gcc -O2 -c sq-cl.c -o sq-cl.o +gcc -O2 -c sqlite3.c -o sqlite3.o +gcc -O2 -c time-stamp.c -o time-stamp.o +# +gcc -O2 -o sq-cl *.o -L/mali/x11 -lOpenCL -lmali -lpthread -ldl -lm -lc @@ -11,10 +11,10 @@ gcc -g -c sq-cl.c -o sq-cl.o gcc -g -c sqlite3.c -o sqlite3.o gcc -g -c time-stamp.c -o time-stamp.o # -gcc -g -o sq-cl.dbg *.o -L/mali/x11 -lOpenCL -lmali -lpthread -ldl -lm -lc +gcc -g -o sq-cl.dbg *.o -lOpenCL -lpthread -ltinfo -lz -ldl -lm -lrt -lc gcc -O2 -c sq-cl.c -o sq-cl.o gcc -O2 -c sqlite3.c -o sqlite3.o gcc -O2 -c time-stamp.c -o time-stamp.o # -gcc -O2 -o sq-cl *.o -L/mali/x11 -lOpenCL -lmali -lpthread -ldl -lm -lc +gcc -O2 -o sq-cl *.o -lOpenCL -lpthread -lz -ltinfo -ldl -lm -lrt -lc |