From: Dominik Kaiser Date: Mon, 18 Mar 2024 12:29:40 +0000 (+0100) Subject: Explicitly compile files in Makefile X-Git-Url: https://git.dkaiser.de/?a=commitdiff_plain;h=681026f782093d53fe4ac058caefb2fbcced6f0b;p=42%2Fft_printf.git Explicitly compile files in Makefile --- diff --git a/Makefile b/Makefile index 78d3806..fc6cbe4 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ all: $(NAME) $(NAME): $(OBJ_FILES) ar rcs $(NAME) $(OBJ_FILES) +%.o: %.c + $(CC) -I. $(CFLAGS) -c $< -o $@ + clean: rm -f $(OBJ_FILES)