-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
63 lines (52 loc) · 2.04 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: oel-houm <oel-houm@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/01/12 12:55:01 by oel-houm #+# #+# #
# Updated: 2024/01/12 13:04:06 by oel-houm ### ########.fr #
# #
# **************************************************************************** #
CC := g++
CXXFLAGS := -Wall -Wextra -Werror -std=c++98
INCLUDES := -I./ -I./ft_irc/include
# List all your source files in the SRC variable
SRC := ft_irc/main.cpp \
ft_irc/Src/Server.cpp \
ft_irc/Src/Client.cpp \
ft_irc/Src/Channel.cpp \
ft_irc/Commands/User.cpp \
ft_irc/Commands/Pass.cpp \
ft_irc/Commands/Nick.cpp \
ft_irc/Commands/Quit.cpp \
ft_irc/Commands/Join.cpp \
ft_irc/Commands/List.cpp \
ft_irc/Commands/Whois.cpp \
ft_irc/Commands/Who.cpp \
ft_irc/Commands/Mode.cpp \
ft_irc/Commands/Kick.cpp \
ft_irc/Commands/Topic.cpp \
ft_irc/Commands/Msg.cpp \
ft_irc/Commands/Privmsg.cpp \
ft_irc/Commands/Send.cpp \
ft_irc/Commands/Leave.cpp \
ft_irc/Commands/Invite.cpp \
Bot.cpp \
# ft_irc/Commands/Privmsg.cpp \https://github.dev/Toowan0x1/ft_irc/blob/master/Makefile
# Generate the list of object files based on source files
OBJ := $(SRC:.cpp=.o)
NAME := ircserv
all: $(NAME)
$(NAME): $(OBJ)
@$(CC) $(CXXFLAGS) $(INCLUDES) -o $(NAME) $(OBJ)
# Compile each source file into an object file
%.o: %.cpp
@$(CC) $(CXXFLAGS) $(INCLUDES) -c $< -o $@
clean:
@rm -f $(OBJ)
fclean: clean
@rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re