summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDominik Kaiser2024-04-29 17:18:28 +0200
committerDominik Kaiser2024-04-29 17:18:28 +0200
commit12b0299921dd1b4797a53967a25d97cd74850a75 (patch)
treed684c2b84059309771d74529389f183732f41bd3 /Makefile
parent6ed4a69bc05fad551062548cad1cd70dfc7e7278 (diff)
downloadlibft-12b0299921dd1b4797a53967a25d97cd74850a75.tar.gz
libft-12b0299921dd1b4797a53967a25d97cd74850a75.zip
Make compilation explicit and change messages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
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)." || :;)