-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
74 lines (67 loc) · 1.21 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
CXX = g++
FLAGS = -Wall -g -std=c++0x
LIBS = -lsfml-graphics -lsfml-window -lsfml-system
DEPS = Aircraft.hpp \
AnimatedCircle.hpp \
Application.hpp \
Category.hpp \
Command.hpp \
CommandQueue.hpp \
DataTables.hpp \
Entity.hpp \
GameOverState.hpp \
GameState.hpp \
LoadingState.hpp \
MenuState.hpp \
ParallelTask.hpp \
PauseState.hpp \
Pickup.hpp \
Player.hpp \
Projectile.hpp \
ResourceHolder.hpp \
ResourceIdentifier.hpp \
SceneNode.hpp \
SpriteNode.hpp \
State.hpp \
StateIdentifiers.hpp \
StateStack.hpp \
TextNode.hpp \
TitleState.hpp \
Utility.hpp \
World.hpp \
templateUsed.cpp
OBJ = main.o \
Aircraft.o \
AnimatedCircle.o \
Application.o \
Command.o \
CommandQueue.o \
DataTables.o \
Entity.o \
GameOverState.o \
GameState.o \
LoadingState.o \
MenuState.o \
ParallelTask.o \
PauseState.o \
Pickup.o \
Player.o \
Projectile.o \
ResourceHolder.o \
SceneNode.o \
SpriteNode.o \
State.o \
StateStack.o \
TextNode.o \
TitleState.o \
Utility.o \
World.o \
templateUsed.o \
TARGET = main
%.o : %.cpp $(DEPS)
$(CXX) $(FLAGS) -c -o $@ $<
$(TARGET) : $(OBJ)
$(CXX) -o $@ $^ $(LIBS)
.PHONY:clean
clean :
rm -f $(TARGET) $(OBJ)