hackrf/firmware/Makefile
Jared Boone 33617e6701 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...
2012-07-31 22:03:58 -07:00

39 lines
682 B
Makefile

# 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