forked from bahimzabir/webserve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 875 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
NAME = webserv
FLAGS = -Wall -Werror -Wextra
CPPFLAGS = -std=c++98
SRCS = ./parcing/parcer.cpp \
./server/http/CGI_Handler/cgi_handler.cpp \
./server/http/DELETE_Handler/delete_handler.cpp \
./server/http/GET_Handler/get_handler.cpp \
./server/http/POST_Handler/post_handler.cpp \
./server/http/config_matcher.cpp \
./server/http/error_pages_map.cpp \
./server/http/http_request_checker.cpp \
./server/http/http_request.cpp \
./server/http/http_response.cpp \
./server/fd_handler.cpp \
./main.cpp \
./server/server_init.cpp \
./server/servers.cpp \
./server/socket.cpp
OBJS = ${SRCS:.cpp=.o}
all : ${NAME}
${NAME} : ${SRCS}
c++ ${FLAGS} ${CPPFLAGS} ${SRCS} -o ${NAME}
clean :
rm -rf ${OBJS}
fclean : clean
rm -rf ${NAME}
re : fclean all