-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (30 loc) · 740 Bytes
/
Makefile
File metadata and controls
38 lines (30 loc) · 740 Bytes
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
38
NAME = webserv
SRCS = TcpListener/TcpListener.cpp \
TcpListener/Webserv.cpp \
configFileParser/Location.cpp \
configFileParser/Server.cpp \
configFileParser/configParser.cpp \
Request/Request.cpp \
main.cpp \
Response/Response.cpp \
Response/cgi.cpp \
utils/utils.cpp
INCLUDES= TcpListener/TcpListener.hpp \
TcpListener/Webserv.hpp \
configFileParser/Location.hpp \
configFileParser/Server.hpp \
Request/Request.hpp \
Response/Response.hpp \
utils/utils.hpp
OBJS = $(SRCS:.cpp=.o)
FLAGS = -Wall -Wextra -Werror -std=c++98
all: $(NAME)
$(NAME): $(OBJS) $(INCLUDES)
c++ $(FLAGS) $(OBJS) -o $(NAME)
%.o: %.cpp
c++ $(FLAGS) -c $< -o $@
clean:
rm -rf $(OBJS)
fclean: clean
rm -rf $(NAME)
re: fclean all