-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 1.61 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aaslan <[email protected] +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/02/15 16:28:53 by aaslan #+# #+# #
# Updated: 2024/04/24 16:27:13 by aaslan ### ########.fr #
# #
# **************************************************************************** #
NAME = ircserv
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
SRC = src/main.cpp src/Server.cpp src/ServerHelper.cpp src/Client.cpp src/Channel.cpp src/Utils.cpp \
src/commands/Cap.cpp src/commands/Pass.cpp src/commands/Nick.cpp src/commands/User.cpp src/commands/Quit.cpp \
src/commands/Join.cpp src/commands/Part.cpp src/commands/Mode.cpp src/commands/Topic.cpp \
src/commands/Names.cpp src/commands/List.cpp src/commands/Invite.cpp src/commands/Kick.cpp \
src/commands/Privmsg.cpp src/commands/Notice.cpp src/commands/Whois.cpp
OBJ = $(SRC:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJ)
@$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME)
clean:
@rm -rf $(OBJ)
fclean: clean
@rm -rf $(NAME)
re: fclean all
.PHONY: all clean fclean re