Skip to content

Commit

Permalink
fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 19, 2024
1 parent 9174b22 commit 77cb412
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ CXXFLAGS = -std=c++17 -Wall -Wextra -Werror
PROD_FLAGS = -O3
DEV_FLAGS = -O0 -g -fsanitize=address,integer,undefined -D DEV
LEAK_FLAGS = -D LEAK
DEPFLAGS = -MMD -MP
DEP_FLAGS = -MMD -MP
INCLUDE = -I $(INC_DIR)

# flag options
Expand Down Expand Up @@ -156,9 +156,11 @@ _checker_build: $(BONUS_OBJ)
# util
$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c
@mkdir -p $(@D)
@$(CC) $(CFLAGS) $(INCLUDE) $(DEPFLAGS) -c $< -o $@
@$(CC) $(CFLAGS) $(INCLUDE) $(DEP_FLAGS) -c $< -o $@
@printf "$(GREEN)$(RESET)"

-include $(DEP)

$(LIBFT): $(LIBFT_DIR)
@make -C $(@D)

Expand Down Expand Up @@ -226,5 +228,3 @@ $(GTEST_DIR):
.PHONY: norm
norm:
norminette $(INC_DIR) $(SRC_DIR) $(LIBFT_DIR)

-include $(DEP)

0 comments on commit 77cb412

Please sign in to comment.