Update compile script

This commit is contained in:
Abdelrahman Said 2024-03-22 12:20:49 +00:00
parent a6f0bf93d9
commit b8ce449e99

View File

@ -6,12 +6,12 @@ CFLAGS="-g -Wall -Werror "
XORSHIFT_SRC="xorshift.c ppm.c" XORSHIFT_SRC="xorshift.c ppm.c"
XORSHIFT_OUT=xorshift XORSHIFT_OUT=xorshift
echo "Clean outputs dir..." echo "Cleaning outputs dir..."
rm -rf "./outputs/*" rm -rf "./outputs/*"
echo -e "\nBuild xorshift generators..." echo -e "\nBuilding xorshift generators..."
(set -x ; $CC $CFLAGS $XORSHIFT_SRC -o $XORSHIFT_OUT) (set -x ; $CC $CFLAGS $XORSHIFT_SRC -o $XORSHIFT_OUT)
echo -e "\nTest xorshift generators..." echo -e "\nTesting xorshift generators..."
./xorshift ./xorshift
echo "Generated" echo "Generated"