aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/native/mesa-demos-patched/make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/native/mesa-demos-patched/make.sh')
-rw-r--r--src/test/native/mesa-demos-patched/make.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/native/mesa-demos-patched/make.sh b/src/test/native/mesa-demos-patched/make.sh
index 2ad382145..a7926f560 100644
--- a/src/test/native/mesa-demos-patched/make.sh
+++ b/src/test/native/mesa-demos-patched/make.sh
@@ -4,10 +4,14 @@ THISDIR=`pwd`
#eglut/eglut_x11.c \
#eglut/eglut_screen.c \
-gcc -I$THISDIR -I$THISDIR/eglut -o es2gears \
+#DEMO_C=es2gears.c
+#DEMO_C=es2redsquare.c
+DEMO_C=$1
+
+gcc -I$THISDIR -I$THISDIR/eglut -o `basename $DEMO_C .c` \
eglut/eglut.c \
eglut/eglut_x11.c \
-es2gears.c \
+$DEMO_C \
-lX11 \
-lEGL \
-lGLESv2 \