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.

97 lines
2.6KB

  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 += $(MAGIC_LIBS)
  11. BUILD_CXX_FLAGS += $(YSFX_FLAGS)
  12. # FIXME remove this after getting rid of juce
  13. BUILD_CXX_FLAGS += -UUSING_JUCE
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. OBJS = \
  16. $(OBJDIR)/CachedPlugins.cpp.o \
  17. $(OBJDIR)/CarlaUtils.cpp.o \
  18. $(OBJDIR)/Information.cpp.o \
  19. $(OBJDIR)/JUCE.cpp.o \
  20. $(OBJDIR)/PipeClient.cpp.o \
  21. $(OBJDIR)/PluginDiscovery.cpp.o \
  22. $(OBJDIR)/System.cpp.o \
  23. $(OBJDIR)/Windows.cpp.o
  24. TARGETS = $(BINDIR)/libcarla_utils$(LIB_EXT)
  25. # ---------------------------------------------------------------------------------------------------------------------
  26. LIBS = $(MODULEDIR)/jackbridge.a
  27. LIBS += $(MODULEDIR)/lilv.a
  28. LIBS += $(MODULEDIR)/water.files.a
  29. ifeq ($(HAVE_YSFX),true)
  30. LIBS += $(MODULEDIR)/ysfx.a
  31. endif
  32. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  33. LINK_FLAGS += $(LILV_LIBS)
  34. LINK_FLAGS += $(WATER_LIBS)
  35. ifeq ($(HAVE_X11),true)
  36. LINK_FLAGS += $(X11_LIBS)
  37. endif
  38. ifeq ($(HAVE_YSFX),true)
  39. LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  40. endif
  41. ifneq ($(HAIKU),true)
  42. ifneq ($(WASM),true)
  43. LINK_FLAGS += -pthread
  44. endif
  45. endif
  46. # ---------------------------------------------------------------------------------------------------------------------
  47. all: $(TARGETS)
  48. # ---------------------------------------------------------------------------------------------------------------------
  49. clean:
  50. rm -f $(OBJS) $(TARGETS)
  51. debug:
  52. $(MAKE) DEBUG=true
  53. # ---------------------------------------------------------------------------------------------------------------------
  54. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS) $(LIBS)
  55. -@mkdir -p $(BINDIR)
  56. @echo "Linking libcarla_utils$(LIB_EXT)"
  57. $(SILENT)$(CXX) $(OBJS) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS) $(LIBS_END) $(LINK_FLAGS) $(LINK_FLAGS) $(SHARED) -o $@
  58. # ---------------------------------------------------------------------------------------------------------------------
  59. ifeq ($(MACOS),true)
  60. $(OBJDIR)/CarlaUtils.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  61. $(OBJDIR)/Windows.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  62. endif
  63. $(OBJDIR)/%.cpp.o: %.cpp
  64. -@mkdir -p $(OBJDIR)
  65. @echo "Compiling $<"
  66. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  67. -include $(OBJS:%.o=%.d)
  68. # ---------------------------------------------------------------------------------------------------------------------