-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
51 lines (40 loc) · 1.47 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mgo <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/12 11:20:17 by mgo #+# #+# #
# Updated: 2022/10/12 11:20:18 by mgo ### ########.fr #
# #
# **************************************************************************** #
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror
CXXDEBUG = -g -fsanitize=address
CXX_VERSION = -pedantic -std=c++98
RM = rm -f
NAME = ircserv
SRC_FILE = main.cpp \
Server.cpp \
Command.cpp \
Protocol.cpp \
Client.cpp \
Channel.cpp \
utils.cpp \
Singleton.cpp \
Chatbot.cpp
OBJ_FILE = $(SRC_FILE:.cpp=.o)
%.o : %.cpp
$(CXX) $(CXX_VERSION) $(CXXFLAGS) $(CXXDEBUG) -c $< -o $@
$(NAME): $(OBJ_FILE)
$(CXX) $(CXX_VERSION) $(CXXFLAGS) $(CXXDEBUG) $^ -o $@
all: $(NAME)
clean:
$(RM) $(OBJ_FILE)
fclean: clean
$(RM) $(NAME)
re:
make fclean
make all
.PHONY: all clean fclean re