-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 909 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
DungeonGame: Dungeon.o Item.o DungeonTile.o NPC.o Dice.o NPCdef.o ItemDef.o PC.o
g++ -Wall Dungeon.o Item.o DungeonTile.o NPC.o Dice.o NPCdef.o ItemDef.o PC.o -o DungeonGame -lncurses -lboost_regex
Dungeon.o: Dungeon.h Dungeon.cpp NPC.h PC.h Item.h DungeonTile.h
g++ -Wall -Werror -ggdb Dungeon.cpp -c
Item.o: Item.h Item.cpp ItemDef.h
g++ -Wall -Werror -ggdb Item.cpp -c
DungeonTile.o: DungeonTile.cpp DungeonTile.h Item.h NPC.h
g++ -Wall -Werror -ggdb DungeonTile.cpp -c
NPC.o: NPC.cpp NPC.h NPCdef.h
g++ -Wall -Werror -ggdb NPC.cpp -c
Dice.o: Dice.cpp Dice.h
g++ -Wall -Werror -std=c++11 -ggdb Dice.cpp -c
NPCdef.o: NPCdef.cpp NPCdef.h Dice.h
g++ -Wall -Werror -std=c++11 -ggdb NPCdef.cpp -c
ItemDef.o: ItemDef.cpp ItemDef.h Dice.h
g++ -Wall -Werror -std=c++11 -ggdb ItemDef.cpp -c
PC.o: PC.h PC.cpp NPC.h Item.h
g++ -Wall -Werror -std=c++11 -ggdb PC.cpp -c
clean:
rm -f *.o DungeonGame