Commit 946cc8e0a65bed01ca2217a2efeaf3c9fd4fc23e
1 parent
0f6db57b
ajout du makefile
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +EXEC=compteur_erreurs | ||
2 | +CC = gcc | ||
3 | +CFLAGS = -Wall -Wextra -O0 -g | ||
4 | + | ||
5 | +all : ${EXEC} | ||
6 | + | ||
7 | +${EXEC}: main.o tree.o | ||
8 | + $(CC) -o $@ $^ $(CFLAGS) | ||
9 | + | ||
10 | +main.o : main.c | ||
11 | + $(CC) -c $< $(CFLAGS) | ||
12 | + | ||
13 | +arbre.o : tree.c | ||
14 | + $(CC) -c $< $(CFLAGS) | ||
15 | + | ||
16 | +clean : | ||
17 | + rm -rf *.o | ||
0 | \ No newline at end of file | 18 | \ No newline at end of file |