Skip to content

Commit

Permalink
modified includes
Browse files Browse the repository at this point in the history
  • Loading branch information
t0mmusic committed Jul 16, 2022
1 parent 3be0d76 commit 8436e6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
**/objects
**/archives
headers/*
headers/
!headers/ft_printf.h
**/libft
main.c
.main.c
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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 $@
Expand Down

0 comments on commit 8436e6f

Please sign in to comment.