From 548905233814931173683ddea728d28b0ffc426a Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 21:39:11 +1000 Subject: Move the object files out of the source directory. Should do a proper out of tree build later, this is just quick and dirty for now. --- .gitignore | 3 +-- LuaSL/build.sh | 13 +++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 5235e94..f9743a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ *.edj *.o -LuaSL/src/LuaSL - +LuaSL/LuaSL diff --git a/LuaSL/build.sh b/LuaSL/build.sh index 206f3c0..29558dd 100755 --- a/LuaSL/build.sh +++ b/LuaSL/build.sh @@ -1,9 +1,10 @@ #! /bin/bash -cd src export LOCALDIR=`pwd` +cd src + if [ -d "/opt/e17" ] then export E17DIR="/opt/e17" @@ -13,7 +14,7 @@ fi # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. -CFLAGS="-g -Wall -I include -I $LOCALDIR" +CFLAGS="-g -Wall -I include -I $LOCALDIR/src" CFLAGS="$CFLAGS -I $E17DIR/include/eina-1" CFLAGS="$CFLAGS -I $E17DIR/include/eina-1/eina" CFLAGS="$CFLAGS -I $E17DIR/include/eet-1" @@ -51,20 +52,20 @@ names="LuaSL_main LuaSL_utilities" EDJE_FLAGS="-id images -fd fonts" rm -f LuaSL *.o *.edj -command="edje_cc $EDJE_FLAGS LuaSL.edc LuaSL.edj" +command="edje_cc $EDJE_FLAGS LuaSL.edc ../LuaSL.edj" echo $command $command objects="" for i in $names do - command="gcc $CFLAGS -c -o $i.o $i.c" + command="gcc $CFLAGS -c -o ../$i.o $i.c" echo $command $command - objects="$objects $i.o" + objects="$objects ../$i.o" done -command="gcc $CFLAGS -o LuaSL $objects $LDFLAGS $libs" +command="gcc $CFLAGS -o ../LuaSL $objects $LDFLAGS $libs" echo $command $command -- cgit v1.1