reorganized files and added usage paragraph to readme

This commit is contained in:
cozis
2022-04-25 14:29:30 +02:00
parent 577af0d33b
commit c380c2fcce
8 changed files with 20 additions and 16 deletions
+6 -9
View File
@@ -1,17 +1,14 @@
CC=gcc
FLAGS="-Wall -Wextra"
FLAGS="-Wall -Wextra -Isrc/"
for arg in "$@"
do
case $arg in
--debug) FLAGS="$FLAGS -DDEBUG -g"
;;
--release) FLAGS="$FLAGS -DNDEBUG -O3"
;;
--coverage) FLAGS="$FLAGS -fprofile-arcs -ftest-coverage"
;;
--debug) FLAGS="$FLAGS -DDEBUG -g" ;;
--release) FLAGS="$FLAGS -DNDEBUG -O3" ;;
--coverage) FLAGS="$FLAGS -fprofile-arcs -ftest-coverage" ;;
esac
done
$CC test.c xjson.c -o test $FLAGS
$CC parse-file.c xjson.c -o parse-file $FLAGS
$CC tests/test.c src/xjson.c -o test $FLAGS
$CC examples/parse-file.c src/xjson.c -o parse-file $FLAGS