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