forked from 404-DriverNotFound/200-OK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (41 loc) · 1.42 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
SRCS = gnl/get_next_line_bonus.cpp gnl/get_next_line_utils_bonus.cpp \
srcs/main.cpp\
srcs/ServerManager.cpp\
srcs/Server.cpp\
srcs/Server_parsing.cpp\
srcs/Server_run.cpp\
srcs/Server_execute*.cpp\
srcs/Connection.cpp \
srcs/Response.cpp \
srcs/Connection.cpp\
srcs/Request.cpp\
srcs/Response.cpp \
\
srcs/ConfigFile/ConfigFile.cpp \
srcs/ConfigFile/ConfigFiles.cpp \
srcs/Path/Path.cpp \
srcs/ServerConfigIdx/ServerConfigIdx.cpp \
srcs/Utils/utils.cpp
OBJS = $(SRCS:.cpp=.o)
NAME = webserv
CC = clang++
# CFLAGS = -Wall -Wextra -Werror -std=c++98 -g3 -fsanitize=address
# CFLAGS = -Wall -Wextra -Werror -std=c++98 -g3
# CFLAGS = -std=c++98 -g3 -fsanitize=address
CFLAGS = -std=c++98 -Wall -Wextra -Werror
RM = -rm -rf
all : $(NAME)
clean :
$(RM) $(OBJS)
fclean : clean
$(RM) $(NAME)
re : fclean all
$(NAME) : $(SRCS)
$(CC) $(CFLAGS) $^ -o $@
test : re
./webserv test.config&
ft_tester/TimeCheck.sh
killall -9 webserv
lldb :
clang++ -g gnl/get_next_line_bonus.cpp gnl/get_next_line_utils_bonus.cpp srcs/main.cpp srcs/ServerManager.cpp srcs/Server.cpp srcs/Connection.cpp srcs/ConfigFile/ConfigFile.cpp srcs/ConfigFile/ConfigFiles.cpp srcs/Path/Path.cpp srcs/ServerConfigIdx/ServerConfigIdx.cpp srcs/Utils/utils.cpp srcs/Response.cpp srcs/Request.cpp srcs/Server_parsing.cpp srcs/Server_run.cpp srcs/Server_execute*.cpp
.PHONY : all clean fclean re