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
# Date: 22 April 2020
# Date: 23 April 2020
# Course: LEPL1503 - PROJECT3
# Object: factorial
......@@ -8,20 +8,22 @@ CC = gcc
# The option -Werror convert warning into error
FLAGS = -Werror -pthread
#TEST_FLAGS = -I${HOME/local/include} -L${HOME/local/lib -Wall -lcunit
fact: fact.c
$(CC) $(FLAGS) fact.c -o fact -lm
echo Compiler task ended
test:
$(CC) $(FLAGS) fact.c -o fact -lm
#### complete with the unit tests ####
test: Fact_UnitTest.c
gcc -Wall -lcunit -I${HOME}/local/include Fact_UnitTest.c -L${HOME}/local/lib -o Fact_UnitTest -lm
echo "Test completed"
clean: fact
rm fact
#### complete with the rm testing ouput files ####
# rm testing ouput files ####
rm Fact_UnitTest
rm out*.txt
echo "Clean completed"
......@@ -29,5 +31,11 @@ clean: fact
valgrind:
valgrind ./fact
valgrind_test:
valgrind ./Fact_UnitTest
cppcheck:
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