From 8436e6f63abf1ea18e6981f6ecc374ce9b57dbe8 Mon Sep 17 00:00:00 2001 From: jordan Date: Sat, 16 Jul 2022 17:31:47 +0930 Subject: [PATCH] modified includes --- .gitignore | 3 ++- Makefile | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 8922550..08dde2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ **/objects **/archives -headers/* +headers/ +!headers/ft_printf.h **/libft main.c .main.c diff --git a/Makefile b/Makefile index c31adf0..74497a0 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,6 @@ SRCS = srcs/basic_print.c srcs/character_handle.c srcs/formatspec.c \ OBJ_DEST = objects ARCHIVE_DEST = archives HEADER_DEST = headers -HDR_INCL = $(HEADER_DEST)/inc_headers CFLAGS = -Wall -Werror -Wextra -I $(HEADER_DEST) -I $(HDR_INCL) @@ -58,10 +57,9 @@ $(LIBFT): @$(MAKE) bonus -C ./libft >/dev/null @mkdir -p $(OBJ_DEST) @mkdir -p $(ARCHIVE_DEST) - @mkdir -p $(HDR_INCL) @cp libft/libft.a $(NAME) >/dev/null @mv libft/*.o $(OBJ_DEST) - @cp libft/*.h $(HDR_INCL) + @cp libft/*.h $(HEADER_DEST) objects/%.o: srcs/%.c @$(CC) $(CFLAGS) -c $< -o $@