-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
135 lines (123 loc) · 4.58 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
exeName = mainp
sfmlFlags = -lsfml-graphics -lsfml-window -lsfml-system
luaFlags = -llua5.3 -ldl -lm -I/usr/include/lua5.3
luaFlags = -llua -ldl -lm
# luaflags = -l-I/usr/include/lua5.3
g = g++ -g -std=c++17 -c
link = target/Imports.o \
target/TextureManager.o \
target/TextManager.o \
target/ScreenManager.o \
target/ScreenWatcher.o \
target/Animation.o \
target/AnimatedSprite.o \
target/Movement.o \
target/StorageItem.o \
target/Storage.o \
target/Creator.o \
target/Blood.o \
target/Resource.o \
target/Rock.o \
target/Computer.o \
target/ComputerScreen.o \
target/BloodCase.o \
target/HumanPod.o \
target/Constraint.o \
target/BaseScreen.o \
target/InteractionScreen.o \
target/DialogScreen.o \
target/ScreenItem.o \
target/Zone.o \
target/ZoneBase.o \
target/Obstacle.o \
target/Entity.o \
target/Npc.o \
target/StaticNpc.o \
target/BaseState.o \
target/Menu.o \
target/ActiveState.o \
target/State.o \
target/Game.o \
target/Main2.o
all:
$(g) Lib/Imports.cpp -o target/Imports.o
$(g) Lib/TextureManager.cpp -o target/TextureManager.o
$(g) Lib/TextManager.cpp -o target/TextManager.o
$(g) Screens/BaseScreen.cpp -o target/BaseScreen.o
$(g) Screens/DialogScreen.cpp -o target/DialogScreen.o
$(g) Screens/ScreenItem.cpp -o target/ScreenItem.o
$(g) Lib/ScreenManager.cpp -o target/ScreenManager.o
$(g) Screens/ScreenWatcher.cpp -o target/ScreenWatcher.o
$(g) Screens/InteractionScreen.cpp -o target/InteractionScreen.o
$(g) Lib/Animation.cpp -o target/Animation.o
$(g) Lib/AnimatedSprite.cpp -o target/AnimatedSprite.o
$(g) Entities/Rock.cpp -o target/Rock.o
$(g) Entities/Movement.cpp -o target/Movement.o
$(g) Entities/StorageItem.cpp -o target/StorageItem.o
$(g) Entities/Storage.cpp -o target/Storage.o
$(g) Entities/Creator.cpp -o target/Creator.o
$(g) Entities/resources/Blood.cpp -o target/Blood.o
$(g) Entities/resources/Resource.cpp -o target/Resource.o
$(g) Entities/Rock.cpp -o target/Rock.o
$(g) Entities/Computer.cpp -o target/Computer.o
$(g) Entities/ComputerScreen.cpp -o target/ComputerScreen.o
$(g) Entities/BloodCase.cpp -o target/BloodCase.o
$(g) Entities/HumanPod.cpp -o target/HumanPod.o
$(g) Zones/constraints/Constraint.cpp -o target/Constraint.o
$(g) Zones/Zone.cpp -o target/Zone.o
$(g) Zones/ZoneBase.cpp -o target/ZoneBase.o
$(g) Entities/Obstacle.cpp -o target/Obstacle.o
$(g) Entities/Entity.cpp -o target/Entity.o
$(g) Entities/NPC/Npc.cpp -o target/Npc.o
$(g) Entities/NPC/StaticNpc.cpp -o target/StaticNpc.o
$(g) States/BaseState.cpp -o target/BaseState.o
$(g) States/Menu.cpp -o target/Menu.o
$(g) States/ActiveState.cpp -o target/ActiveState.o
$(g) States/State.cpp -o target/State.o
$(g) Game.cpp -o target/Game.o
$(g) main2.cpp -o target/Main2.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
ent:
$(g) Entities/Movement.cpp -o target/Movement.o
$(g) Entities/StorageItem.cpp -o target/StorageItem.o
$(g) Entities/Storage.cpp -o target/Storage.o
$(g) Entities/Creator.cpp -o target/Creator.o
$(g) Entities/resources/Blood.cpp -o target/Blood.o
$(g) Entities/resources/Resource.cpp -o target/Resource.o
$(g) Entities/Rock.cpp -o target/Rock.o
$(g) Entities/Obstacle.cpp -o target/Obstacle.o
$(g) Entities/Computer.cpp -o target/Computer.o
$(g) Entities/ComputerScreen.cpp -o target/ComputerScreen.o
$(g) Entities/BloodCase.cpp -o target/BloodCase.o
$(g) Entities/HumanPod.cpp -o target/HumanPod.o
$(g) Entities/Entity.cpp -o target/Entity.o
$(g) Entities/NPC/Npc.cpp -o target/Npc.o
$(g) Entities/NPC/StaticNpc.cpp -o target/StaticNpc.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
screens:
$(g) Screens/BaseScreen.cpp -o target/BaseScreen.o
$(g) Screens/InteractionScreen.cpp -o target/InteractionScreen.o
$(g) Screens/DialogScreen.cpp -o target/DialogScreen.o
$(g) Screens/ScreenWatcher.cpp -o target/ScreenWatcher.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
states:
$(g) States/BaseState.cpp -o target/BaseState.o
$(g) States/Menu.cpp -o target/Menu.o
$(g) States/ActiveState.cpp -o target/ActiveState.o
$(g) States/State.cpp -o target/State.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
zones:
$(g) Zones/constraints/Constraint.cpp -o target/Constraint.o
$(g) Zones/Zone.cpp -o target/Zone.o
$(g) Zones/ZoneBase.cpp -o target/ZoneBase.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
lib:
$(g) Lib/TextManager.cpp -o target/TextManager.o
$(g) Lib/TextureManager.cpp -o target/TextureManager.o
$(g) Lib/ScreenManager.cpp -o target/ScreenManager.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags);
game:
$(g) Game.cpp -o target/Game.o
g++ $(link) -o $(exeName) $(sfmlFlags) $(luaFlags) ;
clean:
rm -rf target/*/