-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
50 lines (40 loc) · 1.5 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
# **************************************************************************** #
# #
# ::: :::::::: #
# makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jaehyuki <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/27 17:07:45 by junhjeon #+# #+# #
# Updated: 2023/04/27 14:14:01 by jaehyuki ### ########.fr #
# #
# **************************************************************************** #
CXX = c++
CPPFLAGS = #-Wall -Wextra -Werror -std=c++98 -g3
SRC_DIR = .
NAME = webserv
SRCS = ./main.cpp \
./ServerConfig/ServerConfig.cpp \
./ServerEngine/ServerEngine.cpp \
./ServerEngine/ServerEngineProcess.cpp\
./ServerEngine/Session.cpp\
./Request/Request.cpp \
./Response/Response.cpp \
./CGI/CgiHandler.cpp \
./KqueueUdata.cpp \
./ParsingUtility.cpp
OBJS = $(SRCS:.cpp=.o)
INCLUDE = .
all : $(NAME)
.cpp.o:
$(CXX) -c $(CPPFLAGS) -I $(INCLUDE) -o $@ $<
$(NAME) : $(OBJS)
$(CXX) $(CPPFLAGS) -o $@ $(OBJS)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re:
make fclean;
make all;
.PHONY: clean all fclean re