From c844a99a69ba9e65b3e27a1ea87ca95d42bea886 Mon Sep 17 00:00:00 2001
From: Arnaud Lefebvre <arnaud.lefebvre@student.uclouvain.be>
Date: Wed, 13 May 2020 10:53:18 +0200
Subject: [PATCH] Upload New File

---
 Code_With_Threads/Makefile | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 Code_With_Threads/Makefile

diff --git a/Code_With_Threads/Makefile b/Code_With_Threads/Makefile
new file mode 100644
index 0000000..5e48bb1
--- /dev/null
+++ b/Code_With_Threads/Makefile
@@ -0,0 +1,24 @@
+# Makefile
+
+fact:
+	gcc fonctions.c main.c -o fact -lm -pthread -W -Wall -Werror -ggdb -std=c99 -std=gnu99
+
+val:
+	valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes ./fact -N 4 example_input.txt example_output.txt
+
+val_xml:
+	valgrind --xml=yes --xml-file="valgrind.xml" --leak-check=yes ./fact -N 4 example_input.txt example_output.txt
+
+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
+	rm "example_output.txt"
+
+.PHONY: clean
\ No newline at end of file
-- 
GitLab