diff options
Diffstat (limited to 'build_and_test.sh')
-rw-r--r-- | build_and_test.sh | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/build_and_test.sh b/build_and_test.sh index 5a96b0a..46f8661 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -9,7 +9,7 @@ EXE_POSTFIX= FLAGS= FLAG_OBJ="-c -o " FLAG_EXE="-o " -LINK_FLAGS= +LINK_FLAGS="-lm -lX11 -lXi -lXcursor -lGL" if [ "$2" = "gcc" ]; then COMPILE=gcc @@ -110,10 +110,19 @@ fi echo "" +echo "Build saw" +$COMPILE ${FLAGS} \ + ${FLAG_EXE}"build/saw${EXE_POSTFIX}" \ + "source/saw/_exe.c" \ + ${LINK_FLAGS} +if [ $? -ne 0 ]; then + exit 1 +fi + echo "Build saw_test_suite" $COMPILE ${FLAGS} \ ${FLAG_EXE}"build/saw_test_suite${EXE_POSTFIX}" \ - "source/tests/_static.c" \ + "source/tests/_exe.c" \ ${LINK_FLAGS} if [ $? -ne 0 ]; then exit 1 |