Audio plugin host https://kx.studio/carla
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.

155 lines
4.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-discovery #
  3. # ---------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. BUILD_CXX_FLAGS += -I../backend -I../includes -I../utils -isystem ../modules -Wno-multichar
  9. ifeq ($(MACOS),true)
  10. BUILD_CXX_FLAGS += -ObjC++
  11. endif
  12. BUILD_CXX_FLAGS += $(QTCORE_FLAGS)
  13. LINK_FLAGS += $(QTCORE_LIBS)
  14. # --------------------------------------------------------------
  15. BUILD_CXX_FLAGS += -DWANT_NATIVE
  16. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  17. BUILD_CXX_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  18. ifeq ($(CARLA_VESTIGE_HEADER),true)
  19. BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  20. endif
  21. endif
  22. # --------------------------------------------------------------
  23. # ifeq ($(HAVE_CSOUND),true)
  24. # NATIVE_FLAGS += $(shell pkg-config --cflags --libs sndfile) -lcsound64 -DWANT_CSOUND
  25. # endif
  26. ifeq ($(HAVE_FLUIDSYNTH),true)
  27. NATIVE_FLAGS += $(FLUIDSYNTH_FLAGS) $(FLUIDSYNTH_LIBS) -DWANT_FLUIDSYNTH
  28. endif
  29. ifeq ($(HAVE_LINUXSAMPLER),true)
  30. NATIVE_FLAGS += $(LINUXSAMPLER_FLAGS) $(LINUXSAMPLER_LIBS) -DWANT_LINUXSAMPLER
  31. endif
  32. # --------------------------------------------------------------
  33. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  34. LIBS += ../modules/lilv.a
  35. LIBS_posix32 += ../modules/lilv.posix32.a
  36. LIBS_posix64 += ../modules/lilv.posix64.a
  37. LIBS_win32 += ../modules/lilv.win32.a
  38. LIBS_win64 += ../modules/lilv.win64.a
  39. LINK_FLAGS += $(LILV_LIBS)
  40. endif
  41. ifeq ($(HAVE_JUCE),true)
  42. LIBS += ../modules/juce_audio_basics.a
  43. LIBS_posix32 += ../modules/juce_audio_basics.posix32.a
  44. LIBS_posix64 += ../modules/juce_audio_basics.posix64.a
  45. LIBS_win32 += ../modules/juce_audio_basics.win32.a
  46. LIBS_win64 += ../modules/juce_audio_basics.win64.a
  47. LIBS += ../modules/juce_core.a
  48. LIBS_posix32 += ../modules/juce_core.posix32.a
  49. LIBS_posix64 += ../modules/juce_core.posix64.a
  50. LIBS_win32 += ../modules/juce_core.win32.a
  51. LIBS_win64 += ../modules/juce_core.win64.a
  52. LINK_FLAGS += $(JUCE_CORE_LIBS) $(JUCE_AUDIO_BASICS_LIBS)
  53. endif
  54. POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  55. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  56. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  57. POSIX_LINK_FLAGS = $(LINK_FLAGS)
  58. ifneq ($(HAIKU),true)
  59. POSIX_LINK_FLAGS += -ldl
  60. endif
  61. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  62. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  63. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  64. WIN_LINK_FLAGS = $(LINK_FLAGS) $(EXTRA_LIBS)
  65. # --------------------------------------------------------------
  66. DEPS = ../includes/CarlaDefines.h
  67. DEPS += ../includes/CarlaMIDI.h
  68. DEPS += ../backend/CarlaBackend.h
  69. DEPS += ../utils/CarlaString.hpp
  70. DEPS += ../utils/CarlaUtils.hpp
  71. DEPS += ../utils/CarlaBackendUtils.hpp
  72. DEPS += ../utils/CarlaJuceUtils.hpp
  73. DEPS += ../utils/CarlaLibUtils.hpp
  74. DEPS += ../utils/CarlaMathUtils.hpp
  75. DEPS += ../utils/CarlaLadspaUtils.hpp
  76. DEPS += ../utils/CarlaDssiUtils.hpp
  77. DEPS += ../utils/CarlaLv2Utils.hpp
  78. DEPS += ../utils/CarlaVstUtils.hpp
  79. OBJS = carla-discovery.cpp
  80. # --------------------------------------------------------------
  81. ifeq ($(WIN32),true)
  82. all: carla-discovery-native.exe
  83. else
  84. all: carla-discovery-native
  85. endif
  86. posix32: carla-discovery-posix32
  87. posix64: carla-discovery-posix64
  88. win32: carla-discovery-win32.exe
  89. win64: carla-discovery-win64.exe
  90. # --------------------------------------------------------------
  91. carla-discovery-native: $(OBJS) $(DEPS) $(LIBS)
  92. $(CXX) $< $(LIBS) $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  93. carla-discovery-native.exe: $(OBJS) $(DEPS) $(LIBS)
  94. $(CXX) $< $(LIBS) $(WIN_BUILD_FLAGS) $(NATIVE_FLAGS) $(WIN_LINK_FLAGS) -o $@
  95. carla-discovery-posix32: $(OBJS) $(DEPS) $(LIBS_posix32)
  96. $(CXX) $< $(LIBS_posix32) $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  97. carla-discovery-posix64: $(OBJS) $(DEPS) $(LIBS_posix64)
  98. $(CXX) $< $(LIBS_posix64) $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  99. carla-discovery-win32.exe: $(OBJS) $(DEPS) $(LIBS_win32)
  100. $(CXX) $< $(LIBS_win32) $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  101. carla-discovery-win64.exe: $(OBJS) $(DEPS) $(LIBS_win64)
  102. $(CXX) $< $(LIBS_win64) $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  103. # --------------------------------------------------------------
  104. clean:
  105. rm -f carla-discovery-*
  106. debug:
  107. $(MAKE) DEBUG=true
  108. # --------------------------------------------------------------
  109. .FORCE:
  110. .PHONY: .FORCE
  111. ../modules/lilv.%.a: .FORCE
  112. $(MAKE) -C ../modules lilv_$*
  113. ../modules/%.a: .FORCE
  114. $(MAKE) -C ../modules $*
  115. # --------------------------------------------------------------