From 12b0299921dd1b4797a53967a25d97cd74850a75 Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Mon, 29 Apr 2024 17:18:28 +0200 Subject: [PATCH] Make compilation explicit and change messages --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 06bc229..1323a82 100644 --- a/Makefile +++ b/Makefile @@ -58,7 +58,12 @@ OBJ_FILES = $(SRC_FILES:.c=.o) all: $(NAME) $(NAME): $(OBJ_FILES) - ar rcs $(NAME) $(OBJ_FILES) + @ar rcs $(NAME) $(OBJ_FILES) + @echo "[$(NAME)] Created archive." + +%.o:%.c + @$(CC) $(CFLAGS) -c -o $@ $< + @echo "[$(NAME)] Compiled object file $@ for $<." clean: @$(foreach file, $(OBJ_FILES), test -f $(file) && rm $(file) && echo "[$(NAME)] Removed $(file)." || :;) -- 2.47.2