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.

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