-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (33 loc) · 1.32 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abiru <abiru@student.42abudhabi.ae> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2023/04/30 10:40:42 by abiru #+# #+# #
# Updated: 2023/11/07 23:02:15 by abiru ### ########.fr #
# #
# **************************************************************************** #
NAME = ircserv
CXX = c++
CXXFLAGS = -Wextra -Werror -Wall -std=c++98
SRCS = srcs/main.cpp \
srcs/Server.cpp \
srcs/Client.cpp \
srcs/Parser.cpp \
srcs/IrcUtils.cpp \
srcs/Channel.cpp \
srcs/Commands.cpp
OBJS = $(SRCS:.cpp=.o)
all: $(NAME)
$(NAME): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o $(NAME)
%.o: %.c
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -rf $(OBJS)
fclean: clean
rm -rf $(NAME)
re: fclean all
.PHONY: all clean fclean re