From 998974c177df16705c917ddb5f63b8f2fe2d4c2a Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Wed, 5 Apr 2023 10:47:24 +0200 Subject: [PATCH] Makefile cleanup, comments, style --- Makefile | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/Makefile b/Makefile index 387bbc0..19e75ed 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,18 @@ -SRC = main.c \ - io.c \ - parsing.c \ - parsing_simple.c \ - solution.c \ - printing.c \ - map_helpers.c \ - ft_string.c \ +SRC = \ + main.c \ + io.c \ + parsing.c \ + parsing_simple.c \ + solution.c \ + printing.c \ + map_helpers.c \ + ft_string.c \ -HEADERS = parsing.h \ - printing.h \ - solution.h \ - ft_string.h \ +HEADERS = \ + parsing.h \ + printing.h \ + solution.h \ + ft_string.h \ OBJDIR = obj SRCDIR = srcs @@ -19,11 +21,11 @@ INCDIR = includes CC = cc LDFLAGS = CFLAGS = \ - -Wall \ - -Wextra \ - -Werror \ - -I$(INCDIR) \ - -fcolor-diagnostics \ + -Wall \ + -Wextra \ + -Werror \ + -I$(INCDIR) \ + -fcolor-diagnostics \ _OBJ = $(SRC:.c=.o) OBJ = $(addprefix $(OBJDIR)/,$(_OBJ)) @@ -74,6 +76,9 @@ SUCCESS_VALG = && $(SUCCESS_MSG_VALG) || $(FAIL_MSG_VALG) FAIL = && $(FAIL_MSG) || $(SUCCESS_MSG) VALGRIND = valgrind --leak-check=full --error-exitcode=1 VALGRIND_SMALL = 2>/dev/null 1>&2 valgrind --error-exitcode=1 +# The following 3 lines intentionally contain non-printable characters, namely +# the escape character \x1b. It is soley for the color-coding. If you use this Makefile, +# either download/copy this file or select/copy the text directly and lose the colors. YLW = : ; CYN = : ; CLR_RST = && :