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.

136 lines
3.9KB

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