forked from c64scene-ar/chipdisk-nac-vol.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
85 lines (70 loc) · 3.07 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
.SILENT:
.PHONY: all clean buttons
X64 = x64sc
D64_IMAGE = "bin/chipdisk-nac.d64"
C1541 = c1541
all: easteregg_txt easteregg chipdisk decrunch_chipdisk intro run
SRC = src/main.s src/chipdisk.s src/exodecrunch.s src/utils.s
d64:
echo "Generating d64 file..."
$(C1541) -format "chipdisk ii,96" d64 $(D64_IMAGE)
$(C1541) $(D64_IMAGE) -write bin/intro-exo.prg chipdisk
$(C1541) $(D64_IMAGE) -list
run: d64
echo "Running game"
$(X64) -verbose -moncommands bin/intro.sym $(D64_IMAGE)
chipdisk: ${SRC}
echo
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
echo Building Player
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -t c64 -C chipdisk.cfg $^
exomizer mem -o bin/[email protected] bin/[email protected]
cp bin/[email protected] src/
#cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -u __EXEHDR__ -t c64 -C chipdisk.cfg $^
#exomizer sfx sys -x1 -Di_line_number=1996 -o bin/[email protected] bin/[email protected]
testchipdisk: chipdisk
$(X64) -moncommands bin/chipdisk.sym bin/chipdisk.prg
easteregg: src/easteregg.s
echo
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
echo Building EasterEgg
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
cp res/aeiou_acentos-charset.bin src/
cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -t c64 -C easteregg.cfg $^
exomizer mem -o bin/[email protected] bin/[email protected]
cp bin/[email protected] src/
easteregg_txt: src/easteregg_txt.s
echo
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
echo Building EasterEgg Scroll Text
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -t c64 -C easteregg_txt.cfg $^
exomizer mem -o bin/[email protected] bin/[email protected]
cp bin/[email protected] src/
testeaster: easteregg
$(X64) -moncommands bin/easteregg.sym bin/easteregg.prg
decrunch_chipdisk: src/decrunch_chipdisk.s
echo
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
echo Building Decruncher for chipdisk
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -t c64 -C decrunch_chipdisk.cfg $^
cp bin/[email protected] src/
intro: src/intro.s
echo
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
echo Building Intro
echo =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-cp res/octavo-arlequin-pvmlogoc64_1m_remix-map.bin src/
-cp res/octavo-arlequin-pvmlogoc64_1m_remix-charset.bin src/
-cp res/linyera-map.bin src/
cl65 -d -g -Ln bin/[email protected] -o bin/[email protected] -u __EXEHDR__ -t c64 -C intro.cfg $^
exomizer sfx sys -x1 -Di_line_number=1996 -o bin/[email protected] bin/[email protected]
buttons:
src/extract_image.py 7 7 <res/buttons/play.prg >src/button_play.raw
src/extract_image.py 7 7 <res/buttons/rew.prg >src/button_rew.raw
src/extract_image.py 7 7 <res/buttons/ff.prg >src/button_ff.raw
src/extract_image.py 7 7 <res/buttons/stop.prg >src/button_stop.raw
clean:
rm -f src/*.o bin/*.sym bin/*.prg