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.

104 lines
2.9KB

  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. # ---------------------------------------------------------------------------------------------------------------------
  11. OBJS = \
  12. $(OBJDIR)/CachedPlugins.cpp.o \
  13. $(OBJDIR)/Information.cpp.o \
  14. $(OBJDIR)/JUCE.cpp.o \
  15. $(OBJDIR)/PipeClient.cpp.o \
  16. $(OBJDIR)/System.cpp.o \
  17. $(OBJDIR)/Windows.cpp.o
  18. TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT)
  19. # ---------------------------------------------------------------------------------------------------------------------
  20. LIBS = $(MODULEDIR)/lilv.a
  21. LIBS += $(MODULEDIR)/water.files.a
  22. ifeq ($(USING_JUCE),true)
  23. LIBS += $(MODULEDIR)/juce_audio_basics.a
  24. LIBS += $(MODULEDIR)/juce_audio_processors.a
  25. LIBS += $(MODULEDIR)/juce_core.a
  26. LIBS += $(MODULEDIR)/juce_data_structures.a
  27. LIBS += $(MODULEDIR)/juce_events.a
  28. LIBS += $(MODULEDIR)/juce_graphics.a
  29. LIBS += $(MODULEDIR)/juce_gui_basics.a
  30. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  31. LIBS += $(MODULEDIR)/juce_gui_extra.a
  32. endif
  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. LINK_FLAGS += -lpthread
  41. endif
  42. ifeq ($(USING_JUCE),true)
  43. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  44. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  45. LINK_FLAGS += $(JUCE_CORE_LIBS)
  46. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  47. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  48. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  49. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  50. ifeq ($(USING_JUCE_GUI_EXTRA),true)
  51. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  52. endif
  53. endif
  54. # ---------------------------------------------------------------------------------------------------------------------
  55. all: $(TARGETS)
  56. # ---------------------------------------------------------------------------------------------------------------------
  57. clean:
  58. rm -f $(OBJS) $(TARGETS)
  59. debug:
  60. $(MAKE) DEBUG=true
  61. # ---------------------------------------------------------------------------------------------------------------------
  62. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
  63. -@mkdir -p $(BINDIR)
  64. @echo "Linking libcarla_utils$(LIB_EXT)"
  65. @$(CXX) $(OBJS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
  66. # ---------------------------------------------------------------------------------------------------------------------
  67. ifeq ($(MACOS),true)
  68. $(OBJDIR)/Windows.cpp.o: Windows.cpp
  69. -@mkdir -p $(OBJDIR)
  70. @echo "Compiling $<"
  71. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  72. endif
  73. $(OBJDIR)/%.cpp.o: %.cpp
  74. -@mkdir -p $(OBJDIR)
  75. @echo "Compiling $<"
  76. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  77. -include $(OBJS:%.o=%.d)
  78. # ---------------------------------------------------------------------------------------------------------------------