prng-tests/compile
2024-03-22 12:06:16 +00:00

18 lines
319 B
Bash
Executable File

#!/bin/bash
CC=clang
CFLAGS="-g -Wall -Werror "
XORSHIFT_SRC="xorshift.c ppm.c"
XORSHIFT_OUT=xorshift
echo "Clean outputs dir..."
rm -rf "./outputs/*"
echo -e "\nBuild xorshift generators..."
(set -x ; $CC $CFLAGS $XORSHIFT_SRC -o $XORSHIFT_OUT)
echo -e "\nTest xorshift generators..."
./xorshift
echo "Generated"