stm32-ada/Makefile

29 lines
472 B
Makefile

.PHONY: all clean library examples test
TARGET = \
embedded_stm32f4 \
embedded_stm32f429disco \
light_stm32f4 \
light_tasking_stm32f4 \
light_tasking_stm32f429disco
LIBRARY_TARGET = $(TARGET:%=%_library)
all: library examples
library: $(LIBRARY_TARGET)
$(LIBRARY_TARGET):
gprbuild -P library/gpr/$@.gpr
clean: $(LIBRARY_TARGET:%=%-clean)
%-clean:
gprclean -P library/gpr/$*.gpr
examples:
cd examples; make all
test:
echo $(TARGET)
echo $(LIBRARY_TARGET)