Newer
Older
gcc fonctions.c main.c -o fact -lm -pthread -W -Wall -Werror -std=c99 -std=gnu99
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./fact -N 4 example_input.txt example_output.txt
valgrind --xml=yes --xml-file="valgrind.xml" --leak-check=yes ./fact -N 4 example_input.txt example_output.txt
cpp:
cppcheck --enable=all functions.c main.c
cpp_xml:
cppcheck --enable=all --inconclusive --xml --xml-version=2 fonctions.c main.c 2> cppcheck.xml
test:
gcc fonctions.c test.c -o test -lcunit -lpthread
clean:
rm -f fact
rm -f valgrind.xml
rm -f cppcheck.xml