-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
NAME = webserv
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98 -pedantic -g3 -fsanitize=address
SRCS = main.cpp \
webserver/config/configParser/Config.cpp \
webserver/config/configParser/BaseServer.cpp \
webserver/client/request/Request.cpp \
webserver/client/request/Uri.cpp \
webserver/WebServer.cpp \
webserver/connection/Connection.cpp \
webserver/client/Client.cpp \
webserver/multiplex/Multiplex.cpp \
OBJS = $(SRCS:.cpp=.o)
all : $(NAME)
$(NAME) : $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
@printf "=> $(NAME) created.\n"
%.o : %.cpp
@$(CXX) $(CXXFLAGS) -c $< -o $@
clean :
@rm -rf $(OBJS)
@printf "=> $(NAME) object files removed.\n"
fclean : clean
@rm -rf $(NAME)
@printf "=> $(NAME) removed.\n"
re : fclean all
.PHONY : all clean fclean re