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

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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.all.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 += $(LINUXSAMPLER_LIBS)
  44. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  45. # ----------------------------------------------------------------------------------------------------------------------------
  46. all: $(TARGETS)
  47. $(MAKE) -C utils
  48. # ----------------------------------------------------------------------------------------------------------------------------
  49. clean:
  50. rm -f $(OBJS_standalone) $(TARGETS)
  51. $(MAKE) clean -C engine
  52. $(MAKE) clean -C plugin
  53. $(MAKE) clean -C utils
  54. debug:
  55. $(MAKE) DEBUG=true
  56. doxygen: CarlaBackend.doxygen
  57. doxygen $^
  58. # ----------------------------------------------------------------------------------------------------------------------------
  59. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  60. -@mkdir -p $(BINDIR)
  61. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  62. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  63. # ----------------------------------------------------------------------------------------------------------------------------
  64. ifeq ($(MACOS),true)
  65. $(OBJDIR)/CarlaStandalone.cpp.o: CarlaStandalone.cpp
  66. -@mkdir -p $(OBJDIR)
  67. @echo "Compiling $<"
  68. @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
  69. endif
  70. $(OBJDIR)/%.cpp.o: %.cpp
  71. -@mkdir -p $(OBJDIR)
  72. @echo "Compiling $<"
  73. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  74. -include $(OBJS_standalone:%.o=%.d)
  75. # ----------------------------------------------------------------------------------------------------------------------------