-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (36 loc) · 1.46 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ebensalt <ebensalt@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/06/09 22:12:40 by ebensalt #+# #+# #
# Updated: 2023/07/20 18:51:13 by ebensalt ### ########.fr #
# #
# **************************************************************************** #
NAME = webserv
CPP = main.cpp \
server/server.cpp \
server/Socket.cpp \
request/request.cpp \
request/Post.cpp \
Response/Response.cpp \
ConfigParse/Config.cpp \
ConfigParse/Location.cpp \
ConfigParse/ServerConfig.cpp \
cgi/cgi.cpp Response/utils.cpp
CC = c++
CPPFLAGS = -Wall -Wextra -Werror -std=c++98 #-fsanitize=address -g3
O = $(CPP:.cpp=.o)
RM = rm -rf
%.o : %.cpp
$(CC) $(CPPFLAGS) -c -o $@ $<
all : $(NAME)
$(NAME) : $(O)
$(CC) $(CPPFLAGS) $(O) -o $(NAME)
clean :
$(RM) $(O)
fclean : clean
$(RM) $(NAME)
re : fclean all