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.

108 lines
3.0KB

  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 += $(JSUSFX_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)/juce_audio_basics.a
  25. LIBS += $(MODULEDIR)/juce_audio_processors.a
  26. LIBS += $(MODULEDIR)/juce_core.a
  27. LIBS += $(MODULEDIR)/juce_data_structures.a
  28. LIBS += $(MODULEDIR)/juce_events.a
  29. LIBS += $(MODULEDIR)/juce_graphics.a
  30. LIBS += $(MODULEDIR)/juce_gui_basics.a
  31. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  32. LIBS += $(MODULEDIR)/juce_gui_extra.a
  33. endif
  34. endif
  35. LINK_FLAGS += $(LILV_LIBS)
  36. LINK_FLAGS += $(WATER_LIBS)
  37. ifeq ($(HAVE_X11),true)
  38. LINK_FLAGS += $(X11_LIBS)
  39. endif
  40. ifneq ($(HAIKU),true)
  41. LINK_FLAGS += -pthread
  42. endif
  43. ifeq ($(USING_JUCE),true)
  44. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  45. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  46. LINK_FLAGS += $(JUCE_CORE_LIBS)
  47. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  48. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  49. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  50. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  51. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  52. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  53. endif
  54. endif
  55. LINK_FLAGS += $(MODULEDIR)/jsusfx.a
  56. LINK_FLAGS += $(MODULEDIR)/eel2.a
  57. # ---------------------------------------------------------------------------------------------------------------------
  58. all: $(TARGETS)
  59. # ---------------------------------------------------------------------------------------------------------------------
  60. clean:
  61. rm -f $(OBJS) $(TARGETS)
  62. debug:
  63. $(MAKE) DEBUG=true
  64. # ---------------------------------------------------------------------------------------------------------------------
  65. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
  66. -@mkdir -p $(BINDIR)
  67. @echo "Linking libcarla_utils$(LIB_EXT)"
  68. @$(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
  69. # ---------------------------------------------------------------------------------------------------------------------
  70. ifeq ($(MACOS),true)
  71. $(OBJDIR)/Windows.cpp.o: Windows.cpp
  72. -@mkdir -p $(OBJDIR)
  73. @echo "Compiling $<"
  74. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  75. endif
  76. $(OBJDIR)/%.cpp.o: %.cpp
  77. -@mkdir -p $(OBJDIR)
  78. @echo "Compiling $<"
  79. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  80. -include $(OBJS:%.o=%.d)
  81. # ---------------------------------------------------------------------------------------------------------------------