-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (40 loc) · 962 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
SRCS = \
srcs/main.cpp \
srcs/Classes/Server.cpp \
srcs/Classes/Client.cpp \
srcs/Classes/ClientChannel.cpp \
srcs/Classes/Channel.cpp \
srcs/Classes/ParsingInput.cpp \
srcs/Commands/pass.cpp \
srcs/Commands/nick.cpp \
srcs/Commands/user.cpp \
srcs/Commands/quit.cpp \
srcs/Commands/join.cpp \
srcs/Commands/mode.cpp \
srcs/Commands/topic.cpp \
srcs/Commands/names.cpp \
srcs/Commands/part.cpp \
srcs/Commands/invite.cpp \
srcs/Commands/kick.cpp \
srcs/Commands/privmsg.cpp \
srcs/Commands/oper.cpp \
srcs/Commands/bot.cpp \
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
CC = c++
FLAGS = -MD -Wall -Wextra -Werror -std=c++98 -I includes/
RM = rm -f
NAME = ircserv
all: $(NAME)
$(NAME): $(OBJS)
$(CC) $(FLAGS) $(OBJS) -o $(NAME)
.cpp.o :
${CC} ${FLAGS} -c $< -o ${<:.cpp=.o}
clean:
$(RM) $(OBJS)
$(RM) $(DEPS)
fclean: clean
$(RM) $(NAME)
-include $(DEPS)
re: fclean $(NAME)
.PHONY: all clean fclean re