From 946cc8e0a65bed01ca2217a2efeaf3c9fd4fc23e Mon Sep 17 00:00:00 2001 From: Thorsieger Date: Wed, 1 May 2019 20:18:38 +0200 Subject: [PATCH] ajout du makefile --- makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+), 0 deletions(-) create mode 100644 makefile diff --git a/makefile b/makefile new file mode 100644 index 0000000..87bf7d6 --- /dev/null +++ b/makefile @@ -0,0 +1,17 @@ +EXEC=compteur_erreurs +CC = gcc +CFLAGS = -Wall -Wextra -O0 -g + +all : ${EXEC} + +${EXEC}: main.o tree.o + $(CC) -o $@ $^ $(CFLAGS) + +main.o : main.c + $(CC) -c $< $(CFLAGS) + +arbre.o : tree.c + $(CC) -c $< $(CFLAGS) + +clean : + rm -rf *.o \ No newline at end of file -- libgit2 0.21.2