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.

119 lines
3.3KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=../..
  7. include ../Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS)
  10. BUILD_CXX_FLAGS += $(MAGIC_LIBS)
  11. BUILD_CXX_FLAGS += $(YSFX_FLAGS)
  12. # ---------------------------------------------------------------------------------------------------------------------
  13. OBJS = \
  14. $(OBJDIR)/CachedPlugins.cpp.o \
  15. $(OBJDIR)/CarlaUtils.cpp.o \
  16. $(OBJDIR)/Information.cpp.o \
  17. $(OBJDIR)/JUCE.cpp.o \
  18. $(OBJDIR)/PipeClient.cpp.o \
  19. $(OBJDIR)/PluginDiscovery.cpp.o \
  20. $(OBJDIR)/System.cpp.o \
  21. $(OBJDIR)/Windows.cpp.o
  22. TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT)
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. LIBS = $(MODULEDIR)/jackbridge.a
  25. LIBS += $(MODULEDIR)/lilv.a
  26. LIBS += $(MODULEDIR)/water.files.a
  27. ifeq ($(HAVE_YSFX),true)
  28. LIBS += $(MODULEDIR)/ysfx.a
  29. endif
  30. ifeq ($(USING_JUCE),true)
  31. LIBS += $(MODULEDIR)/carla_juce.a
  32. LIBS += $(MODULEDIR)/juce_audio_basics.a
  33. LIBS += $(MODULEDIR)/juce_audio_processors.a
  34. LIBS += $(MODULEDIR)/juce_core.a
  35. LIBS += $(MODULEDIR)/juce_data_structures.a
  36. LIBS += $(MODULEDIR)/juce_events.a
  37. LIBS += $(MODULEDIR)/juce_graphics.a
  38. LIBS += $(MODULEDIR)/juce_gui_basics.a
  39. LIBS += $(MODULEDIR)/juce_gui_extra.a
  40. endif
  41. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  42. LINK_FLAGS += $(LILV_LIBS)
  43. LINK_FLAGS += $(WATER_LIBS)
  44. ifeq ($(HAVE_X11),true)
  45. LINK_FLAGS += $(X11_LIBS)
  46. endif
  47. ifeq ($(HAVE_YSFX),true)
  48. LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  49. endif
  50. ifneq ($(HAIKU),true)
  51. ifneq ($(WASM),true)
  52. LINK_FLAGS += -pthread
  53. endif
  54. endif
  55. ifeq ($(USING_JUCE),true)
  56. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  57. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  58. LINK_FLAGS += $(JUCE_CORE_LIBS)
  59. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  60. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  61. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  62. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  63. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  64. endif
  65. # ---------------------------------------------------------------------------------------------------------------------
  66. all: $(TARGETS)
  67. # ---------------------------------------------------------------------------------------------------------------------
  68. clean:
  69. rm -f $(OBJS) $(TARGETS)
  70. debug:
  71. $(MAKE) DEBUG=true
  72. # ---------------------------------------------------------------------------------------------------------------------
  73. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
  74. -@mkdir -p $(BINDIR)
  75. @echo "Linking libcarla_utils$(LIB_EXT)"
  76. $(SILENT)$(CXX) $(OBJS) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
  77. # ---------------------------------------------------------------------------------------------------------------------
  78. ifeq ($(MACOS),true)
  79. ifeq ($(USING_JUCE),true)
  80. $(OBJDIR)/CachedPlugins.cpp.o: BUILD_CXX_FLAGS += -std=gnu++14
  81. endif
  82. $(OBJDIR)/CarlaUtils.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  83. $(OBJDIR)/Windows.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  84. endif
  85. $(OBJDIR)/%.cpp.o: %.cpp
  86. -@mkdir -p $(OBJDIR)
  87. @echo "Compiling $<"
  88. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  89. -include $(OBJS:%.o=%.d)
  90. # ---------------------------------------------------------------------------------------------------------------------