Newer
Older
fact : main.o run.o
gcc -g -std=c99 -o fact run.o main.o -lpthread
run.o : run.c run.h
gcc -g -std=c99 -o run.o -c run.c -W -Wall -lpthread
gcc -g -std=c99 -o test.o -c test.c -I${HOME}/local/include -W -Wall -lcunit -lpthread
rm -rf test_ex fact *.o *.xml "actual_output.txt" "output.txt"
cpp : run.c test.c
cppcheck --enable=all run.c && cppcheck --enable=all test.c
cpp_xml : run.c
cppcheck --enable=all --inconclusive --xml --xml-version=2 run.c 2> cppcheck.xml
val : fact
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./fact Test_files/input.txt actual_output.txt
valgrind --xml=yes --xml-file="valgrind.xml" --leak-check=yes ./fact Test_files/input.txt actual_output.txt