blackmagic/Makefile

40 lines
749 B
Makefile
Raw Normal View History

2015-03-07 18:32:52 +00:00
ifneq ($(V), 1)
MFLAGS += --no-print-dir
Q := @
endif
PC_HOSTED =
NO_LIBOPENCM3 =
ifeq ($(PROBE_HOST), hosted)
PC_HOSTED = true
NO_LIBOPENCM3 = true
endif
all:
ifndef NO_LIBOPENCM3
2015-03-07 18:32:52 +00:00
$(Q)if [ ! -f libopencm3/Makefile ]; then \
echo "Initialising git submodules..." ;\
git submodule init ;\
git submodule update ;\
fi
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib/stm32/f1 lib/stm32/f4 lib/lm4f
endif
2015-03-07 18:32:52 +00:00
$(Q)$(MAKE) $(MFLAGS) -C src
all_platforms:
$(Q)$(MAKE) $(MFLAGS) -C src $@
2015-03-07 18:32:52 +00:00
clean:
ifndef NO_LIBOPENCM3
2015-03-07 18:32:52 +00:00
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
endif
2015-03-07 18:32:52 +00:00
$(Q)$(MAKE) $(MFLAGS) -C src $@
clang-tidy:
$(Q)scripts/run-clang-tidy.py -s "$(PWD)"
clang-format:
$(Q)$(MAKE) $(MFLAGS) -C src $@
.PHONY: clean all_platforms clang-tidy clang-format