-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
45 lines (31 loc) · 1.27 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
# See https://github.com/bxparks/EpoxyDuino for documentation about this
# Makefile to compile and run Arduino programs natively on Linux or MacOS.
APP_NAME := ChannelBenchmark
ARDUINO_LIBS := AceCommon AceRoutine
include ../../../EpoxyDuino/EpoxyDuino.mk
.PHONY: benchmarks
AUNITER_DIR := ../../../AUniter/tools
TARGETS := nano.txt micro.txt stm32.txt esp8266.txt esp32.txt teensy32.txt
README.md: generate_readme.py generate_table.awk $(TARGETS)
./generate_readme.py > $@
benchmarks: $(TARGETS)
# The USB/ACM ports can change dynamically. Make sure that the microcontroller
# is on the correct port before using these Make targets.
nano.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END nano:USB0
micro.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END micro:ACM0
stm32.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END stm32:ACM0
esp8266.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END nodemcu:USB0
esp32.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END esp32:USB0
# Teensy requires manual capture of teensy32.txt. This Makefile rule is an
# aspirational hope for consistency.
teensy32.txt:
$(AUNITER_DIR)/auniter.sh upmon -o $@ --eof END teensy32:ACM0
more_clean:
echo "Use 'make clean_benchmarks' to remove *.txt files"
clean_benchmarks:
rm -f $(TARGETS)