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.

Makefile 4.0KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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 -DWANT_DSSI -DWANT_LV2
  15. # -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 += $(LINUXSAMPLER_FLAGS) $(LINUXSAMPLER_LIBS) -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)
  56. ifneq ($(HAIKU),true)
  57. POSIX_LINK_FLAGS += -ldl
  58. endif
  59. WIN_BUILD_FLAGS = $(BUILD_CXX_FLAGS)
  60. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  61. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  62. WIN_LINK_FLAGS = $(LINK_FLAGS) $(EXTRA_LIBS)
  63. ifeq ($(MACOS),true)
  64. OBJS = carla-discovery.mm.o
  65. else
  66. OBJS = carla-discovery.cpp
  67. endif
  68. # --------------------------------------------------------------
  69. ifeq ($(WIN32),true)
  70. all: carla-discovery-native.exe
  71. else
  72. all: carla-discovery-native
  73. endif
  74. posix32: carla-discovery-posix32
  75. posix64: carla-discovery-posix64
  76. win32: carla-discovery-win32.exe
  77. win64: carla-discovery-win64.exe
  78. # --------------------------------------------------------------
  79. carla-discovery.mm.o: carla-discovery.mm carla-discovery.cpp
  80. $(CXX) $< $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) -objc++ -c -o $@
  81. carla-discovery-native: $(OBJS) $(LIBS)
  82. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(NATIVE_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  83. carla-discovery-native.exe: $(OBJS) $(LIBS)
  84. $(CXX) $^ $(WIN_BUILD_FLAGS) $(NATIVE_FLAGS) $(WIN_LINK_FLAGS) -o $@
  85. carla-discovery-posix32: $(OBJS) $(LIBS_posix32)
  86. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  87. carla-discovery-posix64: $(OBJS) $(LIBS_posix64)
  88. $(CXX) $^ $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) $(POSIX_LINK_FLAGS) -o $@
  89. carla-discovery-win32.exe: $(OBJS) $(LIBS_win32)
  90. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  91. carla-discovery-win64.exe: $(OBJS) $(LIBS_win64)
  92. $(CXX) $^ $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -o $@
  93. # --------------------------------------------------------------
  94. clean:
  95. rm -f carla-discovery-*
  96. debug:
  97. $(MAKE) DEBUG=true
  98. # --------------------------------------------------------------
  99. .FORCE:
  100. .PHONY: .FORCE
  101. ../modules/lilv.%.a: .FORCE
  102. $(MAKE) -C ../modules lilv_$*
  103. ../modules/%.a: .FORCE
  104. $(MAKE) -C ../modules $*
  105. # --------------------------------------------------------------