-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (26 loc) · 1020 Bytes
/
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
FLAGS = -pedantic-errors -std=c++11
gamecharacters.o: Jovian.h gamecharacters.cpp
g++ $(FLAGS) -c gamecharacters.cpp
hospital.o: Jovian.h hospital.cpp
g++ $(FLAGS) -c hospital.cpp
ammunationshop.o: Jovian.h ammunationshop.cpp
g++ $(FLAGS) -c ammunationshop.cpp
pawnshop.o: Jovian.h pawnshop.cpp
g++ $(FLAGS) -c pawnshop.cpp
war.o: Jovian.h war.cpp
g++ $(FLAGS) -c war.cpp
randomevents.o: Jovian.h randomevents.cpp
g++ $(FLAGS) -c randomevents.cpp
savegame.o: Jovian.h savegame.cpp
g++ $(FLAGS) -c savegame.cpp
loadgame.o: Jovian.h loadgame.cpp
g++ $(FLAGS) -c loadgame.cpp
gamemanual.o: Jovian.h gamemanual.cpp
g++ $(FLAGS) -c gamemanual.cpp
main.o: Jovian.h main.cpp
g++ $(FLAGS) -c main.cpp
main: gamecharacters.o hospital.o ammunationshop.o pawnshop.o war.o randomevents.o savegame.o loadgame.o gamemanual.o main.o
g++ $(FLAGS) gamecharacters.o hospital.o ammunationshop.o pawnshop.o war.o randomevents.o savegame.o loadgame.o gamemanual.o main.o -o main
clean:
rm -rf main *.o
.PHONY: clean