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.

102 lines
3.1KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-backend #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include Makefile.mk
  8. # ----------------------------------------------------------------------------------------------------------------------------
  9. OBJS_standalone = \
  10. $(OBJDIR)/CarlaStandalone.cpp.o \
  11. $(OBJDIR)/CarlaStandaloneNSM.cpp.o
  12. TARGETS = \
  13. $(BINDIR)/libcarla_standalone2$(LIB_EXT)
  14. # ----------------------------------------------------------------------------------------------------------------------------
  15. STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a
  16. STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a
  17. STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a
  18. STANDALONE_LIBS += $(MODULEDIR)/audio_decoder.a
  19. STANDALONE_LIBS += $(MODULEDIR)/lilv.a
  20. STANDALONE_LIBS += $(MODULEDIR)/native-plugins.a
  21. STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
  22. STANDALONE_LIBS += $(MODULEDIR)/sfzero.a
  23. STANDALONE_LIBS += $(MODULEDIR)/water.a
  24. ifeq ($(HAVE_DGL),true)
  25. STANDALONE_LIBS += $(MODULEDIR)/dgl.a
  26. endif
  27. ifeq ($(HAVE_HYLIA),true)
  28. STANDALONE_LIBS += $(MODULEDIR)/hylia.a
  29. endif
  30. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  31. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  32. # ----------------------------------------------------------------------------------------------------------------------------
  33. STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
  34. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  35. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  36. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  37. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  38. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  39. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  40. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  41. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  42. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  43. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  44. # ----------------------------------------------------------------------------------------------------------------------------
  45. all: $(TARGETS)
  46. $(MAKE) -C utils
  47. # ----------------------------------------------------------------------------------------------------------------------------
  48. clean:
  49. rm -f $(OBJS_standalone) $(TARGETS)
  50. $(MAKE) clean -C engine
  51. $(MAKE) clean -C plugin
  52. $(MAKE) clean -C utils
  53. debug:
  54. $(MAKE) DEBUG=true
  55. doxygen: CarlaBackend.doxygen
  56. doxygen $^
  57. # ----------------------------------------------------------------------------------------------------------------------------
  58. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  59. -@mkdir -p $(BINDIR)
  60. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  61. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  62. # ----------------------------------------------------------------------------------------------------------------------------
  63. ifeq ($(MACOS),true)
  64. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  65. -@mkdir -p $(OBJDIR)
  66. @echo "Compiling $<"
  67. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  68. endif
  69. $(OBJDIR)/%.cpp.o: %.cpp
  70. -@mkdir -p $(OBJDIR)
  71. @echo "Compiling $<"
  72. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  73. -include $(OBJS_standalone:%.o=%.d)
  74. # ----------------------------------------------------------------------------------------------------------------------------