-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) 路 880 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
38
39
40
41
42
43
44
45
46
47
NAME = webserv
CPP = c++
CPPFLAGS = -Wall -Wextra -Werror -std=c++98 #-fsanitize=address -g3
SRCS = parse_conf/check_directives.cpp \
parse_conf/check_location.cpp \
parse_conf/check_servers.cpp \
parse_conf/conf_parser.cpp \
parse_conf/utils.cpp \
parse_conf/Directives.cpp \
parse_conf/Locations.cpp \
parse_conf/Servers.cpp \
Multiplexing/create_listening_socket.cpp \
Multiplexing/run_server.cpp \
Multiplexing/helper_functions.cpp \
Request/POST/ft_Post.cpp \
methods/get.cpp \
methods/delete.cpp \
methods/send_errors.cpp \
methods/handle_file.cpp \
methods/handle_folder.cpp \
main.cpp
OBJS = $(SRCS:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CPP) $(CPPFLAGS) $(OBJS) -o $(NAME)
%.o: %.cpp
$(CPP) $(CPPFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
run: $(NAME)
./$(NAME)
.PHONY : all clean fclean re run