From 33617e67011eebc3cfbf8f8470c19cde1ad65005 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Tue, 31 Jul 2012 22:03:58 -0700 Subject: [PATCH] Makefile for all firmware projects. TODO: There's still something broken about the *_rom_to_ram projects, but I'm not sure what it is yet... --- firmware/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 firmware/Makefile diff --git a/firmware/Makefile b/firmware/Makefile new file mode 100644 index 00000000..9111dbd7 --- /dev/null +++ b/firmware/Makefile @@ -0,0 +1,38 @@ +# Hey Emacs, this is a -*- makefile -*- + +TARGETS = blinky \ + mixertx \ + sgpio \ + sgpio-rx \ + simpletx \ + startup \ + startup_systick \ + startup_systick_perfo \ + usb_performance + +# blinky_rom_to_ram +# sgpio_passthrough_rom_to_ram +# startup_systick_perfo_rom_to_ram + +all: build + +build: examples + +examples: + $(Q)for i in $(TARGETS); do \ + if [ -d $$i ]; then \ + printf " BUILD $$i\n"; \ + $(MAKE) -C $$i || exit $?; \ + fi; \ + done + +clean: + $(Q)for i in $(addprefix lib/,$(TARGETS)) \ + $(TARGETS); do \ + if [ -d $$i ]; then \ + printf " CLEAN $$i\n"; \ + $(MAKE) -C $$i clean || exit $?; \ + fi; \ + done + +.PHONY: build examples