-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
37 lines (29 loc) · 1.33 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: sjones <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/07/03 12:05:37 by sjones #+# #+# #
# Updated: 2018/01/11 22:44:55 by sjones ### ########.fr #
# #
# **************************************************************************** #
NAME = test
INCLUDES = -I .
OBJS = Game.o Piece.o Player.o Ship.o main.o Stars.o Object.o
CXXFLAGS = -Wall -Werror -Wextra
DEBUG = -g -fno-omit-frame-pointer -fsanitize=address
all: $(NAME)
$(NAME): $(OBJS)
$(CXX) $(CXXFLAGS) $(OBJS) -o $@ -lncurses
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(INCLUDES) -c -o $@ $<
debug: $(NAME)
$(CXX) $(CXXFLAGS) $(DEBUG) $(OBJS) -o $@
clean:
$(RM) -f $(OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY:re fclean clean all