mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-14 12:31:18 +02:00
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
--- ./Makefile.orig 2019-04-15 14:41:21.000000000 +0200
|
|
+++ ./Makefile 2019-04-21 17:46:06.087895000 +0200
|
|
@@ -28,15 +28,7 @@
|
|
SRCLIBDIR:= $(subst $(space),\$(space),$(realpath lib))
|
|
|
|
TARGETS ?= stm32/f0 stm32/f1 stm32/f2 stm32/f3 stm32/f4 stm32/f7 \
|
|
- stm32/l0 stm32/l1 stm32/l4 \
|
|
- gd32/f1x0 \
|
|
- lpc13xx lpc17xx lpc43xx/m4 lpc43xx/m0 \
|
|
- lm3s lm4f msp432/e4 \
|
|
- efm32/tg efm32/g efm32/lg efm32/gg efm32/hg efm32/wg \
|
|
- efm32/ezr32wg \
|
|
- sam/3a sam/3n sam/3s sam/3u sam/3x sam/4l \
|
|
- sam/d \
|
|
- vf6xx
|
|
+ stm32/l0 stm32/l1 stm32/l4
|
|
|
|
# Be silent per default, but 'make V=1' will show all compiler calls.
|
|
ifneq ($(V),1)
|
|
@@ -77,6 +69,18 @@
|
|
done;
|
|
$(Q)[ -f .stamp_failure_tld ] && cat .stamp_failure_tld && exit 1 || true;
|
|
|
|
+install: lib
|
|
+ @printf " INSTALL headers\n"
|
|
+ $(Q)$(INSTALL) -d $(INCDIR)/libopencm3
|
|
+ $(Q)$(INSTALL) -d $(INCDIR)/libopencmsis
|
|
+ $(Q)$(INSTALL) -d $(LIBDIR)
|
|
+ $(Q)cp -r include/libopencm3/* $(INCDIR)/libopencm3
|
|
+ $(Q)cp -r include/libopencmsis/* $(INCDIR)/libopencmsis
|
|
+ @printf " INSTALL libs\n"
|
|
+ $(Q)$(INSTALL) -m 0644 lib/*.a $(LIBDIR)
|
|
+ @printf " INSTALL ldscripts\n"
|
|
+ $(Q)$(INSTALL) -m 0644 lib/*.ld $(LIBDIR)
|
|
+
|
|
html doc:
|
|
$(Q)$(MAKE) -C doc html TARGETS="$(TARGETS)"
|
|
|
|
@@ -122,4 +126,4 @@
|
|
fi;
|
|
|
|
|
|
-.PHONY: build lib $(LIB_DIRS) doc clean generatedheaders cleanheaders stylecheck genlinktests genlinktests.clean
|
|
+.PHONY: build lib $(LIB_DIRS) install doc clean generatedheaders cleanheaders stylecheck genlinktests
|