DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit 3aa409b828c1b65e9043df9a30ac781dd2c9ad74
parent 8e0eaa4ddd9d851da00a5f96d9c6ea6bad3c5c07
Author: falkTX <falktx@falktx.com>
Date:   Mon, 26 Sep 2022 16:15:33 +0100

Add makefile extra rules for MOD Audio stuff

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
MMakefile | 2++
MMakefile.base.mk | 47+++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -17,7 +17,9 @@ CAN_GENERATE_TTL = true endif dgl: +ifeq ($(HAVE_DGL),true) $(MAKE) -C dgl +endif examples: dgl $(MAKE) all -C examples/CVPort diff --git a/Makefile.base.mk b/Makefile.base.mk @@ -699,6 +699,53 @@ features: $(call print_available,HAVE_XRANDR) # --------------------------------------------------------------------------------------------------------------------- +# Extra rules for MOD Audio stuff + +# NOTE: note path must be absolute +MOD_WORKDIR ?= $(HOME)/mod-workdir +MOD_ENVIRONMENT = \ + AR=${1}/host/usr/bin/${2}-gcc-ar \ + CC=${1}/host/usr/bin/${2}-gcc \ + CPP=${1}/host/usr/bin/${2}-cpp \ + CXX=${1}/host/usr/bin/${2}-g++ \ + LD=${1}/host/usr/bin/${2}-ld \ + PKG_CONFIG=${1}/host/usr/bin/pkg-config \ + STRIP=${1}/host/usr/bin/${2}-strip \ + CFLAGS="-I${1}/staging/usr/include $(EXTRA_MOD_FLAGS)" \ + CPPFLAGS= \ + CXXFLAGS="-I${1}/staging/usr/include $(EXTRA_MOD_FLAGS)" \ + LDFLAGS="-L${1}/staging/usr/lib $(EXTRA_MOD_FLAGS)" \ + EXE_WRAPPER="qemu-${3}-static -L ${1}/target" \ + NOOPT=true + +modduo: + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm) + +modduox: + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64) + +moddwarf: + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64) + +modpush: + tar -C bin -cz $(subst bin/,,$(wildcard bin/*.lv2)) | base64 | curl -F 'package=@-' http://192.168.51.1/sdk/install && echo + +ifneq (,$(findstring modduo-,$(MAKECMDGOALS))) +$(MAKECMDGOALS): + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm) $(subst modduo-,,$(MAKECMDGOALS)) +endif + +ifneq (,$(findstring modduox-,$(MAKECMDGOALS))) +$(MAKECMDGOALS): + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64) $(subst modduox-,,$(MAKECMDGOALS)) +endif + +ifneq (,$(findstring moddwarf-,$(MAKECMDGOALS))) +$(MAKECMDGOALS): + $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64) $(subst moddwarf-,,$(MAKECMDGOALS)) +endif + +# --------------------------------------------------------------------------------------------------------------------- # Protect against multiple inclusion endif # DPF_MAKEFILE_BASE_INCLUDED