-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (17 loc) · 682 Bytes
/
Makefile
File metadata and controls
27 lines (17 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CXX=g++-5
CXXFLAGS=-std=c++14 -Wall -Werror=vla -g
EXEC=cc3k
GAMEOBJ = main.o game.o object.o
CHARACTEROBJ = character.o player.o enemy.o
PLAYEROBJ = shade.o drow.o vampire.o troll.o goblin.o
ENEMYOBJ = human.o dwarf.o halfling.o elf.o orc.o merchant.o dragon.o
ITEMOBJ = item.o gold.o potion.o ladder.o specificPotions.o
GENEROBJ = PlayerGenerator.o EnemyGenerator.o GoldGenerator.o LadderGenerator.o PotionGenerator.o
OBJECTS = ${GAMEOBJ} ${CHARACTEROBJ} ${PLAYEROBJ} ${ENEMYOBJ} ${ITEMOBJ} ${GENEROBJ}
DEPENDS = ${OBJECTS:.o=.d}
${EXEC}: ${OBJECTS}
${CXX} ${CXXFLAGS} ${OBJECTS} -o ${EXEC}
-include ${DEPENDS}
.PHONY: clean
clean:
rm ${EXEC} ${OBJECTS} ${DEPENDS}