forked from nyj001012/ft_irc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (42 loc) · 1011 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
NAME = ircserv
SRCS = main.cpp \
debug/debug.cpp \
debug/Serializable.cpp \
debug/json.cpp \
debug/Reflector.cpp \
server/Server.cpp \
utils/utils.cpp \
utils/socket_utils.cpp \
utils/string_utils.cpp \
irc/IrcCommand.cpp \
irc/IrcError.cpp \
irc/IrcReply.cpp \
irc/IrcUtil.cpp \
irc/IrcLabels.cpp \
user/User.cpp \
channel/Channel.cpp \
data/UserData.cpp \
data/ChannelData.cpp \
parse/parse.cpp \
task/Task.cpp \
task/UserTask.cpp \
task/ChannelTask.cpp \
task/MessageTask.cpp \
task/PingTask.cpp \
message/Message.cpp \
handler/RequestHandler.cpp
OBJS = ${SRCS:.cpp=.o}
INCLUDE = -I include -I include/server
CXXFLAGS = -Wall -Wextra -Werror -std=c++98 -g
RM = rm -f
all: ${NAME}
${NAME}: ${OBJS}
@${CXX} ${CXXFLAGS} -o ${NAME} ${OBJS}
@echo "\033[40;35mExecutable ${NAME} created"
%.o: %.cpp
@${CXX} ${CXXFLAGS} ${INCLUDE} -c $< -o ${<:.cpp=.o}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all