-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
80 lines (72 loc) · 2.14 KB
/
Makefile
File metadata and controls
80 lines (72 loc) · 2.14 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
VERSION = 0.0.1p
# jdk path
JDK =
# java runtime path
JAVA = $(JDK)java
# java compiler path
JAVAC = $(JDK)javac
# javadoc path
JAVADOC = $(JDK)javadoc
# jar path
JAR = $(JDK)jar
REMOVE = del
REMDIR = del
REMOPT = /f /s
# gnu make tool
MAKE = make
# encoding mode
ENCODING = UTF8
build :
# make clean
make game/Random.class
make game/io/LockedInputStream.class
make game/io/LockedOutputStream.class
make game/io/LockedReader.class
make game/io/LockedWriter.class
make game/item/Item.class
make game/item/Items.class
make game/item/ItemManager.class
make game/item/weapon/WeaponType.class
make game/item/weapon/Weapon.class
make game/item/weapon/None.class
make game/item/weapon/axe/Axe.class
make game/item/weapon/gloves/Glove.class
make game/item/weapon/jsword/JSword.class
make game/item/weapon/knife/Knife.class
make game/item/weapon/longsword/LongSword.class
make game/item/weapon/scythe/Scythe.class
make game/item/weapon/spear/Spear.class
make game/item/weapon/sword/Sword.class
make game/item/ItemList.class
make game/magic/Magic.class
make game/magic/MagicManager.class
make game/magic/light/Heal.class
make game/magic/MagicList.class
make game/character/Status.class
make game/character/Mob.class
make game/character/enemy/Enemy.class
make game/character/enemy/slime/Slime.class
make game/character/enemy/slime/HopSlime.class
make game/character/enemy/slime/SlowSlime.class
make game/character/player/Player.class
make game/ConsEsc.class
make game/Console.class
make game/SaveData.class
make game/Game.class
run :
# make build
$(JAVA) game.Game
javadoc :
$(JAVADOC) -encoding $(ENCODING) -d ..\docs -use -version -nohelp -charset $(ENCODING) -sourcetab 4 -docencoding $(ENCODING) \
game game.character game.character.player game.item game.item.weapon \
game.item.weapon.axe game.item.weapon.gloves game.item.weapon.knife game.item.weapon.longsword \
game.item.weapon.scythe game.item.weapon.spear game.item.weapon.sword game.io \
game.magic game.magic.light
jar:
$(JAR) cvfm ../Gam$(VERSION).jar MANIFEST.MF
%.class : %.java
$(JAVAC) -encoding $(ENCODING) $*.java
clean :
cd game
$(REMOVE) $(REMOPT) *.class
cd ..