Skip to content
Extraits de code Groupes Projets
Makefile 602 octets
Newer Older
  • Learn to ignore specific revisions
  • Arnaud Lefebvre's avatar
    Arnaud Lefebvre a validé
    # Makefile
    
    fact:
    	gcc fonctions.c main.c -o fact -lm -pthread -W -Wall -Werror -ggdb -std=c99 -std=gnu99
    
    val:
    
    Arnaud Lefebvre's avatar
    Arnaud Lefebvre a validé
    	valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./fact -N 4 test_files/example_input.txt example_output.txt
    
    Arnaud Lefebvre's avatar
    Arnaud Lefebvre a validé
    
    val_xml:
    
    Arnaud Lefebvre's avatar
    Arnaud Lefebvre a validé
    	valgrind --xml=yes --xml-file="valgrind.xml" --leak-check=yes ./fact -N 4 test_files/example_input.txt example_output.txt
    
    Arnaud Lefebvre's avatar
    Arnaud Lefebvre a validé
    
    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
    
    clean:
    	rm -f fact
    	rm -f valgrind.xml
    	rm -f cppcheck.xml
    
    .PHONY: clean