-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (50 loc) · 1.89 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tfriedri <[email protected]. +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/09/21 11:14:30 by tilmanfs #+# #+# #
# Updated: 2024/01/16 17:56:30 by tfriedri ### ########.fr #
# #
# **************************************************************************** #
NAME = ircserv
BOTNAME = hackerbot
CPPFLAGS = -Wall -Werror -Wextra -std=c++98 -g
SRCS = srcs/main.cpp \
srcs/Server.cpp \
srcs/Channel.cpp \
srcs/User.cpp \
srcs/Message.cpp \
srcs/cmmnds/pass.cpp \
srcs/cmmnds/nick.cpp \
srcs/cmmnds/user.cpp \
srcs/cmmnds/quit.cpp \
srcs/cmmnds/join.cpp \
srcs/cmmnds/ping.cpp \
srcs/cmmnds/privmsg.cpp \
srcs/cmmnds/notice.cpp \
srcs/cmmnds/part.cpp \
srcs/cmmnds/topic.cpp \
srcs/cmmnds/kick.cpp \
srcs/cmmnds/names.cpp \
srcs/cmmnds/mode.cpp \
srcs/cmmnds/invite.cpp \
srcs/cmmnds/list.cpp \
BSRCS = bonus/main.cpp \
bonus/Bot.cpp \
srcs/Message.cpp \
OBJS = $(SRCS:.cpp=.o)
BOBJS = $(BSRCS:.cpp=.o)
$(NAME): $(OBJS)
$(CXX) $(CPPFLAGS) $(OBJS) -o $(NAME)
$(BOTNAME): $(BOBJS)
$(CXX) $(CPPFLAGS) $(BOBJS) -o $(BOTNAME)
all: $(NAME)
bonus: $(BOTNAME)
clean:
rm -rf $(OBJS) $(BOBJS)
fclean: clean
rm -f $(NAME) $(BOTNAME)
re: fclean all