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
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #!/usr/bin/make -f
  2. # Makefile for carla-backend #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include Makefile.mk
  8. # --------------------------------------------------------------
  9. STANDALONE_LIBS = carla_engine.a
  10. STANDALONE_LIBS += carla_plugin.a
  11. STANDALONE_LIBS += ../modules/jackbridge.a
  12. STANDALONE_LIBS += ../modules/juce_audio_basics.a
  13. STANDALONE_LIBS += ../modules/juce_audio_formats.a
  14. STANDALONE_LIBS += ../modules/juce_core.a
  15. STANDALONE_LIBS += ../modules/lilv.a
  16. STANDALONE_LIBS += ../modules/native-plugins.a
  17. STANDALONE_LIBS += ../modules/rtmempool.a
  18. ifeq ($(MACOS_OR_WIN32),true)
  19. STANDALONE_LIBS += ../modules/juce_audio_devices.a
  20. STANDALONE_LIBS += ../modules/juce_audio_processors.a
  21. STANDALONE_LIBS += ../modules/juce_data_structures.a
  22. STANDALONE_LIBS += ../modules/juce_events.a
  23. STANDALONE_LIBS += ../modules/juce_graphics.a
  24. STANDALONE_LIBS += ../modules/juce_gui_basics.a
  25. STANDALONE_LIBS += ../modules/juce_gui_extra.a
  26. else
  27. STANDALONE_LIBS += ../modules/rtaudio.a
  28. STANDALONE_LIBS += ../modules/rtmidi.a
  29. endif
  30. # --------------------------------------------------------------
  31. STANDALONE_FLAGS = $(JACKBRIDGE_LIBS)
  32. STANDALONE_FLAGS += $(JUCE_CORE_LIBS)
  33. STANDALONE_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  34. STANDALONE_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  35. STANDALONE_FLAGS += $(LIBLO_LIBS)
  36. STANDALONE_FLAGS += $(LILV_LIBS)
  37. STANDALONE_FLAGS += $(NATIVE_PLUGINS_LIBS)
  38. STANDALONE_FLAGS += $(RTMEMPOOL_LIBS)
  39. ifeq ($(MACOS_OR_WIN32),true)
  40. STANDALONE_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  41. STANDALONE_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  42. STANDALONE_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  43. STANDALONE_FLAGS += $(JUCE_EVENTS_LIBS)
  44. STANDALONE_FLAGS += $(JUCE_GRAPHICS_LIBS)
  45. STANDALONE_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  46. STANDALONE_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  47. else
  48. STANDALONE_FLAGS += $(RTAUDIO_LIBS)
  49. STANDALONE_FLAGS += $(RTMIDI_LIBS)
  50. endif
  51. ifeq ($(HAVE_FLUIDSYNTH),true)
  52. STANDALONE_FLAGS += $(FLUIDSYNTH_LIBS)
  53. endif
  54. ifeq ($(HAVE_LINUXSAMPLER),true)
  55. STANDALONE_FLAGS += $(LINUXSAMPLER_LIBS)
  56. endif
  57. ifeq ($(HAVE_X11),true)
  58. STANDALONE_FLAGS += $(X11_LIBS)
  59. endif
  60. ifeq ($(LINUX),true)
  61. STANDALONE_FLAGS += -lmagic
  62. endif
  63. # --------------------------------------------------------------
  64. OBJS = \
  65. CarlaStandalone.cpp.o
  66. TARGETS = \
  67. ../../bin/libcarla_standalone2$(LIB_EXT)
  68. # --------------------------------------------------------------
  69. all: $(TARGETS)
  70. # --------------------------------------------------------------
  71. clean:
  72. $(RM) $(OBJS)
  73. $(RM) $(TARGETS)
  74. $(MAKE) clean -C engine
  75. $(MAKE) clean -C plugin
  76. debug:
  77. $(MAKE) DEBUG=true
  78. doxygen: CarlaBackend.doxygen
  79. doxygen $^
  80. # --------------------------------------------------------------
  81. CarlaStandalone.cpp.o: CarlaStandalone.cpp $(CARLA_STANDALONE_CPP_DEPS)
  82. $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  83. # --------------------------------------------------------------
  84. ../../bin/libcarla_standalone2$(LIB_EXT): $(OBJS) $(STANDALONE_LIBS)
  85. $(CXX) $< $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_FLAGS) $(SHARED) -o $@
  86. # --------------------------------------------------------------
  87. carla_%.a:
  88. $(MAKE) -C $* ../carla_$*.a
  89. ../modules/%.a:
  90. $(MAKE) -C ../modules/$* ../$*.a
  91. # --------------------------------------------------------------