You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
701 B
31 lines
701 B
NAME= webserv
|
|
SRCS= srcs/webserv.cpp srcs/tools.cpp srcs/debug.cpp \
|
|
srcs/load/Env.cpp srcs/load/Server.cpp \
|
|
srcs/load/Route.cpp srcs/sock/Master.cpp srcs/sock/Client.cpp \
|
|
srcs/json/Nodes.cpp srcs/json/Token.cpp srcs/json/Parser.cpp
|
|
OBJS= $(SRCS:.cpp=.o)
|
|
CXX=c++
|
|
CXXFLAGS= -I includes -Werror -Wextra -Wall -std=c++98
|
|
|
|
|
|
all : $(NAME)
|
|
|
|
$(NAME): $(OBJS)
|
|
$(CXX) $(OBJS) -o $(NAME)
|
|
|
|
debug:
|
|
$(CXX) -I includes -Werror -Wextra -Wall -std=c++98 -g $(SRCS) -o $(NAME) -D DEBUG=1 -D SILENT=0
|
|
|
|
verbose:
|
|
$(CXX) -I includes -Werror -Wextra -Wall -std=c++98 -g $(SRCS) -o $(NAME) -D SILENT=0
|
|
clean:
|
|
rm -rf $(OBJS)
|
|
|
|
fclean: clean
|
|
rm -rf $(NAME)
|
|
|
|
re: fclean all
|
|
|
|
.PHONY: all clean fclean re
|
|
|
|
|
|
|