blackmagic/Makefile

38 lines
672 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), libftdi)
PC_HOSTED = true
NO_LIBOPENCM3 = true
endif
ifeq ($(PROBE_HOST), pc-stlinkv2)
PC_HOSTED = true
NO_LIBOPENCM3 = true
endif
ifeq ($(PROBE_HOST), pc-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
2015-03-07 18:32:52 +00:00
$(Q)$(MAKE) $(MFLAGS) -C libopencm3 lib
endif
2015-03-07 18:32:52 +00:00
$(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 $@