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.

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