-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (52 loc) · 1.06 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
56
57
58
59
60
61
62
63
64
NAME = webserv
NAME2 = cgi.exe
CXX = c++
FLAG = -Wall -Werror -Wextra -std=c++98
RM = rm -rf
SRCS = \
./srcs/main.cpp \
./srcs/ParseConfig.cpp \
./srcs/ServerManage.cpp \
./srcs/Server.cpp \
./srcs/Location.cpp \
./srcs/utilParsing.cpp \
./srcs/Response.cpp \
./srcs/Request.cpp \
./srcs/Connection.cpp \
./srcs/Member.cpp \
./srcs/MemberRepository.cpp \
./srcs/cgi_util.cpp \
./srcs/post_true.cpp
CGIS = \
cgi/cgi_main.cpp \
cgi/cgi_exe.cpp \
cgi/util.cpp \
cgi/Member.cpp \
cgi/MemberRepository.cpp \
cgi/file_post.cpp \
cgi/headeradd.cpp
INCS = \
./incs/
CNCS = \
./cgi/
OBJS = $(SRCS:.cpp=.o)
OBCS = $(CGIS:.cpp=.o)
all : $(NAME) $(NAME2)
%.o : %.cpp
@$(CXX) $(FLAG) -I $(INCS) -c $< -o $@
$(NAME) : $(OBJS) $(INCS)
@$(CXX) $(FLAG) -I $(INCS) -o $(NAME) $(OBJS)
$(NAME2) : $(OBCS) $(CNCS)
@$(CXX) $(FLAG) -I $(CNCS) -o $(NAME2) $(OBCS)
file :
@mkdir html/file
clean :
@$(RM) $(OBJS)
@$(RM) $(OBCS)
fclean : clean
@$(RM) $(NAME)
@$(RM) $(NAME2)
@rm -rf memberdb.txt
@rm -rf html/file
re : fclean all file
.PHONY : all clean fclean file re