summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile17
-rw-r--r--src/arch/arduino-nano/Makefile.inc7
-rw-r--r--src/arch/esp8266/Makefile.inc6
-rw-r--r--src/arch/msp430fr5969lp/Makefile.inc6
-rw-r--r--src/arch/posix/Makefile.inc6
5 files changed, 37 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index cf5d8b7..45244fc 100644
--- a/Makefile
+++ b/Makefile
@@ -33,4 +33,19 @@ include src/arch/${arch}/Makefile.inc
clean: arch_clean
rm -f build/system.elf
-.PHONY: clean
+help: arch_help
+ @echo
+ @echo "Global flags:"
+ @echo " timer_cycles timer_us timer_s"
+ @echo " loop"
+ @echo
+ @echo "${arch} drivers:"
+ @echo " $(shell ls src/arch/${arch}/driver | fgrep .c | cut -d . -f 1)"
+ @echo
+ @echo "Global drivers:"
+ @echo " $(shell ls src/driver | fgrep .c | cut -d . -f 1)"
+ @echo
+ @echo "Global architectures:"
+ @echo " $(shell ls src/arch)"
+
+.PHONY: clean help
diff --git a/src/arch/arduino-nano/Makefile.inc b/src/arch/arduino-nano/Makefile.inc
index 68e040f..a7c0fa9 100644
--- a/src/arch/arduino-nano/Makefile.inc
+++ b/src/arch/arduino-nano/Makefile.inc
@@ -39,4 +39,9 @@ arch_clean:
monitor:
screen ${PORT} 115200
-.PHONY: arch_clean monitor program
+arch_help:
+ @echo "arduino-nano specific flags:"
+ @echo " PORT = ${PORT}"
+ @echo " BAUD = ${BAUD} (only used for programming)"
+
+.PHONY: arch_clean arch_help monitor program
diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc
index a4b9831..6fdcf4b 100644
--- a/src/arch/esp8266/Makefile.inc
+++ b/src/arch/esp8266/Makefile.inc
@@ -53,4 +53,8 @@ arch_clean:
monitor:
screen /dev/ttyUSB0 115200
-.PHONY: arch_clean monitor program
+arch_help:
+ @echo "esp8266 specific flags:"
+ @echo " - none -"
+
+.PHONY: arch_clean arch_help monitor program
diff --git a/src/arch/msp430fr5969lp/Makefile.inc b/src/arch/msp430fr5969lp/Makefile.inc
index 8d3647d..9786785 100644
--- a/src/arch/msp430fr5969lp/Makefile.inc
+++ b/src/arch/msp430fr5969lp/Makefile.inc
@@ -42,4 +42,8 @@ arch_clean:
monitor:
screen /dev/ttyACM1 115200
-.PHONY: arch_clean monitor program
+arch_help:
+ @echo "msp430fR5969lp specific flags:"
+ @echo " - none -"
+
+.PHONY: arch_clean arch_help monitor program
diff --git a/src/arch/posix/Makefile.inc b/src/arch/posix/Makefile.inc
index 03b6f67..37c8e0e 100644
--- a/src/arch/posix/Makefile.inc
+++ b/src/arch/posix/Makefile.inc
@@ -26,4 +26,8 @@ program: run
arch_clean:
rm -f ${OBJECTS}
-.PHONY: arch_clean monitor program run
+arch_help:
+ @echo "posix specific flags:"
+ @echo " - none -"
+
+.PHONY: arch_clean arch_help monitor program run