forked from 42Seoul-ft-irc/ft_irc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 889 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
.DEFAULT_GOAL=all
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98 -MMD -MP
RM = rm -rf
NAME = ircserv
SRCS = main.cpp \
Server.cpp \
Channel.cpp \
UserInfo.cpp \
Message.cpp \
Auth.cpp \
command/Command.cpp \
command/Pass.cpp \
command/Nick.cpp \
command/User.cpp \
command/Join.cpp \
command/Invite.cpp \
command/Topic.cpp \
command/Privmsg.cpp \
command/Mode.cpp \
command/Quit.cpp \
command/Ping.cpp \
command/Kick.cpp \
command/Part.cpp \
command/Bot.cpp
FT_IRC = $(addprefix srcs/, $(SRCS))
OBJS = $(FT_IRC:.cpp=.o)
DEPS = $(FT_IRC:.cpp=.d)
-include $(DEPS)
%.o : %.cpp
@ $(COMPILE.cpp) $(OUTPUT_OPTION) $<
$(NAME) : $(OBJS)
@ $(LINK.cpp) $^ $(LOADLIBES) $(LDLIBS) -o $@
all : $(NAME)
clean :
@ $(RM) $(OBJS) $(DEPS)
fclean : clean
@ $(RM) $(NAME) $(DEPS)
re :
@ $(MAKE) fclean
@ $(MAKE) all
.PHONY : all clean fclean re