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.

103 lines
2.8KB

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