-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
46 lines (37 loc) · 1.62 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jasong <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/12/28 13:47:07 by jiychoi #+# #+# #
# Updated: 2023/01/08 14:50:31 by jasong ### ########.fr #
# #
# **************************************************************************** #
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
SRCS = src/main.cpp \
src/Server.cpp src/ServerSendMessage.cpp src/ServerUtils.cpp \
src/User.cpp src/Channel.cpp \
src/Command.cpp src/CommandChannel.cpp src/CommandAuth.cpp \
src/utils.cpp src/Reply.cpp src/Bot.cpp
OBJS = $(SRCS:.cpp=.o)
TARGET = ircserv
# SANFLAG = -g3 -fsanitize=address
NO_COLOR = \e[0m
LF = \e[1K\r$(NO_COLOR)
CRLF = \n$(LF)
all : $(TARGET)
$(TARGET) : $(OBJS)
@printf "$(LF)📞ft_irc\n"
@$(CXX) $(OBJS) $(SANFLAG) $(CXXFLAGS) -o $(TARGET)
%.o : %.cpp
@$(CXX) $(CXXFLAGS) -c -o $@ $< -I ./
# @$(CXX) $(CXXFLAGS) $(SANFLAG) -c -o $@ $< -I ./
clean :
@printf "$(LF)Deleting $(TARGET)...\n"
@rm -rf $(OBJS)
fclean : clean
@rm -rf $(TARGET)
re : fclean all