summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDominik Kaiser2024-03-18 13:29:40 +0100
committerDominik Kaiser2024-03-18 13:29:40 +0100
commit681026f782093d53fe4ac058caefb2fbcced6f0b (patch)
tree4f652e383531d4594df015fa38a461793b856896 /Makefile
parenta609e8d638fe92d5ea644d2d2313adb997cd3cb4 (diff)
downloadft_printf-681026f782093d53fe4ac058caefb2fbcced6f0b.tar.gz
ft_printf-681026f782093d53fe4ac058caefb2fbcced6f0b.zip
Explicitly compile files in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
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)