diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-21 14:29:46 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-21 14:29:46 +0000 |
commit | 77c0d5d35459864bf06c0136469a70b9c058c8ec (patch) | |
tree | 758c796570efef453700bb170631d989337eaf3b | |
parent | 5a1a1fc4ffbda16404f7358c550d784b0692984e (diff) | |
download | ChibiOS-77c0d5d35459864bf06c0136469a70b9c058c8ec.tar.gz ChibiOS-77c0d5d35459864bf06c0136469a70b9c058c8ec.tar.bz2 ChibiOS-77c0d5d35459864bf06c0136469a70b9c058c8ec.zip |
Added autobuilder.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11051 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | tools/mk/autobuild.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/mk/autobuild.mk b/tools/mk/autobuild.mk new file mode 100644 index 000000000..12890c7cb --- /dev/null +++ b/tools/mk/autobuild.mk @@ -0,0 +1,18 @@ +# Source files located under $(AUTOBUILD_ROOT) are automatically added.
+ifeq ($(AUTOBUILD_ROOT),)
+ AUTOBUILD_ROOT := ./source/
+endif
+
+rwildcard := $(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2))
+AUTOCSRC := $(call rwildcard,$(AUTOBUILD_ROOT),*.c)
+AUTOCPPSRC := $(call rwildcard,$(AUTOBUILD_ROOT),*.cpp)
+AUTOASMSRC := $(call rwildcard,$(AUTOBUILD_ROOT),*.s)
+AUTOXASMSRC := $(call rwildcard,$(AUTOBUILD_ROOT),*.S)
+AUTOINC := $(sort $(dir $(call rwildcard,$(AUTOBUILD_ROOT),*)))
+
+# Shared variables.
+ALLCSRC += $(AUTOCSRC)
+ALLCPPSRC += $(AUTOCPPSRC)
+ALLASMSRC += $(AUTOASMSRC)
+ALLXASMSRC += $(AUTOXASMSRC)
+ALLINC += $(AUTOINC)
|