2015-03-07 18:32:52 +00:00
|
|
|
ifneq ($(V), 1)
|
|
|
|
MFLAGS += --no-print-dir
|
|
|
|
Q := @
|
|
|
|
endif
|
|
|
|
|
2019-07-19 13:42:19 +00:00
|
|
|
PC_HOSTED =
|
2019-08-05 13:24:16 +00:00
|
|
|
NO_LIBOPENCM3 =
|
2020-08-21 03:59:34 +00:00
|
|
|
ifeq ($(PROBE_HOST), hosted)
|
2019-10-01 12:06:30 +00:00
|
|
|
PC_HOSTED = true
|
|
|
|
NO_LIBOPENCM3 = true
|
|
|
|
endif
|
2019-07-19 13:42:19 +00:00
|
|
|
|
2012-10-22 05:50:06 +00:00
|
|
|
all:
|
2019-08-05 13:24:16 +00:00
|
|
|
ifndef NO_LIBOPENCM3
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)if [ ! -f libopencm3/Makefile ]; then \
|
2015-03-06 06:17:22 +00:00
|
|
|
echo "Initialising git submodules..." ;\
|
|
|
|
git submodule init ;\
|
|
|
|
git submodule update ;\
|
|
|
|
fi
|
2022-03-15 20:33:51 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib/stm32/f1 lib/stm32/f4 lib/lm4f
|
2019-07-19 13:42:19 +00:00
|
|
|
endif
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C src
|
2012-10-22 05:50:06 +00:00
|
|
|
|
2022-06-04 00:32:24 +00:00
|
|
|
all_platforms:
|
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
|
|
|
|
2015-03-07 18:32:52 +00:00
|
|
|
clean:
|
2019-08-05 13:24:16 +00:00
|
|
|
ifndef NO_LIBOPENCM3
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 $@
|
2019-07-19 13:42:19 +00:00
|
|
|
endif
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C src $@
|
2012-10-22 05:50:06 +00:00
|
|
|
|
2022-06-05 01:28:04 +00:00
|
|
|
clang-tidy:
|
|
|
|
$(Q)scripts/run-clang-tidy.py -s "$(PWD)"
|
|
|
|
|
|
|
|
.PHONY: clean all_platforms clang-tidy
|