-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (37 loc) · 1023 Bytes
/
Makefile
File metadata and controls
48 lines (37 loc) · 1023 Bytes
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
default: all
NAME = snake-sfml.out
CC = g++
CPPFLAGS += -W -Wall -Wextra -Werror -O3 --std=c++14
LDFLAGS += -lsfml-graphics -lsfml-audio -lsfml-window -lsfml-system
SRC_DIR = ./Snake-SFML/Sources
SRC = $(SRC_DIR)/Bonus.cpp \
$(SRC_DIR)/Container.cpp \
$(SRC_DIR)/Main.cpp \
$(SRC_DIR)/SceneNode.cpp \
$(SRC_DIR)/SpriteNode.cpp \
$(SRC_DIR)/World.cpp \
$(SRC_DIR)/Button.cpp \
$(SRC_DIR)/Entity.cpp \
$(SRC_DIR)/MenuState.cpp \
$(SRC_DIR)/SettingsState.cpp \
$(SRC_DIR)/State.cpp \
$(SRC_DIR)/Command.cpp \
$(SRC_DIR)/GameOverState.cpp \
$(SRC_DIR)/MusicPlayer.cpp \
$(SRC_DIR)/Snake.cpp \
$(SRC_DIR)/StateStack.cpp \
$(SRC_DIR)/CommandQueue.cpp \
$(SRC_DIR)/GameState.cpp \
$(SRC_DIR)/PauseState.cpp \
$(SRC_DIR)/SoundNode.cpp \
$(SRC_DIR)/TitleState.cpp
OBJ = $(SRC:.cpp=.o)
RM = rm -f
all: $(NAME)
$(NAME): $(OBJ)
$(CC) $(CPPFLAGS) $(LDFLAGS) $(OBJ) -o $(NAME)
clean:
$(RM) $(OBJ)
fclean: clean
$(RM) $(NAME)
re: fclean all