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.

99 lines
2.7KB

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