-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (55 loc) · 1.93 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
65
66
67
68
69
70
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: onouakch <onouakch@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/12/11 00:53:25 by onouakch #+# #+# #
# Updated: 2024/01/23 14:41:03 by onouakch ### ########.fr #
# #
# **************************************************************************** #
# -*- Makefile -*-
NAME = ircserv
CPP = c++
RM = rm -rf
FLAGS = -Wall -Wextra -Werror -std=c++98
INCLUDES = includes/irc.h \
models/Client.hpp \
models/Channel.hpp \
SRCS = main.cpp \
server/server.cpp \
server/authentication.cpp \
server/check_authInfo.cpp \
server/events.cpp \
utils/utils.cpp \
models/Client.cpp \
models/Channel.cpp \
commands/cmds.cpp \
commands/join.cpp \
commands/part.cpp \
commands/privmsg.cpp \
commands/invite.cpp \
commands/kick.cpp \
commands/topic.cpp \
kadigh/SetRmMode.cpp \
kadigh/ft_mode.cpp \
kadigh/ft_mode_utils.cpp \
BONUS = bot/logtime.cpp
OBJS = $(SRCS:%.cpp=%.o)
BOBJS = $(BONUS:%.cpp=%.o)
all: $(NAME)
$(NAME) : $(OBJS)
$(CPP) $(FLAGS) $(OBJS) -o $@
%.o : %.cpp $(INCLUDES)
$(CPP) $(FLAGS) -c $< -o $@
bonus : $(BOBJS) $(INCLUDES)
$(CPP) $(FLAGS) $(BOBJS) -o $@
%.o : bot/%.cpp $(INCLUDES)
$(CPP) $(FLAGS) -c $< -o $@
clean:
$(RM) $(OBJS) $(BOBJS)
fclean: clean
$(RM) $(NAME) bonus
re: fclean all
.PHONY: all clean fclean re