1#	NetHack Makefile.
2#	SCCS Id: @(#)Makefile.dat	3.4	1992/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
27../util/tile2bmp:
28	(cd ../util ; make tile2bmp)
29
30x11tiles: ../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
31				../win/share/other.txt
32	../util/tile2x11 ../win/share/monsters.txt ../win/share/objects.txt \
33				../win/share/other.txt
34
35beostiles: ../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
36				../win/share/other.txt
37	../util/tile2beos ../win/share/monsters.txt ../win/share/objects.txt \
38				../win/share/other.txt
39
40nhtiles.bmp: ../util/tile2bmp ../win/share/monsters.txt ../win/share/objects.txt \
41				../win/share/other.txt
42	../util/tile2bmp $@
43
44NetHack.ad: ../win/X11/NetHack.ad
45	cp ../win/X11/NetHack.ad NetHack.ad
46
47pet_mark.xbm: ../win/X11/pet_mark.xbm
48	cp ../win/X11/pet_mark.xbm pet_mark.xbm
49
50rip.xpm: ../win/X11/rip.xpm
51	cp ../win/X11/rip.xpm rip.xpm
52
53mapbg.xpm: ../win/gnome/mapbg.xpm
54	cp ../win/gnome/mapbg.xpm mapbg.xpm
55
56nhsplash.xpm: ../win/Qt/nhsplash.xpm
57	cp ../win/Qt/nhsplash.xpm nhsplash.xpm
58
59nethack.icns: ../win/Qt/nhicns.uu
60	$(UUDECODE) ../win/Qt/nhicns.uu
61
62Info.plist: ../win/Qt/Info.pli
63	cp ../win/Qt/Info.pli Info.plist
64
65../util/tile2img.ttp:
66	(cd ../util ; make tile2img.ttp)
67
68../util/xpm2img.ttp:
69	(cd ../util ; make xpm2img.ttp)
70nh16.img: ../util/tile2img.ttp ../win/share/monsters.txt \
71				../win/share/objects.txt ../win/share/other.txt
72	../util/tile2img.ttp nh16.img
73
74rip.img: ../util/xpm2img.ttp
75	../util/xpm2img.ttp ../win/X11/rip.xpm rip.img
76title.img:
77	# cp ../win/gem/title.img title.img
78	$(UUDECODE) ../win/gem/title.uu
79
80GEM_RSC.RSC:
81	# cp ../win/gem/GEM_RSC.RSC GEM_RSC.RSC
82	$(UUDECODE) ../win/gem/gem_rsc.uu
83
84
85data:	data.base ../util/makedefs
86	../util/makedefs -d
87
88rumors:	rumors.tru rumors.fal ../util/makedefs
89	../util/makedefs -r
90
91quest.dat:	quest.txt ../util/makedefs
92	../util/makedefs -q
93
94oracles:	oracles.txt ../util/makedefs
95	../util/makedefs -h
96
97# note: 'options' should have already been made when include/date.h was created
98options:	../util/makedefs
99	../util/makedefs -v
100
101
102spec_levs: ../util/lev_comp \
103	bigroom.des castle.des endgame.des gehennom.des knox.des medusa.des \
104	mines.des oracle.des sokoban.des tower.des yendor.des
105	../util/lev_comp bigroom.des
106	../util/lev_comp castle.des
107	../util/lev_comp endgame.des
108	../util/lev_comp gehennom.des
109	../util/lev_comp knox.des
110	../util/lev_comp medusa.des
111	../util/lev_comp mines.des
112	../util/lev_comp oracle.des
113	../util/lev_comp sokoban.des
114	../util/lev_comp tower.des
115	../util/lev_comp yendor.des
116	touch spec_levs
117
118quest_levs: ../util/lev_comp \
119	Arch.des Barb.des Caveman.des Healer.des Knight.des Monk.des \
120	Priest.des Ranger.des Rogue.des Samurai.des Tourist.des Valkyrie.des \
121	Wizard.des
122	../util/lev_comp Arch.des
123	../util/lev_comp Barb.des
124	../util/lev_comp Caveman.des
125	../util/lev_comp Healer.des
126	../util/lev_comp Knight.des
127	../util/lev_comp Monk.des
128	../util/lev_comp Priest.des
129	../util/lev_comp Ranger.des
130	../util/lev_comp Rogue.des
131	../util/lev_comp Samurai.des
132	../util/lev_comp Tourist.des
133	../util/lev_comp Valkyrie.des
134	../util/lev_comp Wizard.des
135	touch quest_levs
136
137dungeon: dungeon.def ../util/makedefs ../util/dgn_comp
138	../util/makedefs -e
139	../util/dgn_comp dungeon.pdf
140
141spotless:
142	-rm -f spec_levs quest_levs *.lev $(VARDAT) dungeon dungeon.pdf
143	-rm -f nhdat x11tiles beostiles pet_mark.xbm rip.xpm mapbg.xpm
144	-rm -f rip.img GEM_RSC.RSC title.img nh16.img NetHack.ad
145