From 4b0e8203021cf3cddcd8b97e13f91253b3351297 Mon Sep 17 00:00:00 2001 From: pm240836 Date: Mon, 20 Apr 2026 11:10:47 +0000 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20du=20MakeFile,=20attention=20?= =?UTF-8?q?=C3=A0=20tester=20!=20J'ai=20repris=20nos=20r=C3=A9c=C3=A9dent?= =?UTF-8?q?=20code=20du=20m=C3=AAme=20type=20fait=20en=20cours?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MakeFile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 MakeFile diff --git a/MakeFile b/MakeFile new file mode 100644 index 0000000..080d315 --- /dev/null +++ b/MakeFile @@ -0,0 +1,23 @@ +CC = gcc +CFLAGS = -Wall -Wextra -O3 +LDFLAGS = -pthread + +# Fichiers sources et objets +SRC = main.c puzzle.c +OBJ = $(SRC:.c=.o) +EXEC = calendrier_solution + +# Règle par défaut +all: $(EXEC) + +# Création de l'exécutable +$(EXEC): $(OBJ) + $(CC) -o $@ $^ $(LDFLAGS) + +# Compilation des fichiers .c en .o +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + +# Nettoyage des fichiers générés +clean: + rm -f $(OBJ) $(EXEC) -- GitLab