Skip to content
Extraits de code Groupes Projets
Valider 5c7a1681 rédigé par Laurent Paucot's avatar Laurent Paucot
Parcourir les fichiers

improved makefile

parent 5a6d13d6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #2062 réussi
......@@ -2,6 +2,8 @@ all : run
run : run.o test.o
gcc -g -o run run.o test.o -I${HOME}/local/include -lcunit -L${HOME}/local/lib
run.o : run.c
......@@ -13,7 +15,7 @@ test.o : test.c run.h
clean :
rm -rf *.o
rm -rf *.o *.xml
mrproper: clean
rm -rf run
......@@ -21,8 +23,14 @@ mrproper: clean
prog : run
./run
val : run
valgrind ./run
val_make : run
valgrind --leak-check=full ./run
cpp_make : run.c
cppcheck run.c
val_xml : run
valgrind --xml=yes --xml-file="valgrind.xml" --leak-check=yes ./run
cpp : run.c
cppcheck run.c
\ No newline at end of file
cpp_xml : run.c
cppcheck --enable=all --inconclusive --xml --xml-version=2 run.c 2> cppcheck.xml
\ No newline at end of file
# lepl1503-2020-groupe-M2
Pour compiler et exécuter (tester) le programme : make prog mrproper
Pour compiler et exécuter (tester) le programme : make prog
Pour compiler et effectuer une analyse avec "Valgrind" : make val mrproper
Pour compiler et effectuer une analyse avec "Valgrind" : make val_make
Pour compiler et effctuer une analyse avec "cppcheck" : make cpp
Pour compiler et obtenir l'analyse .xml de "Valgrind" : make val_xml
Pour compiler et effctuer une analyse avec "cppcheck" : make cpp_make
Pour compiler et obtenir l'analyse .xml de "cppcheck" : make cpp_xml
Pour nettoyer les fichiers .o et .xml : make mrproper
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter