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.

132 lines
3.8KB

  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. BUILD_CXX_FLAGS += $(QTCORE_FLAGS)
  10. LINK_FLAGS += $(QTCORE_LIBS)
  11. # --------------------------------------------------------------
  12. BUILD_CXX_FLAGS += -DWANT_NATIVE
  13. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  14. BUILD_CXX_FLAGS += -DWANT_LADSPA
  15. # -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  16. # ifeq ($(CARLA_VESTIGE_HEADER),true)
  17. # BUILD_CXX_FLAGS += -DVESTIGE_HEADER
  18. # endif
  19. endif
  20. # --------------------------------------------------------------
  21. # ifeq ($(HAVE_CSOUND),true)
  22. # NATIVE_FLAGS += $(shell pkg-config --cflags --libs sndfile) -lcsound64 -DWANT_CSOUND
  23. # endif
  24. ifeq ($(HAVE_FLUIDSYNTH),true)
  25. NATIVE_FLAGS += $(FLUIDSYNTH_FLAGS) $(FLUIDSYNTH_LIBS) -DWANT_FLUIDSYNTH
  26. endif
  27. # ifeq ($(HAVE_LINUXSAMPLER),true)
  28. # NATIVE_FLAGS += $(shell pkg-config --cflags --libs linuxsampler) -DWANT_LINUXSAMPLER
  29. # endif
  30. # --------------------------------------------------------------
  31. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  32. LIBS += ../modules/lilv.a
  33. LIBS_posix32 += ../modules/lilv.posix32.a
  34. LIBS_posix64 += ../modules/lilv.posix64.a
  35. LIBS_win32 += ../modules/lilv.win32.a
  36. LIBS_win64 += ../modules/lilv.win64.a
  37. LINK_FLAGS += $(LILV_LIBS)
  38. endif
  39. ifeq ($(HAVE_JUCE),true)
  40. LIBS += ../modules/juce_audio_basics.a
  41. LIBS_posix32 += ../modules/juce_audio_basics.posix32.a
  42. LIBS_posix64 += ../modules/juce_audio_basics.posix64.a
  43. LIBS_win32 += ../modules/juce_audio_basics.win32.a
  44. LIBS_win64 += ../modules/juce_audio_basics.win64.a
  45. LIBS += ../modules/juce_core.a
  46. LIBS_posix32 += ../modules/juce_core.posix32.a
  47. LIBS_posix64 += ../modules/juce_core.posix64.a
  48. LIBS_win32 += ../modules/juce_core.win32.a
  49. LIBS_win64 += ../modules/juce_core.win64.a
  50. LINK_FLAGS += $(JUCE_CORE_LIBS) $(JUCE_AUDIO_BASICS_LIBS)
  51. endif
  52. POSIX_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  53. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  54. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  55. POSIX_LINK_FLAGS = $(LINK_FLAGS) -ldl
  56. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  57. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  58. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  59. WIN_LINK_FLAGS = $(LINK_FLAGS)
  60. OBJS = carla-discovery.cpp
  61. # --------------------------------------------------------------
  62. ifeq ($(WIN32),true)
  63. all: carla-discovery-native.exe
  64. else
  65. all: carla-discovery-native
  66. endif
  67. posix32: carla-discovery-posix32
  68. posix64: carla-discovery-posix64
  69. win32: carla-discovery-win32.exe
  70. win64: carla-discovery-win64.exe
  71. # --------------------------------------------------------------
  72. carla-discovery-native: $(OBJS) $(LIBS)
  73. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  74. carla-discovery-native.exe: $(OBJS) $(LIBS)
  75. $(CXX) $^ $(WIN_BUILD_FLAGS) $(NATIVE_FLAGS) $(WIN_LINK_FLAGS) -o $@
  76. carla-discovery-posix32: $(OBJS) $(LIBS_posix32)
  77. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  78. carla-discovery-posix64: $(OBJS) $(LIBS_posix64)
  79. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  80. carla-discovery-win32.exe: $(OBJS) $(LIBS_win32)
  81. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  82. carla-discovery-win64.exe: $(OBJS) $(LIBS_win64)
  83. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  84. # --------------------------------------------------------------
  85. clean:
  86. rm -f carla-discovery-*
  87. debug:
  88. $(MAKE) DEBUG=true
  89. # --------------------------------------------------------------
  90. .FORCE:
  91. .PHONY: .FORCE
  92. ../modules/lilv.%.a: .FORCE
  93. $(MAKE) -C ../modules lilv_$*
  94. ../modules/%.a: .FORCE
  95. $(MAKE) -C ../modules $*
  96. # --------------------------------------------------------------