19 lines
401 B
Bash
19 lines
401 B
Bash
|
|
#!/bin/sh
|
||
|
|
program=$(basename $0 .sh)".out"
|
||
|
|
set -e
|
||
|
|
make test
|
||
|
|
echo
|
||
|
|
#make fclean
|
||
|
|
make
|
||
|
|
echo
|
||
|
|
echo $(basename ${PWD}):
|
||
|
|
if [ ${DEBUG-0} -gt 0 ]; then
|
||
|
|
gcc -Wall -Wextra -Werror -g -fsanitize=address -O1 munit/munit.c munit.c -I munit -L. -lft -o ${program}
|
||
|
|
else
|
||
|
|
gcc -Wall -Wextra -Werror munit/munit.c munit.c -I munit -L. -lft -o ${program}
|
||
|
|
fi
|
||
|
|
./${program} "$@"
|
||
|
|
#make fclean
|
||
|
|
rm -f ${program}
|
||
|
|
rm -fr *.dSYM
|