-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (27 loc) · 1.13 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
TOPTARGETS := all clean
SUBDIRS := firmware
$(TOPTARGETS): $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(TOPTARGETS) $(SUBDIRS)
apple1serial-C000.bin:
xa -DOFFSET="0" -W -C -v -O ASCII -c src/apple1serial.a65 -l apple1serial-C000.label -o apple1serial-C000.bin
apple1serial-C300.bin:
xa -DOFFSET="768" -W -C -v -O ASCII -c src/apple1serial.a65 -l apple1serial-C300.label -o apple1serial-C300.bin
apple1serial-C600.bin:
xa -DOFFSET="1536" -W -C -v -O ASCII -c src/apple1serial.a65 -l apple1serial-C600.label -o apple1serial-C600.bin
all: apple1serial-C000.bin apple1serial-C300.bin apple1serial-C600.bin
clean:
rm -f apple1serial*.bin apple1serial*.label
burn-C000-gal:
minipro -p GAL20V8B -w mapping/address_decoder-C000.jed
burn-C000-rom: apple1serial-C000.bin
minipro -s -p 28C64B -w apple1serial-C000.bin
burn-C300-gal:
minipro -p GAL20V8B -w mapping/address_decoder-C300.jed
burn-C300-rom: apple1serial-C300.bin
minipro -s -p 28C64B -w apple1serial-C300.bin
burn-C600-gal:
minipro -p GAL20V8B -w mapping/address_decoder-C600.jed
burn-C600-rom: apple1serial-C600.bin
minipro -s -p 28C64B -w apple1serial-C600.bin