forked from kaboussi00/ft_irc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (47 loc) · 1.12 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
NAME = ircserv
SRCS = ./authentication/nickname.cpp \
./authentication/parse_auth.cpp \
./authentication/password.cpp \
./authentication/username.cpp \
./channels/channel.cpp \
./clients/client.cpp \
./bot/TimeBot.cpp \
./bot/DiceBot.cpp \
./commands/Invite.cpp \
./commands/Join.cpp \
./commands/Kick.cpp \
./commands/Mode.cpp \
./commands/Nick.cpp \
./commands/Notice.cpp \
./commands/ParseCommands.cpp \
./commands/Part.cpp \
./commands/Pong.cpp \
./commands/PrivMsg.cpp \
./commands/Quit.cpp \
./commands/Topic.cpp \
./main.cpp \
./server/create_server.cpp \
./server/is_connection.cpp \
./server/server.cpp \
./utils/utils.cpp
INC = ./headers/Channel.hpp \
./headers/Client.hpp \
./headers/Commands.hpp \
./headers/Logger.hpp \
./headers/Replies.hpp \
./headers/Server.hpp \
./headers/Utils.hpp
OBJS = $(SRCS:.cpp=.o)
RM = rm -f
CPP = c++
CPPFLAGS = -Wall -Wextra -Werror -std=c++98
all: $(NAME)
$(NAME): $(OBJS)
$(CPP) $(OBJS) $(CPPFLAGS) -o $(NAME)
%.o:%.cpp $(INC)
$(CPP) $(CPPFLAGS) -c $< -o $@
clean:
$(RM) $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all