-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRules.launch
47 lines (38 loc) · 932 Bytes
/
Rules.launch
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
# -*-makefile-*-
ifneq ($(findstring darwin,$(OSTYPE)),)
#SENDOBJ=$(BLL_ROOT)/sendobj.js/sendobj.js
SENDOBJ=python3 $(BLL_ROOT)/sendobj.py/sendobj.py -q
FLASHER=python3 $(BLL_ROOT)/flash_up.py/flash_up.py -q
COM?=/dev/tty.usbserial-FT63V37G
else
SENDOBJ=sendobj.exe
FLASHER=flash_up.exe
COM?=COM7
endif
MACOS=@prlexec --vm "Windows 11" -r
ifeq ($(findstring aarch64,$(MACHTYPE)),aarch64)
FELIX=$(MACOS) /fun/felix.exe
HANDY=$(MACOS) /fun/handy/handybug.exe
else
FELIX=/fun/lynx/Felix.exe
HANDY=/fun/lynx/handy/handybug.exe
endif
BAUD?=1000000
.PHONY: send
send: $(DEMO).o
@$(SENDOBJ) -b $(BAUD) -p $(COM) $<
.PHONY: erase
erase:
@$(FLASHER) -b $(BAUD) -p $(COM) -e
.PHONY: flash
flash: lnx
@$(FLASHER) -b $(BAUD) -p $(COM) -e -f $(DEMO).lnx
.PHONY: sram
sram: lnx
@sram_up.exe -b $(BAUD) -p $(COM) -w $(DEMO).lnx
felix: $(DEMO).o
$(FELIX) $<
felix_lnx felix_rom: $(DEMO).lnx
$(FELIX) $<
handy: $(DEMO).o
$(HANDY) $<