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
|
2015-03-07 18:32:52 +00:00
|
|
|
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
|
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
|
|
|
|
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
|
|
|
|