From f1671ba96a63a9e761cd59886695a72f53c76a9b Mon Sep 17 00:00:00 2001 From: Tom Gall Date: Tue, 15 Apr 2014 15:52:06 +0000 Subject: 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. --- build-mali.sh | 20 ++++++++++++++++++++ build.sh | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 build-mali.sh 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 diff --git a/build.sh b/build.sh index 0ec4907..4083d5e 100755 --- a/build.sh +++ b/build.sh @@ -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 -- cgit v1.2.3