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.

94 lines
2.5KB

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