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