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 5.4KB

11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
9 years ago
10 years ago
10 years ago
9 years ago
11 years ago
11 years ago
11 years ago
11 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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)/juce_audio_basics.a
  22. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_formats.a
  23. STANDALONE_LIBS += $(MODULEDIR)/juce_core.a
  24. STANDALONE_LIBS += $(MODULEDIR)/lilv.a
  25. STANDALONE_LIBS += $(MODULEDIR)/native-plugins.a
  26. STANDALONE_LIBS += $(MODULEDIR)/rtmempool.a
  27. ifeq ($(HAVE_DGL),true)
  28. STANDALONE_LIBS += $(MODULEDIR)/dgl.a
  29. endif
  30. ifeq ($(MACOS_OR_WIN32),true)
  31. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_devices.a
  32. STANDALONE_LIBS += $(MODULEDIR)/juce_audio_processors.a
  33. STANDALONE_LIBS += $(MODULEDIR)/juce_data_structures.a
  34. STANDALONE_LIBS += $(MODULEDIR)/juce_events.a
  35. STANDALONE_LIBS += $(MODULEDIR)/juce_graphics.a
  36. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_basics.a
  37. ifeq ($(MACOS),true)
  38. STANDALONE_LIBS += $(MODULEDIR)/juce_gui_extra.a
  39. endif
  40. else
  41. STANDALONE_LIBS += $(MODULEDIR)/rtaudio.a
  42. STANDALONE_LIBS += $(MODULEDIR)/rtmidi.a
  43. endif
  44. UTILS_LIBS = $(MODULEDIR)/juce_audio_basics.a
  45. UTILS_LIBS += $(MODULEDIR)/juce_audio_formats.a
  46. UTILS_LIBS += $(MODULEDIR)/juce_core.a
  47. UTILS_LIBS += $(MODULEDIR)/lilv.a
  48. ifeq ($(MACOS),true)
  49. UTILS_LIBS += $(MODULEDIR)/juce_audio_processors.a
  50. UTILS_LIBS += $(MODULEDIR)/juce_data_structures.a
  51. UTILS_LIBS += $(MODULEDIR)/juce_events.a
  52. UTILS_LIBS += $(MODULEDIR)/juce_graphics.a
  53. UTILS_LIBS += $(MODULEDIR)/juce_gui_basics.a
  54. UTILS_LIBS += $(MODULEDIR)/juce_gui_extra.a
  55. endif
  56. # ----------------------------------------------------------------------------------------------------------------------------
  57. STANDALONE_LINK_FLAGS = $(JACKBRIDGE_LIBS)
  58. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  59. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  60. STANDALONE_LINK_FLAGS += $(JUCE_CORE_LIBS)
  61. STANDALONE_LINK_FLAGS += $(LILV_LIBS)
  62. STANDALONE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  63. STANDALONE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  64. ifeq ($(MACOS_OR_WIN32),true)
  65. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_DEVICES_LIBS)
  66. STANDALONE_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  67. STANDALONE_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  68. STANDALONE_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  69. STANDALONE_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  70. STANDALONE_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  71. ifeq ($(MACOS),true)
  72. STANDALONE_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  73. endif
  74. else
  75. STANDALONE_LINK_FLAGS += $(RTAUDIO_LIBS)
  76. STANDALONE_LINK_FLAGS += $(RTMIDI_LIBS)
  77. endif
  78. ifeq ($(HAVE_LIBLO),true)
  79. STANDALONE_LINK_FLAGS += $(LIBLO_LIBS)
  80. endif
  81. ifeq ($(HAVE_LIBMAGIC),true)
  82. STANDALONE_LINK_FLAGS += -lmagic
  83. endif
  84. ifeq ($(HAVE_FLUIDSYNTH),true)
  85. STANDALONE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  86. endif
  87. ifeq ($(HAVE_LINUXSAMPLER),true)
  88. STANDALONE_LINK_FLAGS += $(LINUXSAMPLER_LIBS)
  89. endif
  90. ifeq ($(HAVE_X11),true)
  91. STANDALONE_LINK_FLAGS += $(X11_LIBS)
  92. endif
  93. UTILS_LINK_FLAGS = $(JUCE_AUDIO_BASICS_LIBS)
  94. UTILS_LINK_FLAGS += $(JUCE_AUDIO_FORMATS_LIBS)
  95. UTILS_LINK_FLAGS += $(JUCE_CORE_LIBS)
  96. UTILS_LINK_FLAGS += $(LILV_LIBS)
  97. ifeq ($(HAVE_X11),true)
  98. UTILS_LINK_FLAGS += $(X11_LIBS)
  99. endif
  100. ifeq ($(MACOS),true)
  101. UTILS_LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  102. UTILS_LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  103. UTILS_LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  104. UTILS_LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  105. UTILS_LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  106. UTILS_LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  107. endif
  108. ifneq ($(HAIKU),true)
  109. UTILS_LINK_FLAGS += -lpthread
  110. endif
  111. # ----------------------------------------------------------------------------------------------------------------------------
  112. all: $(TARGETS)
  113. # ----------------------------------------------------------------------------------------------------------------------------
  114. clean:
  115. rm -f $(OBJS_standalone) $(OBJS_utils) $(TARGETS)
  116. $(MAKE) clean -C engine
  117. $(MAKE) clean -C plugin
  118. debug:
  119. $(MAKE) DEBUG=true
  120. doxygen: CarlaBackend.doxygen
  121. doxygen $^
  122. # ----------------------------------------------------------------------------------------------------------------------------
  123. $(BINDIR)/libcarla_standalone2$(LIB_EXT): $(OBJS_standalone) $(STANDALONE_LIBS)
  124. -@mkdir -p $(BINDIR)
  125. @echo "Linking libcarla_standalone2$(LIB_EXT)"
  126. @$(CXX) $(OBJS_standalone) $(LIBS_START) $(STANDALONE_LIBS) $(LIBS_END) $(LINK_FLAGS) $(STANDALONE_LINK_FLAGS) $(SHARED) -o $@
  127. $(BINDIR)/libcarla_utils$(LIB_EXT): $(OBJS_utils) $(UTILS_LIBS)
  128. -@mkdir -p $(BINDIR)
  129. @echo "Linking libcarla_utils$(LIB_EXT)"
  130. @$(CXX) $(OBJS_utils) $(LIBS_START) $(UTILS_LIBS) $(LIBS_END) $(LINK_FLAGS) $(UTILS_LINK_FLAGS) $(SHARED) -o $@
  131. # ----------------------------------------------------------------------------------------------------------------------------
  132. $(OBJDIR)/%.cpp.o: %.cpp
  133. -@mkdir -p $(OBJDIR)
  134. @echo "Compiling $<"
  135. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  136. -include $(OBJS_standalone:%.o=%.d)
  137. -include $(OBJS_utils:%.o=%.d)
  138. # ----------------------------------------------------------------------------------------------------------------------------