mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
feat(build): changes to depends
This commit is contained in:
5
Makefile
5
Makefile
@@ -10,7 +10,7 @@ DEBUGFLAGS = -g -fno-limit-debug-info
|
||||
|
||||
CXXFLAGS = -Wall -Wextra -Werror -std=c++98 $(DEBUGFLAGS) $(SANFLAGS) -DDEBUG
|
||||
|
||||
CPPFLAGS += -MD -MP
|
||||
CPPFLAGS += -MMD -MP
|
||||
|
||||
SRC = $(wildcard ./src/*.cpp)
|
||||
SRC += $(wildcard ./src/*/*.cpp)
|
||||
@@ -24,7 +24,6 @@ all: $(NAME)
|
||||
$(OBJ): %.o: %.cpp $(SRC) Makefile
|
||||
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -I $(INCLUDES) -o $@
|
||||
|
||||
-include $(SRC:%.cpp=%.d)
|
||||
|
||||
$(NAME): $(OBJ)
|
||||
$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME)
|
||||
@@ -42,5 +41,7 @@ re:
|
||||
|
||||
run: $(NAME)
|
||||
ASAN_OPTIONS=detect_leaks=0 ./$(NAME) $(filter-out $@,$(MAKECMDGOALS))
|
||||
|
||||
-include $(OBJ:%.o=%.d)
|
||||
|
||||
.PHONY: all clean fclean re
|
||||
|
||||
Reference in New Issue
Block a user