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.

118 lines
3.2KB

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