summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-15 15:19:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-15 15:19:55 +0100
commit771b62b056cfebecf8fb5ed4e1938ffc12d167f8 (patch)
treece30e216a38055fd43951bb0c13abf06297a8323 /Makefile
parentd7ea6ad1cbcfaec12393a5789e0eef34e56c77b9 (diff)
Add basic help output
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 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