-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
201 lines (195 loc) · 11.9 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
CXX = clang++
SDL = -framework SDL2 -framework SDL2_image -framework SDL2_ttf
CXXFLAGS = -Wall -c -Iinclude -Isrc -Iobj -Isrc/entity -Isrc/action/ -std=c++11
LDFLAGS = $(SDL)
EXE = bin/IsoMap.exe
CPPSRC := $(wildcard src/*.cpp)
CPPENTITY := $(wildcard src/entity/*.cpp)
CPPACTION := $(wildcard src/action/*.cpp)
CPPGRAPHICS := $(wildcard src/graphics/*.cpp)
CPPFILES := $(CPPSRC) $(CPPENTITY) $(CPPACTION) $(CPPGRAPHICS)
OBJFILES := $(addprefix src/,$(notdir $(CPPSRC:.cpp=.o))) $(addprefix src/entity/,$(notdir $(CPPENTITY:.cpp=.o))) $(addprefix src/action/,$(notdir $(CPPACTION:.cpp=.o))) $(addprefix src/graphics/,$(notdir $(CPPGRAPHICS:.cpp=.o)))
all: $(EXE)
$(EXE): main.o
$(CXX) $(LDFLAGS) main.o $(OBJFILES) -g -o $(EXE)
main.o: $(OBJFILES) main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
clean:
rm *.o
rm */*.o
rm */*/*.o
depend:
makedepend -- $(CXXFLAGS) -- $(CPPFILES)
# DO NOT DELETE
src/Item.o: include/Item.h include/Sprite.h include/global.h
src/Item.o: include/texture.h include/logging.h include/Selectable.h
src/Item.o: include/TextLine.h include/TextMaker.h
src/ItemGroup.o: include/ItemGroup.h include/Item.h include/Sprite.h
src/ItemGroup.o: include/global.h include/texture.h include/logging.h
src/ItemGroup.o: include/Selectable.h include/TextLine.h include/TextMaker.h
src/Map.o: include/Map.h include/Sprite.h include/global.h include/texture.h
src/Map.o: include/logging.h
src/Selectable.o: include/Selectable.h
src/Timer.o: include/Timer.h
src/logging.o: include/logging.h
src/entity/Building.o: include/Building.h include/FunctionCaller.h
src/entity/Building.o: include/ArgContainer.h include/EntityAction.h
src/entity/Building.o: include/EntityHP.h include/Entity.h include/Sprite.h
src/entity/Building.o: include/global.h include/texture.h include/logging.h
src/entity/Building.o: include/Action.h include/ActionGroup.h
src/entity/Building.o: include/ItemGroup.h include/Item.h
src/entity/Building.o: include/Selectable.h
src/entity/Entity.o: include/Sprite.h include/global.h include/texture.h
src/entity/Entity.o: include/logging.h include/Entity.h include/Action.h
src/entity/Entity.o: include/FunctionCaller.h include/ArgContainer.h
src/entity/EntityAction.o: include/EntityAction.h include/EntityHP.h
src/entity/EntityAction.o: include/Entity.h include/Sprite.h include/global.h
src/entity/EntityAction.o: include/texture.h include/logging.h
src/entity/EntityAction.o: include/Action.h include/FunctionCaller.h
src/entity/EntityAction.o: include/ArgContainer.h include/ActionGroup.h
src/entity/EntityAction.o: include/ItemGroup.h include/Item.h
src/entity/EntityAction.o: include/Selectable.h include/Attack.h
src/entity/EntityAction.o: include/InfoAction.h include/Resource.h
src/entity/EntityAction.o: include/EntityGroup.h include/SpriteGroup.h
src/entity/EntityAction.o: include/TextLine.h include/TextMaker.h
src/entity/EntityGroup.o: include/EntityGroup.h include/Entity.h
src/entity/EntityGroup.o: include/Sprite.h include/global.h include/texture.h
src/entity/EntityGroup.o: include/logging.h include/Action.h
src/entity/EntityGroup.o: include/FunctionCaller.h include/ArgContainer.h
src/entity/EntityGroup.o: include/SpriteGroup.h
src/entity/EntityHP.o: include/EntityHP.h include/Entity.h include/Sprite.h
src/entity/EntityHP.o: include/global.h include/texture.h include/logging.h
src/entity/EntityHP.o: include/Action.h include/FunctionCaller.h
src/entity/EntityHP.o: include/ArgContainer.h include/Attack.h
src/entity/Resource.o: include/Resource.h include/Entity.h include/Sprite.h
src/entity/Resource.o: include/global.h include/texture.h include/logging.h
src/entity/Resource.o: include/Action.h include/FunctionCaller.h
src/entity/Resource.o: include/ArgContainer.h include/EntityGroup.h
src/entity/Resource.o: include/SpriteGroup.h include/InfoAction.h
src/entity/Resource.o: include/TextLine.h include/TextMaker.h
src/entity/Unit.o: include/Unit.h include/EntityAction.h include/EntityHP.h
src/entity/Unit.o: include/Entity.h include/Sprite.h include/global.h
src/entity/Unit.o: include/texture.h include/logging.h include/Action.h
src/entity/Unit.o: include/FunctionCaller.h include/ArgContainer.h
src/entity/Unit.o: include/ActionGroup.h include/ItemGroup.h include/Item.h
src/entity/Unit.o: include/Selectable.h include/Movement.h
src/action/Action.o: include/Action.h include/FunctionCaller.h
src/action/Action.o: include/ArgContainer.h include/EntityAction.h
src/action/Action.o: include/EntityHP.h include/Entity.h include/Sprite.h
src/action/Action.o: include/global.h include/texture.h include/logging.h
src/action/Action.o: include/ActionGroup.h include/ItemGroup.h include/Item.h
src/action/Action.o: include/Selectable.h include/PopMenu.h include/Button.h
src/action/Action.o: include/TextLine.h include/TextMaker.h
src/action/Action.o: include/DisplayPiece.h include/Map.h include/Menu.h
src/action/Action.o: include/TextBox.h
src/action/ActionGroup.o: include/ActionGroup.h include/Action.h
src/action/ActionGroup.o: include/FunctionCaller.h include/ArgContainer.h
src/action/Attack.o: include/Action.h include/FunctionCaller.h
src/action/Attack.o: include/ArgContainer.h include/Movement.h
src/action/Attack.o: include/EntityAction.h include/EntityHP.h
src/action/Attack.o: include/Entity.h include/Sprite.h include/global.h
src/action/Attack.o: include/texture.h include/logging.h
src/action/Attack.o: include/ActionGroup.h include/ItemGroup.h include/Item.h
src/action/Attack.o: include/Selectable.h include/Unit.h include/Attack.h
src/action/Attack.o: include/Map.h include/FunctionCaller.H
src/action/InfoAction.o: include/Action.h include/FunctionCaller.h
src/action/InfoAction.o: include/ArgContainer.h include/InfoAction.h
src/action/InfoAction.o: include/Resource.h include/Entity.h include/Sprite.h
src/action/InfoAction.o: include/global.h include/texture.h include/logging.h
src/action/InfoAction.o: include/EntityGroup.h include/SpriteGroup.h
src/action/InfoAction.o: include/InfoMenu.h include/EntityAction.h
src/action/InfoAction.o: include/EntityHP.h include/ActionGroup.h
src/action/InfoAction.o: include/ItemGroup.h include/Item.h
src/action/InfoAction.o: include/Selectable.h include/Menu.h
src/action/InfoAction.o: include/DisplayPiece.h include/TextMaker.h
src/action/InfoAction.o: include/Button.h include/TextLine.h
src/action/InfoAction.o: include/TextBox.h include/SubMenu.h
src/action/Movement.o: include/Action.h include/FunctionCaller.h
src/action/Movement.o: include/ArgContainer.h include/Movement.h
src/action/Movement.o: include/EntityAction.h include/EntityHP.h
src/action/Movement.o: include/Entity.h include/Sprite.h include/global.h
src/action/Movement.o: include/texture.h include/logging.h
src/action/Movement.o: include/ActionGroup.h include/ItemGroup.h
src/action/Movement.o: include/Item.h include/Selectable.h include/Unit.h
src/graphics/Button.o: include/Action.h include/FunctionCaller.h
src/graphics/Button.o: include/ArgContainer.h include/texture.h
src/graphics/Button.o: include/logging.h include/Map.h include/Sprite.h
src/graphics/Button.o: include/global.h include/TextLine.h
src/graphics/Button.o: include/TextMaker.h include/Menu.h
src/graphics/Button.o: include/DisplayPiece.h include/Button.h
src/graphics/Button.o: include/TextBox.h
src/graphics/DisplayPiece.o: include/texture.h include/logging.h
src/graphics/DisplayPiece.o: include/Map.h include/Sprite.h include/global.h
src/graphics/DisplayPiece.o: include/Menu.h include/DisplayPiece.h
src/graphics/DisplayPiece.o: include/TextMaker.h include/Button.h
src/graphics/DisplayPiece.o: include/TextLine.h include/FunctionCaller.h
src/graphics/DisplayPiece.o: include/ArgContainer.h include/TextBox.h
src/graphics/DisplayPiece.o: include/SubMenu.h
src/graphics/InfoMenu.o: include/InfoMenu.h include/EntityAction.h
src/graphics/InfoMenu.o: include/EntityHP.h include/Entity.h include/Sprite.h
src/graphics/InfoMenu.o: include/global.h include/texture.h include/logging.h
src/graphics/InfoMenu.o: include/Action.h include/FunctionCaller.h
src/graphics/InfoMenu.o: include/ArgContainer.h include/ActionGroup.h
src/graphics/InfoMenu.o: include/ItemGroup.h include/Item.h
src/graphics/InfoMenu.o: include/Selectable.h include/Menu.h
src/graphics/InfoMenu.o: include/DisplayPiece.h include/TextMaker.h
src/graphics/InfoMenu.o: include/Button.h include/TextLine.h
src/graphics/InfoMenu.o: include/TextBox.h include/Resource.h
src/graphics/InfoMenu.o: include/EntityGroup.h include/SpriteGroup.h
src/graphics/InfoMenu.o: include/SubMenu.h
src/graphics/Menu.o: include/texture.h include/logging.h include/Map.h
src/graphics/Menu.o: include/Sprite.h include/global.h include/Menu.h
src/graphics/Menu.o: include/DisplayPiece.h include/TextMaker.h
src/graphics/Menu.o: include/Button.h include/TextLine.h
src/graphics/Menu.o: include/FunctionCaller.h include/ArgContainer.h
src/graphics/Menu.o: include/TextBox.h include/SubMenu.h
src/graphics/MenuGroup.o: include/MenuGroup.h include/Menu.h
src/graphics/MenuGroup.o: include/DisplayPiece.h include/TextMaker.h
src/graphics/MenuGroup.o: include/global.h include/Button.h
src/graphics/MenuGroup.o: include/TextLine.h include/FunctionCaller.h
src/graphics/MenuGroup.o: include/ArgContainer.h include/TextBox.h
src/graphics/MenuGroup.o: include/PopMenu.h include/Map.h include/Sprite.h
src/graphics/MenuGroup.o: include/texture.h include/logging.h
src/graphics/MenuGroup.o: include/EntityAction.h include/EntityHP.h
src/graphics/MenuGroup.o: include/Entity.h include/Action.h
src/graphics/MenuGroup.o: include/ActionGroup.h include/ItemGroup.h
src/graphics/MenuGroup.o: include/Item.h include/Selectable.h
src/graphics/PopMenu.o: include/PopMenu.h include/Button.h include/TextLine.h
src/graphics/PopMenu.o: include/TextMaker.h include/global.h
src/graphics/PopMenu.o: include/DisplayPiece.h include/FunctionCaller.h
src/graphics/PopMenu.o: include/ArgContainer.h include/Map.h include/Sprite.h
src/graphics/PopMenu.o: include/texture.h include/logging.h
src/graphics/PopMenu.o: include/EntityAction.h include/EntityHP.h
src/graphics/PopMenu.o: include/Entity.h include/Action.h
src/graphics/PopMenu.o: include/ActionGroup.h include/ItemGroup.h
src/graphics/PopMenu.o: include/Item.h include/Selectable.h include/Menu.h
src/graphics/PopMenu.o: include/TextBox.h include/InfoAction.h
src/graphics/PopMenu.o: include/Resource.h include/EntityGroup.h
src/graphics/PopMenu.o: include/SpriteGroup.h
src/graphics/SelectionList.o: include/SelectionList.h include/Selectable.h
src/graphics/SelectionList.o: include/Menu.h include/DisplayPiece.h
src/graphics/SelectionList.o: include/TextMaker.h include/global.h
src/graphics/SelectionList.o: include/Button.h include/TextLine.h
src/graphics/SelectionList.o: include/FunctionCaller.h include/ArgContainer.h
src/graphics/SelectionList.o: include/TextBox.h
src/graphics/Sprite.o: include/Sprite.h include/global.h include/texture.h
src/graphics/Sprite.o: include/logging.h include/Map.h
src/graphics/SpriteGroup.o: include/SpriteGroup.h include/global.h
src/graphics/SpriteGroup.o: include/Sprite.h include/texture.h
src/graphics/SpriteGroup.o: include/logging.h
src/graphics/SubMenu.o: include/SubMenu.h include/Menu.h
src/graphics/SubMenu.o: include/DisplayPiece.h include/TextMaker.h
src/graphics/SubMenu.o: include/global.h include/Button.h include/TextLine.h
src/graphics/SubMenu.o: include/FunctionCaller.h include/ArgContainer.h
src/graphics/SubMenu.o: include/TextBox.h include/texture.h include/logging.h
src/graphics/TextBox.o: include/TextBox.h include/TextLine.h
src/graphics/TextBox.o: include/TextMaker.h include/global.h include/Button.h
src/graphics/TextBox.o: include/DisplayPiece.h include/FunctionCaller.h
src/graphics/TextBox.o: include/ArgContainer.h include/Menu.h
src/graphics/TextBox.o: include/texture.h include/logging.h
src/graphics/TextLine.o: include/texture.h include/logging.h
src/graphics/TextLine.o: include/TextMaker.h include/global.h
src/graphics/TextLine.o: include/TextLine.h include/Map.h include/Sprite.h
src/graphics/TextMaker.o: include/TextMaker.h include/global.h
src/graphics/TextMaker.o: include/logging.h
src/graphics/texture.o: include/texture.h include/logging.h