-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.3 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: omakran <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/05/18 18:37:28 by omakran #+# #+# #
# Updated: 2024/06/08 18:26:31 by omakran ### ########.fr #
# #
# **************************************************************************** #
NAME = ircserver
SRC = src/main.cpp src/ircserver.cpp src/client.cpp src/ircImplementation.cpp src/Channel.cpp $(wildcard src/commands/*.cpp)
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
CXX = c++
OBJ = $(SRC:.cpp=.o)
INCLUDE = -I include
all: $(NAME)
$(NAME): $(OBJ)
$(CXX) $(CXXFLAGS) $(OBJ) -o $(NAME)
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDE) -c $< -o $@
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all