-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (33 loc) · 1.72 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
CC=g++ -g -std=c++11
OBJS=main.o Building.o Point2D.o Vector2D.o GameObject.o GameCommand.o PokemonCenter.o Model.o Pokemon.o PokemonGym.o View.o BattleArena.o Rival.o
default: PA4
PA4: $(OBJS)
$(CC) -o PA4 $(OBJS)
Vector2D.o: Vector2D.cpp Vector2D.h
$(CC) -c Vector2D.cpp -o Vector2D.o
Point2D.o: Point2D.cpp Point2D.h Vector2D.h
$(CC) -c Point2D.cpp -o Point2D.o
Building.o: Building.cpp Building.h
$(CC) -c Building.cpp -o Building.o
GameObject.o: GameObject.cpp GameObject.h Point2D.h Vector2D.h
$(CC) -c GameObject.cpp -o GameObject.o
PokemonCenter.o: PokemonCenter.cpp PokemonCenter.h GameObject.h Point2D.h
$(CC) -c PokemonCenter.cpp -o PokemonCenter.o
Model.o: Model.cpp Model.h GameObject.h Pokemon.h PokemonGym.h PokemonCenter.h View.h Rival.h BattleArena.h
$(CC) -c Model.cpp -o Model.o
PokemonGym.o: PokemonGym.cpp PokemonGym.h GameObject.h Point2D.h
$(CC) -c PokemonGym.cpp -o PokemonGym.o
View.o: View.cpp View.h GameObject.h Point2D.h
$(CC) -c View.cpp -o View.o
Pokemon.o: Pokemon.cpp Pokemon.h GameObject.h Point2D.h Vector2D.h PokemonGym.h PokemonCenter.h BattleArena.h Rival.h
$(CC) -c Pokemon.cpp -o Pokemon.o
GameCommand.o: GameCommand.cpp GameCommand.h Model.h GameObject.h Pokemon.h PokemonGym.h PokemonCenter.h
$(CC) -c GameCommand.cpp -o GameCommand.o
Rival.o: Rival.cpp Rival.h Pokemon.h GameObject.h Point2D.h Vector2D.h PokemonGym.h PokemonCenter.h BattleArena.h
$(CC) -c Rival.cpp -o Rival.o
BattleArena.o: BattleArena.cpp BattleArena.h GameObject.h Point2D.h
$(CC) -c BattleArena.cpp -o BattleArena.o
main.o: main.cpp Building.h Point2D.h Vector2D.h GameCommand.h PokemonCenter.h Model.h Pokemon.h PokemonGym.h GameObject.h View.h Rival.h BattleArena.h
$(CC) -c main.cpp
clean:
rm $(OBJS) PA4