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.

Makefile 3.2KB

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