summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)." || :;)