-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
55 lines (45 loc) · 988 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
48
49
50
51
52
53
54
55
OUT = webserv
CC = clang++
CFLAGS = -I./HTTP -I./config -I./Server -Wall -Wextra -Werror
SRCS = main.cpp\
\
HTTP/HTTP.cpp\
HTTP/HTTP_Chunk.cpp\
HTTP/HTTP_req.cpp\
HTTP/HTTP_res.cpp\
HTTP/HTTP_CGI.cpp\
\
Server/Server.cpp\
Server/Server_socket.cpp\
Server/Server_kqueue.cpp\
Server/Server_method.cpp\
Server/Server_utils.cpp\
Server/Server_cgi.cpp\
Server/ContentType/ContentType.cpp\
Server/URIParser/URIParser.cpp\
\
config/Config.cpp\
config/ServerBlock.cpp\
\
autoindex/AutoIndex.cpp\
\
CGIInterface/CGIInterface.cpp\
utils/utils.cpp
OBJS = ${SRCS:.cpp=.o}
all : ${OUT}
.cpp.o :
@${CC} ${CFLAGS} -c ${<} -o ${<:.cpp=.o}
${OUT} : ${OBJS}
@${CC} ${CFLAGS} -o ${OUT} ${OBJS}
clean :
@rm -rf ${OBJS}
fclean : clean
@rm -rf ${OUT}
re : fclean all
test : all
@ ./webserv test.conf
s : all
@ ./webserv seungoh_test.conf
j : all
@ ./webserv jeokim_test.conf
.PHONY : all clean fclean re test s j