-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
75 lines (59 loc) · 2.2 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
C1541 = c1541.bat
CC1541 = cc1541
EXOMIZER = exomizer
EXOMIZERSFXOPTS = sfx basic -t 4 -n -s "lda 174 pha" -f "pla sta 174"
EXOMIZERMEMOPTS = mem -f -c
KICKASS = java -jar $(KICKASSPATH)/KickAss.jar
KICKASSOPTS += -showmem -symbolfile -bytedumpfile $(basename $@).lst
SRCS = $(wildcard *.asm)
PRGS = $(SRCS:.asm=.prg)
all: testdisk.d64 testdisk.d71 testdisk.d81 init.prg initquiet.prg stripped.prg extract
clean:
$(RM) *.prg *.lst *.d?? *.tmp *.sym
$(RM) -r sd2iec
%.prg: %.asm *.inc
$(KICKASS) $(KICKASSOPTS) -o $(basename $@).tmp $<
$(EXOMIZER) $(EXOMIZERSFXOPTS) -o $@ $(basename $@).tmp
bitmapexodata.prg: bitmap1.bin
$(EXOMIZER) $(EXOMIZERMEMOPTS) -o $@ $<
demo.prg: demo.asm *.inc
$(KICKASS) $(KICKASSOPTS) -o $@ demo.asm
hwdetect64.prg: hwdetect64.asm *.inc
$(KICKASS) $(KICKASSOPTS) -define prtstatus -o hwdetect64.tmp hwdetect64.asm
$(EXOMIZER) sfx basic -t 64 -n -o $@ hwdetect64.tmp
init.prg: init.asm *.inc
$(KICKASS) $(KICKASSOPTS) -define prtstatus -o init.tmp init.asm
$(EXOMIZER) $(EXOMIZERSFXOPTS) -o $@ init.tmp
initquiet.prg: init.asm *.inc
$(KICKASS) $(KICKASSOPTS) -o initquiet.tmp init.asm
$(EXOMIZER) $(EXOMIZERSFXOPTS) -o $@ initquiet.tmp
exotestdata.prg: dotctitle.bin
$(EXOMIZER) $(EXOMIZERMEMOPTS) -o $@ $<
stripped.prg: stripped.asm *.inc
$(KICKASS) $(KICKASSOPTS) -o $@ stripped.asm
strippedtest.prg: strippedtest.asm stripped.asm *.inc
$(KICKASS) $(KICKASSOPTS) -o $@ strippedtest.asm
testfile.prg: testfile.asm
$(KICKASS) $(KICKASSOPTS) -o $@ testfile.asm
testdata.prg: testdata.asm
$(KICKASS) $(KICKASSOPTS) -o $@ testdata.asm
testdisk.d64 testdisk.d71 testdisk.d81: $(PRGS) exotestdata.prg bitmapexodata.prg
$(RM) $@
$(CC1541) \
-n "iolibv3test" \
-f demo -w demo.prg \
-f iolibv3test -w iolibv3test.prg \
-f iolibv3exotest -w iolibv3exotest.prg \
-f b1 -w bitmap1.bin \
-f e1 -w bitmapexodata.prg \
-f testdata -w testdata.prg \
-f exotestdata -w exotestdata.prg \
-f "hwdetect plus/4" -w hwdetectplus4.prg \
-f "hwdetect 64" -w hwdetect64.prg \
-f "stripped loader" -w strippedtest.prg \
$@
extract: testdisk.d64
$(RM) -r sd2iec
mkdir sd2iec
$(C1541) -attach testdisk.d64 -cd sd2iec -extract 8 -cd ..
for i in sd2iec/* ; do mv "$$i" "$$i.prg" ; done