aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--contrib/loaders/Makefile33
2 files changed, 34 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3e6e1e9..0f217a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,6 +71,7 @@ install-sh
libtool
ltmain.sh
Makefile
+!contrib/loaders/**/Makefile
mdate-sh
missing
stamp-h1
diff --git a/contrib/loaders/Makefile b/contrib/loaders/Makefile
new file mode 100644
index 0000000..cd37dde
--- /dev/null
+++ b/contrib/loaders/Makefile
@@ -0,0 +1,33 @@
+.PHONY: arm clean-arm
+
+all: arm
+
+common_dirs = \
+ checksum \
+ erase_check \
+ flash/kinetis_ke \
+ watchdog
+
+ARM_CROSS_COMPILE ?= arm-none-eabi-
+
+arm_dirs = \
+ flash/fm4 \
+ flash/xmc1xxx
+
+arm:
+ for d in $(common_dirs); do \
+ $(MAKE) -C $$d arm; \
+ done
+ for d in $(arm_dirs); do \
+ $(MAKE) -C $$d all CROSS_COMPILE=$(ARM_CROSS_COMPILE); \
+ done
+
+clean-arm:
+ for d in $(arm_dirs); do \
+ $(MAKE) -C $$d clean; \
+ done
+
+clean: clean-arm
+ for d in $(common_dirs); do \
+ $(MAKE) -C $$d clean; \
+ done