|
@@ -2,19 +2,37 @@
|
|
|
# This script is run by Free Oberon on Linux. Current directory of the
|
|
|
# script will be where FreeOberon executable is located. This
|
|
|
# particular script is for graphical programs.
|
|
|
+
|
|
|
cd bin
|
|
|
-VOCDIR=../data/bin/voc/install
|
|
|
-CC=gcc
|
|
|
+
|
|
|
THENAME="${1%.*}"
|
|
|
ONAME="${THENAME##*/}"
|
|
|
+OFRDIR="../data/bin/OfrontPlus/Target/Linux_amd64"
|
|
|
+PATH="$OFRDIR:$PATH"
|
|
|
+CC="gcc"
|
|
|
+
|
|
|
SDL2Opts=`sdl2-config --cflags --libs`
|
|
|
+
|
|
|
shift
|
|
|
-$CC -fPIC -g -I $VOCDIR/C/include \
|
|
|
- -o $ONAME $ONAME.o \
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+$CC -g3 -O0 -fno-exceptions \
|
|
|
+ -I $OFRDIR/../../Mod/Lib \
|
|
|
+ -I $OFRDIR/Lib/Obj \
|
|
|
+ $ONAME.c -o $ONAME \
|
|
|
$@ \
|
|
|
- $VOCDIR/lib/Graph.o $VOCDIR/lib/SDL2.o \
|
|
|
- $VOCDIR/lib/Int.o \
|
|
|
- $VOCDIR/lib/libvoc-OC.a \
|
|
|
+ ../data/bin/libFreeOberon.a \
|
|
|
+ $OFRDIR/Lib/libOfront.a \
|
|
|
$SDL2Opts -lSDL2_image
|
|
|
retcode=$?
|
|
|
cd ..
|