-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
109 lines (90 loc) · 3.7 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
all: bigsprite.d81
%.bin: %.png pngprepare
./pngprepare gihires $< $@
oli/%.bin: oli/%.png pngprepare
./pngprepare 80x50_32 $< $@
title/title.bin: title/title_32_clr.png pngprepare
./pngprepare 80x50_32 $< $@
paper/%.bin: paper/%.png pngprepare
./pngprepare hires_spr $< $@
pngprepare: pngprepare.c
$(CC) -I/usr/local/include -L/usr/local/lib -g -O0 -o pngprepare pngprepare.c -lpng
addpalette: addpalette.c
$(CC) -I/usr/local/include -L/usr/local/lib -g -O0 -o addpalette addpalette.c
PNGS = $(shell ls *.png)
BINS = $(patsubst %.png,%.bin,$(PNGS))
OLIPNGS = $(shell ls oli/*.png)
OLIBINS = $(patsubst %.png,%.bin,$(OLIPNGS))
PAPERPNGS = $(shell ls paper/*.png)
PAPERBINS = $(patsubst %.png,%.bin,$(PAPERPNGS))
intro.dat: title/title.bin title/title.pal addpalette
rm -f intro.dat
touch intro.dat
cat petscii/bas_char.bin >> intro.dat
cat petscii/bas_color.bin >> intro.dat
./addpalette title/title.pal intro.dat
cat title/title.bin >> intro.dat
cat bank4.bin >> intro.dat
muse.dat: $(BINS) $(OLIBINS) addpalette
rm -f bigsprite.prg
rm -f muse.dat
touch muse.dat
for bin in $(BINS) ; do \
cat $$bin >> muse.dat ; \
done
./addpalette xan.pal muse.dat
cat oli/s00.bin >> muse.dat
oli.dat: $(OLIBINS)
rm -f oli.dat
touch oli.dat
for bin in $(OLIBINS) ; do \
if [ "$$bin" != "oli/s00.bin" ] ; then \
cat $$bin >> oli.dat ; \
fi \
done
paper.dat: $(PAPERBINS)
rm -f paper.dat
touch paper.dat
for bin in $(PAPERBINS) ; do \
cat $$bin >> paper.dat ; \
done
pushdat: muse.dat paper.dat intro.dat
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -delete muse.dat -write muse.dat
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -delete oli.dat -write oli.dat
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -delete paper.dat -write paper.dat
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -delete intro.dat -write intro.dat
getbas:
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\MEGA65.D81" -read grab grab.prg
petcat -65 -o grab.bas -- grab.prg
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\MEGA65.D81" -read alive alive.prg
petcat -65 -o alive.bas -- alive.prg
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\MEGA65.D81" -read magic magic.prg
petcat -65 -o magic.bas -- magic.prg
bigsprite.prg: c:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -read bigsprite bigsprite.prg
bigsprite.d81: muse.dat paper.dat bigsprite.prg
rm -f bigsprite.prg
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -read bigsprite bigsprite.prg
rm -f bigsprite.d81
c1541 -format bigsprite,gi d81 bigsprite.d81
c1541 -attach bigsprite.d81 -write bigsprite.prg bigsprite
c1541 -attach bigsprite.d81 -write muse.dat
c1541 -attach bigsprite.d81 -write oli.dat
c1541 -attach bigsprite.d81 -write paper.dat
c1541 -attach bigsprite.d81 -write bigsprite.el bigsprite.el,s
XANADU.D81: muse.dat paper.dat intro.dat oli.dat
rm -f xanadu.d81
c1541 -attach "C:\Users\gurcei\AppData\Roaming\xemu-lgb\mega65\hdos\11.D81" -read bigsprite bigsprite.prg -read xanadu-basic65 xanadu-basic65.prg
c1541 -format xanadu,gi d81 xanadu.d81
c1541 -attach xanadu.d81 -write autoboot.c65.prg autoboot.c65
c1541 -attach xanadu.d81 -write xanadu-basic65.prg xanadu-basic65
c1541 -attach xanadu.d81 -write bigsprite.prg bigsprite
c1541 -attach xanadu.d81 -write intro.dat
c1541 -attach xanadu.d81 -write paper.dat
c1541 -attach xanadu.d81 -write muse.dat
c1541 -attach xanadu.d81 -write oli.dat
clean:
rm -f bigsprite.prg bigsprite.d81
rm -f *.o
rm -f *.bin
rm -f *.dat