-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (32 loc) · 1.78 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
CC=g++ -std=c++11 -g
OBJS=main.o Point2D.o Vector2D.o GameObject.o Building.o PokemonCenter.o PokemonGym.o Trainer.o Model.o View.o GameCommand.o WildPokemon.o
default: PA4
PA4: $(OBJS)
$(CC) -o PA4 $(OBJS)
Point2D.o: Point2D.cpp Point2D.h Vector2D.h
$(CC) -c Point2D.cpp -o Point2D.o
Vector2D.o: Vector2D.cpp Vector2D.h
$(CC) -c Vector2D.cpp -o Vector2D.o
GameObject.o: GameObject.cpp GameObject.h Point2D.h Vector2D.h
$(CC) -c GameObject.cpp -o GameObject.o
Building.o: Building.cpp Building.h
$(CC) -c Building.cpp -o Building.o
PokemonCenter.o: PokemonCenter.cpp PokemonCenter.h GameObject.h Point2D.h
$(CC) -c PokemonCenter.cpp -o PokemonCenter.o
PokemonGym.o: PokemonGym.cpp PokemonGym.h GameObject.h Point2D.h
$(CC) -c PokemonGym.cpp -o PokemonGym.o
Trainer.o: Trainer.cpp Trainer.h GameObject.h Point2D.h Vector2D.h PokemonCenter.h PokemonGym.h WildPokemon.h
$(CC) -c Trainer.cpp -o Trainer.o
Model.o: Model.cpp Model.h GameObject.h Trainer.h PokemonGym.h PokemonCenter.h View.h WildPokemon.h
$(CC) -c Model.cpp -o Model.o
View.o: View.cpp View.h GameObject.h Point2D.h
$(CC) -c View.cpp -o View.o
GameCommand.o: GameCommand.cpp GameCommand.h Model.h GameObject.h Trainer.h PokemonGym.h PokemonCenter.h WildPokemon.h
$(CC) -c GameCommand.cpp -o GameCommand.o
WildPokemon.o: WildPokemon.cpp WildPokemon.h Point2D.h Vector2D.h GameObject.h Trainer.h
$(CC) -c WildPokemon.cpp -o WildPokemon.o
main.o:Point2D.h Vector2D.h GameObject.h main.cpp Building.h Point2D.h Vector2D.h GameCommand.h PokemonCenter.h Model.h Trainer.h PokemonGym.h GameObject.h View.h WildPokemon.h
$(CC) -c main.cpp -o main.o
$(CC) -g -o PA4.exe main.cpp Point2D.o Vector2D.o GameObject.o Building.o PokemonCenter.o PokemonGym.o Trainer.o Model.o View.o GameCommand.o WildPokemon.o
clean:
rm $(OBJS) PA4 *.exe