]> git.dkaiser.de - 42/ft_printf.git/commitdiff
Explicitly compile files in Makefile
authorDominik Kaiser <dkaiser@1-C-11.42heilbronn.de>
Mon, 18 Mar 2024 12:29:40 +0000 (13:29 +0100)
committerDominik Kaiser <dkaiser@1-C-11.42heilbronn.de>
Mon, 18 Mar 2024 12:29:40 +0000 (13:29 +0100)
Makefile

index 78d380674b035eac2759e78ee5db603d4bc73d27..fc6cbe4b1f2261de10894e1f5aafb44ac4f956e7 100644 (file)
--- 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)