-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (37 loc) · 1.12 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
SUBDIRS := drivecode \
loader \
demo \
hwdetect
all: $(SUBDIRS) testdisk.d64 testdisk.d71 testdisk.d81 extract
include defaults.mk
.PHONY: $(SUBDIRS) all
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
clean: $(SUBDIRS)
$(CLEANCMD)
rm -rf sd2iec/*
%.prg: %.asm
$(KICKASS) $(KICKASSOPTS) -o $(basename $@).tmp $<
$(EXOMIZER) $(EXOMIZERSFXOPTS) -o $@ $(basename $@).tmp
testdisk.d64 testdisk.d71 testdisk.d81: $(SUBDIRS)
$(RM) $@
$(CC1541) \
-n "iolibv4test" \
-f demo -w demo/demo.prg \
-f iolibv3test -w demo/iolibv3test.prg \
-f iolibv3exotest -w demo/iolibv3exotest.prg \
-f b1 -w demo/bitmap1.bin \
-f e1 -w demo/bitmapexodata.prg \
-f testdata -w demo/testdata.prg \
-f exotestdata -w demo/exotestdata.prg \
-f "hwdetect-plus4" -w hwdetect/hwdetectplus4.prg \
-f "hwdetect-64" -w hwdetect/hwdetect64.prg \
-f "init" -w loader/init.prg \
-f "initquiet" -w loader/initquiet.prg \
-f "stripped loader" -w loader/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