1#	NetHack Makefile.
2#	SCCS Id: @(#)Makefile.dat	3.3	92/09/18
3
4# for Atari
5# SHELL=E:/GEMINI2/MUPFEL.TTP
6# UUDECODE=uudecode
7
8VARDAT = data rumors quest.dat oracles options
9
10all:	$(VARDAT) spec_levs quest_levs dungeon
11
12../util/makedefs:
13	(cd ../util ; make makedefs)
14
15../util/dgn_comp:
16	(cd ../util ; make dgn_comp)
17
18../util/lev_comp:
19	(cd ../util ; make lev_comp)
20
21../util/tile2x11:
22	(cd ../util ; make tile2x11)
23
24../util/tile2beos:
25	(cd ../util ; make tile2beos)
26
27x11tiles: ../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
28				../win/share/other.txt
29	../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
30				../win/share/other.txt
31
32beostiles: ../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
33				../win/share/other.txt
34	../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
35				../win/share/other.txt
36
37pet_mark.xbm: ../win/X11/pet_mark.xbm
38	cp ../win/X11/pet_mark.xbm pet_mark.xbm
39
40rip.xpm: ../win/X11/rip.xpm
41	cp ../win/X11/rip.xpm rip.xpm
42
43mapbg.xpm: ../win/gnome/mapbg.xpm
44	cp ../win/gnome/mapbg.xpm mapbg.xpm
45
46../util/tile2img.ttp:
47	(cd ../util ; make tile2img.ttp)
48
49nh16.img: ../util/tile2img.ttp ../win/share/monsters.txt \
50				../win/share/objects.txt ../win/share/other.txt
51	../util/tile2img.ttp nh16.img
52
53title.img:
54	# cp ../win/gem/title.img title.img
55	$(UUDECODE) ../win/gem/title.uu
56
57GEM_RSC.RSC:
58	# cp ../win/gem/GEM_RSC.RSC GEM_RSC.RSC
59	$(UUDECODE) ../win/gem/gem_rsc.uu
60
61
62data:	data.base ../util/makedefs
63	../util/makedefs -d
64
65rumors:	rumors.tru rumors.fal ../util/makedefs
66	../util/makedefs -r
67
68quest.dat:	quest.txt ../util/makedefs
69	../util/makedefs -q
70
71oracles:	oracles.txt ../util/makedefs
72	../util/makedefs -h
73
74# note: 'options' should have already been made when include/date.h was created
75options:	../util/makedefs
76	../util/makedefs -v
77
78
79spec_levs: ../util/lev_comp \
80	bigroom.des castle.des endgame.des gehennom.des knox.des medusa.des \
81	mines.des oracle.des sokoban.des tower.des yendor.des
82	../util/lev_comp bigroom.des
83	../util/lev_comp castle.des
84	../util/lev_comp endgame.des
85	../util/lev_comp gehennom.des
86	../util/lev_comp knox.des
87	../util/lev_comp medusa.des
88	../util/lev_comp mines.des
89	../util/lev_comp oracle.des
90	../util/lev_comp sokoban.des
91	../util/lev_comp tower.des
92	../util/lev_comp yendor.des
93	touch spec_levs
94
95quest_levs: ../util/lev_comp \
96	Arch.des Barb.des Caveman.des Healer.des Knight.des Monk.des \
97	Priest.des Ranger.des Rogue.des Samurai.des Tourist.des Valkyrie.des \
98	Wizard.des
99	../util/lev_comp Arch.des
100	../util/lev_comp Barb.des
101	../util/lev_comp Caveman.des
102	../util/lev_comp Healer.des
103	../util/lev_comp Knight.des
104	../util/lev_comp Monk.des
105	../util/lev_comp Priest.des
106	../util/lev_comp Ranger.des
107	../util/lev_comp Rogue.des
108	../util/lev_comp Samurai.des
109	../util/lev_comp Tourist.des
110	../util/lev_comp Valkyrie.des
111	../util/lev_comp Wizard.des
112	touch quest_levs
113
114dungeon: dungeon.def ../util/makedefs ../util/dgn_comp
115	../util/makedefs -e
116	../util/dgn_comp dungeon.pdf
117
118spotless:
119	-rm -f spec_levs quest_levs *.lev $(VARDAT) dungeon dungeon.pdf
120	-rm -f nhdat x11tiles beostiles pet_mark.xbm rip.xpm mapbg.xpm
121