-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (29 loc) · 1.28 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/06/06 12:10:57 by zelhajou #+# #+# #
# Updated: 2024/06/06 12:29:32 by zelhajou ### ########.fr #
# #
# **************************************************************************** #
NAME = hordZombies
SRCS = main.cpp Zombie.cpp zombieHorde.cpp
OBJS = obj/main.o obj/Zombie.o obj/zombieHorde.o
CXX = c++
CXXFLAGS = -Wall -Wextra -Werror -std=c++98
all: $(NAME)
$(NAME): $(OBJS)
$(CXX) $(CXXFLAGS) -o $(NAME) $(OBJS)
obj/%.o: %.cpp Zombie.hpp
@mkdir -p obj
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
rm -f $(OBJS)
rm -rf obj
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re