Réglé le makefile

This commit is contained in:
2024-11-21 13:24:31 +01:00
parent 09c829ea82
commit 9b89e21cfd

View File

@@ -2,7 +2,7 @@
CC = gcc
# options de compilation
CFLAGS = -Wall -Wextra -Werror
CFLAGS = -Wall -Wextra
LDFLAGS = -lgraph
# nom de l'exécutable
@@ -43,14 +43,8 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
# nettoyage des fichiers objets
clean:
rm -rf $(OBJ_DIR)
# nettoyage complet (fichiers objets et exécutable)
fclean: clean
rm -f $(NAME)
# recompilation complète
re: fclean all
# exécution du programme
run: all
./$(NAME)