aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 09e0bf0..f56f7c5 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -47,10 +47,24 @@ OBJ = $(SRC:.c=.o)
blackmagic: $(OBJ)
$(CC) -o $@ $^ $(LDFLAGS)
-.PHONY: clean host_clean
+.PHONY: clean host_clean all_platforms
clean: host_clean
-$(RM) *.o *.d *~ blackmagic $(HOSTFILES)
-$(RM) platforms/*/*.o platforms/*/*.d mapfile
+all_platforms:
+ for i in platforms/*/Makefile.inc ; do \
+ export DIRNAME=`dirname $$i` ;\
+ export PROBE_HOST=`basename $$DIRNAME` ;\
+ export CFLAGS=-Werror ;\
+ echo $$PROBE_HOST ;\
+ $(MAKE) clean ;\
+ $(MAKE) ;\
+ if [ -f blackmagic.bin ]; then \
+ mv blackmagic.bin blackmagic-$$PROBE_HOST.bin ;\
+ fi ;\
+ done
+
-include *.d
+