DISTRHO Kars
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for DISTRHO Plugins #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. include dpf/Makefile.base.mk
  7. all: plugins gen
  8. # --------------------------------------------------------------
  9. plugins:
  10. $(MAKE) all -C plugins/Kars
  11. ifneq ($(CROSS_COMPILING),true)
  12. gen: plugins dpf/utils/lv2_ttl_generator
  13. @$(CURDIR)/dpf/utils/generate-ttl.sh
  14. ifeq ($(MACOS),true)
  15. @$(CURDIR)/dpf/utils/generate-vst-bundles.sh
  16. endif
  17. dpf/utils/lv2_ttl_generator:
  18. $(MAKE) -C dpf/utils/lv2-ttl-generator
  19. else
  20. gen:
  21. endif
  22. # --------------------------------------------------------------
  23. # NOTE: note path must be absolute
  24. MOD_WORKDIR ?= $(HOME)/mod-workdir
  25. 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" CPPFLAGS= CXXFLAGS="-I${1}/staging/usr/include" LDFLAGS="-L${1}/staging/usr/lib" \ EXE_WRAPPER="qemu-${3}-static -L ${1}/target"
  26. modduo:
  27. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm)
  28. modduox:
  29. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64)
  30. moddwarf:
  31. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64)
  32. publish:
  33. tar -C bin -cz $(subst bin/,,$(wildcard bin/*.lv2)) | base64 | curl -F 'package=@-' http://192.168.51.1/sdk/install && echo
  34. ifneq (,$(findstring modduo-,$(MAKECMDGOALS)))
  35. $(MAKECMDGOALS):
  36. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduo,arm-mod-linux-gnueabihf,arm) $(subst modduo-,,$(MAKECMDGOALS))
  37. endif
  38. ifneq (,$(findstring modduox-,$(MAKECMDGOALS)))
  39. $(MAKECMDGOALS):
  40. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/modduox,aarch64-mod-linux-gnueabi,aarch64) $(subst modduox-,,$(MAKECMDGOALS))
  41. endif
  42. ifneq (,$(findstring moddwarf-,$(MAKECMDGOALS)))
  43. $(MAKECMDGOALS):
  44. $(MAKE) $(call MOD_ENVIRONMENT,$(MOD_WORKDIR)/moddwarf,aarch64-mod-linux-gnu,aarch64) $(subst moddwarf-,,$(MAKECMDGOALS))
  45. endif
  46. # --------------------------------------------------------------
  47. clean:
  48. $(MAKE) clean -C dpf/utils/lv2-ttl-generator
  49. $(MAKE) clean -C plugins/Kars
  50. rm -rf bin build
  51. # --------------------------------------------------------------
  52. .PHONY: plugins