-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (27 loc) · 789 Bytes
/
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
UPLOAD = $(HOME)/8bitcomputer/eepromprogrammer/upload/upload
FLASHER = ./flasher/flasher
PROG_SERIAL = /dev/ttyUSB1
6809_SERIAL = /dev/ttyUSB0
BIN = monitor.bin
MAP = monitor.map
INC = monitor.inc
MONITOR_ASM = monitor.asm
ASMS = jumptable.asm misc.asm ramvars.asm storage.asm spi.asm serial.asm \
strings.asm ay.asm disassembly.asm font.asm v99.asm keyboard.asm \
timer.asm io.asm terminal.asm buzzer.asm
INCS = hardware.inc
all: $(BIN) $(INC)
%.bin: %.ihx
hex2bin -out $@ $<
%.ihx: %.rel
aslink -nmwi $<
%.rel: $(ASMS) $(INCS) $(MONITOR_ASM)
as6809 -oxs $(MONITOR_ASM)
$(INC): $(MAP)
./map2inc.pl < $(MAP) > $(INC)
clean:
rm -f $(BIN) $(INC) *.rel *.ihx *.map *.sym
doupload:
$(UPLOAD) -f $(BIN) -s $(PROG_SERIAL)
doflasher:
$(FLASHER) -f $(BIN) -s $(6809_SERIAL)