-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (29 loc) · 847 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
41
42
43
44
45
# make Z80_dongle, include changes to the GS Basic intmini
PRJ = Z80_dongle
FQBN = arduino:avr:mega
PORT = /dev/ttyACM0
INO = $(PRJ)/$(PRJ).ino
ASM = NascomBasic/intmini.asm NascomBasic/basic.asm TinyBasic2/tinybasic2.asm basic1K/basic1K.asm
OPC = opcodes/opcode*.txt opcodes/*.py opcodes/Makefile
BUILD = $(PRJ)/build/$(subst :,.,$(FQBN))
DONGLE = $(BUILD)/$(PRJ).ino.hex
INC = $(PRJ)/*.h
$(DONGLE): $(INO) $(ASM) $(INC) $(OPC) Makefile
make -C opcodes
make -C NascomBasic
make -C TinyBasic2
make -C basic1K
arduino-cli compile --export-binaries --warnings all --fqbn $(FQBN) $<
.PHONY: upload
upload: $(DONGLE)
-killall picocom
arduino-cli upload -v -p $(PORT) -i $<
.PHONY: touch
touch:
touch $(INO)
.PHONY: clean
clean:
make -C opcodes clean
make -C NascomBasic clean
make -C TinyBasic2 clean
make -C basic1K clean