-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
56 lines (44 loc) · 1.68 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
52
53
54
55
56
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: jcornill <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/02/24 18:32:00 by jcornill #+# #+# #
# Updated: 2017/04/09 19:21:58 by jcornill ### ########.fr #
# #
# **************************************************************************** #
NAME=ft_retro
SRC=main.cpp Display.cpp Entity.cpp Game.cpp Player.cpp Logger.cpp Enemy.cpp \
Star.cpp Projectile.cpp LivingEntity.cpp EntityChild.cpp Bonus.cpp Boss.cpp
OBJ=$(SRC:.cpp=.o)
FLAG=-Wall -Wextra -Werror -std=c++98
INCLUDE=-I includes
$(NAME): $(OBJ)
clang++ $(FLAG) -o $(NAME) $(INCLUDE) $(OBJ) -lncurses
m: $(NAME)
@echo "==========PROG=========="
@./$(NAME)
save:fclean
rm -rf log.txt
git add --all
git commit -m "Autosaving rush"
git push
all:$(NAME)
nf:
@echo "Prefered to use make m. (We can compile with flag o/)"
clang++ -o $(NAME) $(INCLUDE) *.cpp -lncurses
nfm: nf
rm -f log.txt
@echo "==========PROG=========="
@./$(NAME)
cat log.txt
clean:
rm -f $(OBJ)
fclean:clean
rm -f $(NAME)
re:fclean all
%.o:%.cpp
clang++ -c $< $(FLAG) $(INCLUDE) -o $@
.PHONY: all clean fclean re save m