Skip to content
Extraits de code Groupes Projets
Valider b18340ad rédigé par Giovanna Stefanelli's avatar Giovanna Stefanelli
Parcourir les fichiers

Update Makefile.c

parent acb9752c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Pipeline #4974 réussi
# Group: Q6 - gs # Group: Q6 - gs
# Date: 22 April 2020 # Date: 23 April 2020
# Course: LEPL1503 - PROJECT3 # Course: LEPL1503 - PROJECT3
# Object: factorial # Object: factorial
...@@ -8,20 +8,22 @@ CC = gcc ...@@ -8,20 +8,22 @@ CC = gcc
# The option -Werror convert warning into error # The option -Werror convert warning into error
FLAGS = -Werror -pthread FLAGS = -Werror -pthread
#TEST_FLAGS = -I${HOME/local/include} -L${HOME/local/lib -Wall -lcunit
fact: fact.c fact: fact.c
$(CC) $(FLAGS) fact.c -o fact -lm $(CC) $(FLAGS) fact.c -o fact -lm
echo Compiler task ended echo Compiler task ended
test: test: Fact_UnitTest.c
$(CC) $(FLAGS) fact.c -o fact -lm gcc -Wall -lcunit -I${HOME}/local/include Fact_UnitTest.c -L${HOME}/local/lib -o Fact_UnitTest -lm
#### complete with the unit tests ####
echo "Test completed" echo "Test completed"
clean: fact clean: fact
rm fact rm fact
#### complete with the rm testing ouput files #### # rm testing ouput files ####
rm Fact_UnitTest
rm out*.txt rm out*.txt
echo "Clean completed" echo "Clean completed"
...@@ -29,5 +31,11 @@ clean: fact ...@@ -29,5 +31,11 @@ clean: fact
valgrind: valgrind:
valgrind ./fact valgrind ./fact
valgrind_test:
valgrind ./Fact_UnitTest
cppcheck: cppcheck:
cppcheck ./fact cppcheck ./fact
cppcheck_test:
cppcheck ./Fact_UnitTest
\ No newline at end of file
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