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.9KB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. OBJS_utils = \
  13. $(OBJDIR)/CarlaUtils.cpp.o
  14. TARGETS = \
  15. $(BINDIR)/libcarla_standalone2$(LIB_EXT) \
  16. $(BINDIR)/libcarla_utils$(LIB_EXT)
  17. # ----------------------------------------------------------------------------------------------------------------------------
  18. STANDALONE_LIBS = $(MODULEDIR)/carla_engine.a
  19. STANDALONE_LIBS += $(MODULEDIR)/carla_plugin.a
  20. STANDALONE_LIBS += $(MODULEDIR)/jackbridge.a
  21. STANDALONE_LIBS += $(MODULEDIR)/audio_decoder.a
  22. STANDALONE_LIBS += $(MODULEDIR)/lilv.a
  23. STANDALONE_LIBS += $(MODULEDIR)/native-plugins.all.a
  24. STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
  25. STANDALONE_LIBS += $(MODULEDIR)/water.a
  26. ifeq ($(HAVE_DGL),true)
  27. STANDALONE_LIBS += $(MODULEDIR)/dgl.a
  28. endif
  29. ifeq ($(HAVE_HYLIA),true)
  30. STANDALONE_LIBS += $(MODULEDIR)/hylia.a
  31. endif
  32. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  33. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  34. UTILS_LIBS += $(MODULEDIR)/lilv.a
  35. UTILS_LIBS += $(MODULEDIR)/water.files.a
  36. # ----------------------------------------------------------------------------------------------------------------------------
  37. STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
  38. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  39. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  40. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  41. STANDALONE_LINK_FLAGS += $(WATER_LIBS)
  42. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  43. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  44. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  45. STANDALONE_LINK_FLAGS += $(MAGIC_LIBS)
  46. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  47. STANDALONE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  48. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  49. UTILS_LINK_FLAGS += $(LILV_LIBS)
  50. UTILS_LINK_FLAGS += $(WATER_LIBS)
  51. ifeq ($(HAVE_X11),true)
  52. UTILS_LINK_FLAGS += $(X11_LIBS)
  53. endif
  54. ifneq ($(HAIKU),true)
  55. UTILS_LINK_FLAGS += -lpthread
  56. endif
  57. # ----------------------------------------------------------------------------------------------------------------------------
  58. all: $(TARGETS)
  59. # ----------------------------------------------------------------------------------------------------------------------------
  60. clean:
  61. rm -f $(OBJS_standalone) $(OBJS_utils) $(TARGETS)
  62. $(MAKE) clean -C engine
  63. $(MAKE) clean -C plugin
  64. debug:
  65. $(MAKE) DEBUG=true
  66. doxygen: CarlaBackend.doxygen
  67. doxygen $^
  68. # ----------------------------------------------------------------------------------------------------------------------------
  69. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  70. -@mkdir -p $(BINDIR)
  71. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  72. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  73. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS_utils) $(UTILS_LIBS)
  74. -@mkdir -p $(BINDIR)
  75. @echo "Linking libcarla_utils$(LIB_EXT)"
  76. @$(CXX) $(OBJS_utils) $(LIBS_START) $(UTILS_LIBS) $(LIBS_END) $(LINK_FLAGS) $(UTILS_LINK_FLAGS) $(SHARED) -o $@
  77. # ----------------------------------------------------------------------------------------------------------------------------
  78. ifeq ($(MACOS),true)
  79. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  80. -@mkdir -p $(OBJDIR)
  81. @echo "Compiling $<"
  82. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  83. $(OBJDIR)/CarlaUtils.cpp.o: CarlaUtils.cpp
  84. -@mkdir -p $(OBJDIR)
  85. @echo "Compiling $<"
  86. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  87. endif
  88. $(OBJDIR)/%.cpp.o: %.cpp
  89. -@mkdir -p $(OBJDIR)
  90. @echo "Compiling $<"
  91. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  92. -include $(OBJS_standalone:%.o=%.d)
  93. -include $(OBJS_utils:%.o=%.d)
  94. # ----------------------------------------------------------------------------------------------------------------------------