forked from CaitSith2/infinity
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
468 lines (380 loc) · 22.5 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
all: builddir build/j.gb
.PHONY: builddir
builddir:
mkdir -p build
mkdir -p source/data
clean:
rm -f resource/eve/itemdefs.h
rm -f source/eve/itemdefs.h
rm -f resource/eve/eform.txt resource/eve/eform.pst resource/eve/eform.dat
rm -f resource/eve/formdefs.h
rm -f resource/eve/etxt.h
rm -f resource/eve/dialog.dat
rm -f resource/eve/game.pst resource/eve/demo.edt
rm -f resource/ext/*.bin
rm -f resource/ext/game.j2w
rm -f resource/ext/zonemap.pag
rm -f resource/*.pag
rm -f source/data/*.h
rm -f build/*.o
distclean: clean
cd tools/toolchain && make clean
rm -rf source/data
rm -rf build
run: build/j.gb
retroarch -L /usr/lib/x86_64-linux-gnu/libretro/gambatte_libretro.so build/j.gb
source/eve/itemdefs.h: resource/eve/items.ref
cd resource/eve && ../../bin/itemconv --defs items.ref && cp itemdefs.h ../../source/eve
resource/eve/eform.pst: resource/eve/enemies.afz
cd resource/eve && ../../bin/afzconv enemies.afz && cpp < eform.txt | ../../bin/post > eform.pst
resource/eve/eform.dat: resource/eve/eform.pst
yasm -o resource/eve/eform.dat resource/eve/eform.pst
resource/efr00.pag: resource/eve/eform.dat
cd resource && ../bin/pagify eve/eform.dat efr
resource/eve/dialog.dat: resource/eve/dialog.txt
cd resource/eve && ../../bin/proctext dialog.txt dialog.dat
resource/txt00.pag: resource/eve/dialog.dat
cd resource && ../bin/pagify eve/dialog.dat txt
resource/eve/game.pst: resource/eve/game.eve
cd resource/eve && cpp < game.eve | ../../bin/post > game.pst
resource/eve/demo.edt: resource/eve/game.pst
yasm -o resource/eve/demo.edt resource/eve/game.pst
resource/eve00.pag: resource/eve/demo.edt
cd resource && ../bin/pagify eve/demo.edt eve
resource/ext/arrow_w.bin: resource/ext/arrow_w.gbr
cd resource/ext && ../../bin/gbr2bin arrow_w.gbr arrow_w.bin /nopal 0 15
resource/ext/cure1.bin: resource/ext/cure1.gbr
cd resource/ext && ../../bin/gbr2bin cure1.gbr cure1.bin /nopal 0 15
resource/ext/fire1.bin: resource/ext/fire1.gbr
cd resource/ext && ../../bin/gbr2bin fire1.gbr fire1.bin /nopal 0 15
resource/ext/fx1.bin: resource/ext/fx1.gbr
cd resource/ext && ../../bin/gbr2bin fx1.gbr fx1.bin /nopal 0 11
resource/ext/gemgfx.bin: resource/ext/gems.gbr
cd resource/ext && ../../bin/gbr2bin gems.gbr gemgfx.bin 0 15
resource/ext/itemgfx.bin: resource/ext/items.gbr
cd resource/ext && ../../bin/gbr2bin items.gbr itemgfx.bin 0 11
resource/ext/jolt1.bin: resource/ext/jolt1.gbr
cd resource/ext && ../../bin/gbr2bin jolt1.gbr jolt1.bin /nopal 0 4
resource/ext/menugfx.bin: resource/ext/menugfx.gbr
cd resource/ext && ../../bin/gbr2bin menugfx.gbr menugfx.bin /nopal 0 95
resource/ext/menuwing.bin: resource/ext/menuwing.gbr
cd resource/ext && ../../bin/gbr2bin menuwing.gbr menuwing.bin /nopal 0 1
resource/ext/missgfx.bin: resource/ext/miss.gbr
cd resource/ext && ../../bin/gbr2bin miss.gbr missgfx.bin /nopal 0 3
resource/ext/poof.bin: resource/ext/poof.gbr
cd resource/ext && ../../bin/gbr2bin poof.gbr poof.bin /nopal 0 3
resource/ext/scratch1.bin: resource/ext/scratch1.gbr
cd resource/ext && ../../bin/gbr2bin scratch1.gbr scratch1.bin /nopal 0 15
resource/ext/skillgfx.bin: resource/ext/skills.gbr
cd resource/ext && ../../bin/gbr2bin skills.gbr skillgfx.bin 0 19
resource/ext/slash1.bin: resource/ext/slash.gbr
cd resource/ext && ../../bin/gbr2bin slash.gbr slash1.bin /nopal 0 3
resource/ext/slurp.bin: resource/ext/slurp.gbr
cd resource/ext && ../../bin/gbr2bin slurp.gbr slurp.bin /nopal 0 15
resource/ext/spawn1.bin: resource/ext/e_roots2.gbr
cd resource/ext && ../../bin/gbr2bin e_roots2.gbr spawn1.bin /nopal 3 7
resource/ext/staff1.bin: resource/ext/staff1.gbr
cd resource/ext && ../../bin/gbr2bin staff1.gbr staff1.bin /nopal 0 0
resource/ext/sword1.bin: resource/ext/sword1.gbr
cd resource/ext && ../../bin/gbr2bin sword1.gbr sword1.bin /nopal 0 15
resource/ext/tidal1.bin: resource/ext/tidal1.gbr
cd resource/ext && ../../bin/gbr2bin tidal1.gbr tidal1.bin /nopal 0 3
resource/ext/wake.bin: resource/ext/wake.gbr
cd resource/ext && ../../bin/gbr2bin wake.gbr wake.bin /nopal 0 15
resource/ext/whirl1.bin: resource/ext/whirl1_adjusted.gbr
cd resource/ext && ../../bin/gbr2bin whirl1_adjusted.gbr whirl1.bin /nopal 0 11
resource/ext/wingding.bin: resource/ext/wingding.gbr
cd resource/ext && ../../bin/gbr2bin wingding.gbr wingding.bin /nopal 0 23
source/data/dudepal.h: resource/ext/sprite.pal
cd resource/ext && ../../bin/gfx2h sprite.pal ../../source/data/dudepal.h dudepal
source/data/dudepal2.h: resource/ext/sprite_gba.pal
cd resource/ext && ../../bin/gfx2h sprite_gba.pal ../../source/data/dudepal2.h dudepal2
source/data/arrow_w.h: resource/ext/arrow_w.bin
cd resource/ext && ../../bin/gfx2h arrow_w.bin ../../source/data/arrow_w.h arrow_w
source/data/cure1.h: resource/ext/cure1.bin
cd resource/ext && ../../bin/gfx2h cure1.bin ../../source/data/cure1.h cure1
source/data/fire1.h: resource/ext/fire1.bin
cd resource/ext && ../../bin/gfx2h fire1.bin ../../source/data/fire1.h fire1
source/data/fx1.h: resource/ext/fx1.bin
cd resource/ext && ../../bin/gfx2h fx1.bin ../../source/data/fx1.h fx1
source/data/gemgfx.h: resource/ext/gemgfx.bin
cd resource/ext && ../../bin/gfx2h gemgfx.bin ../../source/data/gemgfx.h gemgfx
source/data/itemgfx.h: resource/ext/itemgfx.bin
cd resource/ext && ../../bin/gfx2h itemgfx.bin ../../source/data/itemgfx.h itemgfx
source/data/jolt1.h: resource/ext/jolt1.bin
cd resource/ext && ../../bin/gfx2h jolt1.bin ../../source/data/jolt1.h jolt1
source/data/menugfx.h: resource/ext/menugfx.bin
cd resource/ext && ../../bin/gfx2h menugfx.bin ../../source/data/menugfx.h menugfx
source/data/menuwing.h: resource/ext/menuwing.bin
cd resource/ext && ../../bin/gfx2h menuwing.bin ../../source/data/menuwing.h menuwing
source/data/missgfx.h: resource/ext/missgfx.bin
cd resource/ext && ../../bin/gfx2h missgfx.bin ../../source/data/missgfx.h missgfx
source/data/poof.h: resource/ext/poof.bin
cd resource/ext && ../../bin/gfx2h poof.bin ../../source/data/poof.h poofgfx
source/data/scratch1.h: resource/ext/scratch1.bin
cd resource/ext && ../../bin/gfx2h scratch1.bin ../../source/data/scratch1.h scratch1
source/data/skillgfx.h: resource/ext/skillgfx.bin
cd resource/ext && ../../bin/gfx2h skillgfx.bin ../../source/data/skillgfx.h skillgfx
source/data/slash1.h: resource/ext/slash1.bin
cd resource/ext && ../../bin/gfx2h slash1.bin ../../source/data/slash1.h slash1
source/data/slurp.h: resource/ext/slurp.bin
cd resource/ext && ../../bin/gfx2h slurp.bin ../../source/data/slurp.h slurpgfx
source/data/spawn1.h: resource/ext/spawn1.bin
cd resource/ext && ../../bin/gfx2h spawn1.bin ../../source/data/spawn1.h spawn1
source/data/staff1.h: resource/ext/staff1.bin
cd resource/ext && ../../bin/gfx2h staff1.bin ../../source/data/staff1.h staff1gfx
source/data/sword1.h: resource/ext/sword1.bin
cd resource/ext && ../../bin/gfx2h sword1.bin ../../source/data/sword1.h sword1
source/data/tidal1.h: resource/ext/tidal1.bin
cd resource/ext && ../../bin/gfx2h tidal1.bin ../../source/data/tidal1.h tidal1
source/data/wake.h: resource/ext/wake.bin
cd resource/ext && ../../bin/gfx2h wake.bin ../../source/data/wake.h wakegfx
source/data/whirl1.h: resource/ext/whirl1.bin
cd resource/ext && ../../bin/gfx2h whirl1.bin ../../source/data/whirl1.h whirl1
source/data/wingding.h: resource/ext/wingding.bin
cd resource/ext && ../../bin/gfx2h wingding.bin ../../source/data/wingding.h wingding
# FIXME: all these files should be processed separately but since this
# makefile is written by hand for now I'm being lazy. to get this
# section to rebuild, touch infinity.in
resource/ext/game.j2w: resource/ext/infinity.in
cd resource/ext && ../../bin/gbr2bin advisor.gbr advisor.bin 0 7
cd resource/ext && ../../bin/gbr2bin aldric.gbr aldric.bin 0 7
cd resource/ext && ../../bin/gbr2bin alutha.gbr alutha.bin 0 63
cd resource/ext && ../../bin/gbr2bin anna.gbr anna.bin 0 7
cd resource/ext && ../../bin/gbr2bin archmagi.gbr archmagi.bin 0 7
cd resource/ext && ../../bin/gbr2bin barrier.gbr barrier.bin 0 7
cd resource/ext && ../../bin/gbr2bin boat.gbr boat.bin 0 7
cd resource/ext && ../../bin/gbr2bin bossomeg.gbr bossomeg.bin 0 35
cd resource/ext && ../../bin/gbr2bin connor.gbr conner.bin 0 63
cd resource/ext && ../../bin/gbr2bin deadguy.gbr deadguy.bin 0 7
cd resource/ext && ../../bin/gbr2bin e_archer.gbr e_archer.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_armora.gbr e_armora.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_bat2.gbr e_bat2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_bat3.gbr e_bat3.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_bat.gbr e_bat.bin 0 8
cd resource/ext && ../../bin/gbr2bin ebexanim.gbr ebexanim.bin 0 35
cd resource/ext && ../../bin/gbr2bin e_blank.gbr e_blank.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_bsaru.gbr e_bsaru.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_cactrs.gbr e_cactrs.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_dryath.gbr e_dryath.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_durang.gbr e_durang.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_exanim.gbr e_exanim.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_eye.gbr e_eye.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_fbat.gbr e_fbat.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_flame.gbr e_flame.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_folcon.gbr e_folcon.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_fsold.gbr e_fsold.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_fwerdg.gbr e_fwerdg.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_gmask.gbr e_gmask.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_golem2.gbr e_golem2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_golem3.gbr e_golem3.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_golem4.gbr e_golem4.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_golem.gbr e_golem.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_grissl.gbr e_grissl.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_grossl.gbr e_grossl.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_grumb2.gbr e_grumb2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_grumble.gbr e_grumble.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_gutana.gbr e_gutana.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_hench.gbr e_hench.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_herrera.gbr e_herrer.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_horf.gbr e_horf.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_iwamp2.gbr e_iwamp2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_iwamp.gbr e_iwamp.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_leshiz.gbr e_leshiz.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_lich.gbr e_lich.bin 0 8
cd resource/ext && ../../bin/gbr2bin elya.gbr elya.bin 0 63
cd resource/ext && ../../bin/gbr2bin e_masket.gbr e_masket.bin 0 8
cd resource/ext && ../../bin/gbr2bin embrace.gbr embrace.bin 0 7
cd resource/ext && ../../bin/gbr2bin e_mermod.gbr e_mermod.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_mermud.gbr e_mermud.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_mummy.gbr e_mummy.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_mushro.gbr e_mushro.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_nitsuj.gbr e_nitsuj.bin 0 8
cd resource/ext && ../../bin/gbr2bin en_tw1.gbr en_tw1.bin 0 8
cd resource/ext && ../../bin/gbr2bin en_tw2.gbr en_tw2.bin 0 8
cd resource/ext && ../../bin/gbr2bin en_tw3.gbr en_tw3.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_oaff2.gbr e_oaff2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_oaff.gbr e_oaff.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_omega.gbr e_omega.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_ottor.gbr e_ottor.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_pirate.gbr e_pirate.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_ragnop.gbr e_ragnop.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_rat.gbr e_rat.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_roland.gbr e_roland.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_roots2.gbr e_roots2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_roots.gbr e_roots.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_saru.gbr e_saru.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_sbat.gbr e_sbat.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_sold.gbr e_sold.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_spectr.gbr e_spectr.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_sponge.gbr e_sponge.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_ssaru.gbr e_ssaru.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_swampy.gbr e_swampy.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_swear.gbr e_swear.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_syak.gbr e_syak.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_tasm.gbr e_tasm.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_tree1.gbr e_tree1.bin 0 8
cd resource/ext && ../../bin/gbr2bin etreebos.gbr etreebos.bin 0 35
cd resource/ext && ../../bin/gbr2bin e_victor.gbr e_victor.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_waglo.gbr e_waglo.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_wampy.gbr e_wampy.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_wataku.gbr e_wataku.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_watazk.gbr e_watazk.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_wazzip.gbr e_wazzip.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_werdg2.gbr e_werdg2.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_werdge.gbr e_werdge.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_witzki.gbr e_witzki.bin 0 8
cd resource/ext && ../../bin/gbr2bin ewolfbos.gbr ewolfbos.bin 0 35
cd resource/ext && ../../bin/gbr2bin e_wulfa.gbr e_wulfa.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_yak.gbr e_yak.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_yik.gbr e_yik.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_yok.gbr e_yok.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_yuk.gbr e_yuk.bin 0 8
cd resource/ext && ../../bin/gbr2bin e_zombie.gbr e_zombie.bin 0 8
cd resource/ext && ../../bin/gbr2bin fire2.gbr fire2.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire3.gbr fire3.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire4.gbr fire4.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire5.gbr fire5.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire6.gbr fire6.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire7.gbr fire7.bin 0 7
cd resource/ext && ../../bin/gbr2bin fire8.gbr fire8.bin 0 7
cd resource/ext && ../../bin/gbr2bin geist.gbr geist.bin 0 7
cd resource/ext && ../../bin/gbr2bin gilus.gbr gilus.bin 0 7
cd resource/ext && ../../bin/gbr2bin golem.gbr golem.bin 0 7
cd resource/ext && ../../bin/gbr2bin hassan.gbr hassan.bin 0 7
cd resource/ext && ../../bin/gbr2bin longago.gbr head1.bin 0 7
cd resource/ext && ../../bin/gbr2bin longago.gbr head2.bin 4 11
cd resource/ext && ../../bin/gbr2bin longago.gbr head3.bin 12 19
cd resource/ext && ../../bin/gbr2bin izaur.gbr izuar.bin 0 1
cd resource/ext && ../../bin/gbr2bin kid1.gbr kid1.bin 0 7
cd resource/ext && ../../bin/gbr2bin kid2.gbr kid2.bin 0 7
cd resource/ext && ../../bin/gbr2bin kid3.gbr kid3.bin 0 7
cd resource/ext && ../../bin/gbr2bin kid4.gbr kid4.bin 0 7
cd resource/ext && ../../bin/gbr2bin kidhero.gbr kidhero.bin 0 7
cd resource/ext && ../../bin/gbr2bin kidmagi.gbr kidmagi.bin 0 7
cd resource/ext && ../../bin/gbr2bin kiddragon.gbr kidragon.bin 0 7
cd resource/ext && ../../bin/gbr2bin krait.gbr krait.bin 0 7
cd resource/ext && ../../bin/gbr2bin kraith2.gbr kraith2.bin 0 7
cd resource/ext && ../../bin/gbr2bin lady1.gbr lady1.bin 0 7
cd resource/ext && ../../bin/gbr2bin lady2.gbr lady2.bin 0 7
cd resource/ext && ../../bin/gbr2bin lady3.gbr lady3.bin 0 7
cd resource/ext && ../../bin/gbr2bin lady4.gbr lady4.bin 0 7
cd resource/ext && ../../bin/gbr2bin lady5.gbr lady5.bin 0 7
cd resource/ext && ../../bin/gbr2bin man1.gbr man1.bin 0 7
cd resource/ext && ../../bin/gbr2bin man2.gbr man2.bin 0 7
cd resource/ext && ../../bin/gbr2bin mayor.gbr mayor.bin 0 7
cd resource/ext && ../../bin/gbr2bin npcex1.gbr npcex1.bin 0 7
cd resource/ext && ../../bin/gbr2bin npc_exh.gbr npc_exh.bin 0 7
cd resource/ext && ../../bin/gbr2bin npcfire.gbr npcfire.bin 0 7
cd resource/ext && ../../bin/gbr2bin nselera.gbr nselera.bin 0 7
cd resource/ext && ../../bin/gbr2bin oldlady.gbr oldlady.bin 0 7
cd resource/ext && ../../bin/gbr2bin oldmagi.gbr oldmagi.bin 0 7
cd resource/ext && ../../bin/gbr2bin oldman.gbr oldman.bin 0 7
cd resource/ext && ../../bin/gbr2bin portal.gbr portala.bin 0 7
cd resource/ext && ../../bin/gbr2bin portal.gbr portalb.bin 8 15
cd resource/ext && ../../bin/gbr2bin roland.gbr roland.bin 0 63
cd resource/ext && ../../bin/gbr2bin ryan.gbr ryan.bin 0 63
cd resource/ext && ../../bin/gbr2bin smoke.gbr smoke.bin 0 7
cd resource/ext && ../../bin/gbr2bin e_sold.gbr soldier.bin 0 7
cd resource/ext && ../../bin/gbr2bin soulgem.gbr soulgem.bin 0 7
cd resource/ext && ../../bin/gbr2bin unnamed.gbr unnamed.bin 0 7
cd resource/ext && ../../bin/gbr2bin victor2.gbr victor2.bin 0 63
cd resource/ext && ../../bin/gbr2bin victor.gbr victor.bin 0 63
cd resource/ext && ../../bin/gbr2bin wake2.gbr wake2a.bin 0 7
cd resource/ext && ../../bin/gbr2bin wake2.gbr wake2b.bin 8 15
cd resource/ext && ../../bin/gbr2bin wolf.gbr wolf.bin 0 7
cd resource/ext && ../../bin/gbr2bin woomagi.gbr woomagi.bin 0 7
cd resource/ext && rm -f game.j2w && ../../bin/j2w game.j2w infinity.in
cp resource/ext/zonemap.pag resource/zonemap.pag
resource/map00.pag: resource/ext/game.j2w
cd resource && ../bin/j2w ext/game.j2w
build/e.o: source/e.c
cd source && lcc -c -o ../build/e.o e.c
build/asm.o: source/asmfunc.s
cd source && lcc -c -Wa-g -o ../build/asm.o asmfunc.s
build/j.o: source/j.c
cd source && lcc -Wf-bo1 -c -o ../build/j.o j.c
build/j2.o: source/j2.c
cd source && lcc -Wf-bo2 -c -o ../build/j2.o j2.c
build/d1.o: source/d1.c source/data/dudepal.h source/data/dudepal2.h source/data/arrow_w.h source/data/cure1.h source/data/fire1.h source/data/fx1.h source/data/gemgfx.h source/data/itemgfx.h source/data/jolt1.h source/data/menugfx.h source/data/menuwing.h source/data/missgfx.h source/data/poof.h source/data/scratch1.h source/data/skillgfx.h source/data/slash1.h source/data/slurp.h source/data/spawn1.h source/data/staff1.h source/data/sword1.h source/data/tidal1.h source/data/wake.h source/data/whirl1.h source/data/wingding.h
cd source && lcc -Wf-bo3 -c -o ../build/d1.o d1.c
build/d2.o: source/d2.c source/data/slash1.h source/data/slurp.h source/data/spawn1.h source/data/whirl1.h
cd source && lcc -Wf-bo4 -c -o ../build/d2.o d2.c
build/m.o: source/m.c
cd source && lcc -Wf-bo5 -c -o ../build/m.o m.c
build/m2.o: source/m2.c
cd source && lcc -Wf-bo6 -c -o ../build/m2.o m2.c
build/b.o: source/b.c
cd source && lcc -Wf-bo7 -c -o ../build/b.o b.c
build/b2.o: source/b2.c
cd source && lcc -Wf-bo8 -c -o ../build/b2.o b2.c
build/b3.o: source/b3.c
cd source && lcc -Wf-bo9 -c -o ../build/b3.o b3.c
build/b4.o: source/b4.c
cd source && lcc -Wf-bo10 -c -o ../build/b4.o b4.c
build/b5.o: source/b5.c
cd source && lcc -Wf-bo11 -c -o ../build/b5.o b5.c
build/b6.o: source/b6.c
cd source && lcc -Wf-bo12 -c -o ../build/b6.o b6.c
build/dm.o: source/dfs_main.s
cd source && lcc -Wf-bo13 -c -Wa-g -o ../build/dm.o dfs_main.s
build/t.o: source/title.s
cd source && lcc -Wf-bo14 -c -Wa-g -o ../build/t.o title.s
build/j.gb: source/eve/itemdefs.h build/e.o build/asm.o build/j.o build/j2.o build/d1.o build/d2.o build/m.o build/m2.o build/b.o build/b2.o build/b3.o build/b4.o build/b5.o build/b6.o build/dm.o build/t.o resource/efr00.pag resource/txt00.pag resource/eve00.pag resource/map00.pag
cd build && lcc -Wl-m -Wl-yt27 -Wl-yo128 -Wl-ya4 -o j.gb e.o asm.o j.o j2.o m.o m2.o d1.o d2.o b.o b2.o b3.o b4.o b5.o b6.o dm.o t.o
cd resource && ../bin/inspage ../build/j.gb zonemap.pag 15
cd resource && ../bin/inspage ../build/j.gb efr00.pag 16
cd resource && ../bin/inspage ../build/j.gb eve00.pag 17
cd resource && ../bin/inspage ../build/j.gb eve01.pag 18
cd resource && ../bin/inspage ../build/j.gb eve02.pag 19
cd resource && ../bin/inspage ../build/j.gb txt00.pag 21
cd resource && ../bin/inspage ../build/j.gb txt01.pag 22
cd resource && ../bin/inspage ../build/j.gb txt02.pag 23
cd resource && ../bin/inspage ../build/j.gb txt03.pag 24
cd resource && ../bin/inspage ../build/j.gb txt04.pag 25
cd resource && ../bin/inspage ../build/j.gb txt05.pag 26
cd resource && ../bin/inspage ../build/j.gb txt06.pag 27
cd resource && ../bin/inspage ../build/j.gb table.pag 28
cd resource && ../bin/inspage ../build/j.gb spr00.pag 29
cd resource && ../bin/inspage ../build/j.gb spr01.pag 30
cd resource && ../bin/inspage ../build/j.gb spr02.pag 31
cd resource && ../bin/inspage ../build/j.gb spr03.pag 32
cd resource && ../bin/inspage ../build/j.gb spr04.pag 33
cd resource && ../bin/inspage ../build/j.gb spr05.pag 34
cd resource && ../bin/inspage ../build/j.gb spr06.pag 35
cd resource && ../bin/inspage ../build/j.gb spr07.pag 36
cd resource && ../bin/inspage ../build/j.gb spr08.pag 37
cd resource && ../bin/inspage ../build/j.gb stb00.pag 38
cd resource && ../bin/inspage ../build/j.gb stb01.pag 39
cd resource && ../bin/inspage ../build/j.gb stb02.pag 40
cd resource && ../bin/inspage ../build/j.gb stb03.pag 41
cd resource && ../bin/inspage ../build/j.gb stb04.pag 42
cd resource && ../bin/inspage ../build/j.gb stb05.pag 43
cd resource && ../bin/inspage ../build/j.gb stb06.pag 44
cd resource && ../bin/inspage ../build/j.gb map00.pag 45
cd resource && ../bin/inspage ../build/j.gb map01.pag 46
cd resource && ../bin/inspage ../build/j.gb map02.pag 47
cd resource && ../bin/inspage ../build/j.gb map03.pag 48
cd resource && ../bin/inspage ../build/j.gb map04.pag 49
cd resource && ../bin/inspage ../build/j.gb map05.pag 50
cd resource && ../bin/inspage ../build/j.gb map06.pag 51
cd resource && ../bin/inspage ../build/j.gb map07.pag 52
cd resource && ../bin/inspage ../build/j.gb audio1o.bin 63
cd resource && ../bin/inspage ../build/j.gb audio2o.bin 62
cd resource && ../bin/inspage ../build/j.gb audio1.bin 64
cd resource && ../bin/inspage ../build/j.gb audio2.bin 65
cd resource && ../bin/inspage ../build/j.gb audio3.bin 66
cd resource && ../bin/inspage ../build/j.gb audio4.bin 67
cd resource && ../bin/inspage ../build/j.gb audio5.bin 68
cd resource && ../bin/inspage ../build/j.gb audio6.bin 69
cd resource && ../bin/inspage ../build/j.gb audio7.bin 70
cd resource && ../bin/inspage ../build/j.gb audio8.bin 71
cd resource && ../bin/inspage ../build/j.gb audio9.bin 72
cd resource && ../bin/inspage ../build/j.gb audio10.bin 73
cd resource && ../bin/inspage ../build/j.gb audio11.bin 74
cd resource && ../bin/inspage ../build/j.gb audio12.bin 75
cd resource && ../bin/inspage ../build/j.gb audio13.bin 76
cd resource && ../bin/inspage ../build/j.gb audio14.bin 77
cd resource && ../bin/inspage ../build/j.gb audio15.bin 78
cd resource && ../bin/itemconv eve/items.ref ../build/j.gb
cd resource && ../bin/fixgb ../build/j.gb INFINITY