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.

414 lines
15KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-plugin #
  3. # ------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # Workaround GCC bug
  9. ifeq ($(TESTBUILD),true)
  10. ifeq ($(USING_JUCE),true)
  11. BUILD_CXX_FLAGS += -Wno-undef
  12. endif
  13. endif
  14. # ---------------------------------------------------------------------------------------------------------------------
  15. BINDIR := $(CWD)/../bin
  16. ifeq ($(DEBUG),true)
  17. OBJDIR := $(CWD)/../build/plugin/Debug
  18. MODULEDIR := $(CWD)/../build/modules/Debug
  19. else
  20. OBJDIR := $(CWD)/../build/plugin/Release
  21. MODULEDIR := $(CWD)/../build/modules/Release
  22. endif
  23. # ---------------------------------------------------------------------------------------------------------------------
  24. BUILD_CXX_FLAGS += -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  25. BUILD_CXX_FLAGS += $(NATIVE_PLUGINS_FLAGS)
  26. ifeq ($(HAVE_LIBLO),true)
  27. BUILD_CXX_FLAGS += $(LIBLO_FLAGS)
  28. endif
  29. ifeq ($(HAVE_FLUIDSYNTH),true)
  30. BUILD_CXX_FLAGS += $(FLUIDSYNTH_FLAGS)
  31. endif
  32. ifeq ($(HAVE_X11),true)
  33. BUILD_CXX_FLAGS += $(X11_FLAGS)
  34. endif
  35. # ---------------------------------------------------------------------------------------------------------------------
  36. # Libs
  37. LIBS = $(MODULEDIR)/carla_engine_plugin.a
  38. LIBS += $(MODULEDIR)/carla_plugin.a
  39. LIBS += $(MODULEDIR)/jackbridge.a
  40. LIBS += $(MODULEDIR)/lilv.a
  41. LIBS += $(MODULEDIR)/rtmempool.a
  42. LIBS += $(MODULEDIR)/water.a
  43. LIBS += $(MODULEDIR)/audio_decoder.a
  44. LIBS += $(MODULEDIR)/native-plugins.a
  45. LIBS += $(MODULEDIR)/sfzero.a
  46. ifeq ($(HAVE_DGL),true)
  47. LIBS += $(MODULEDIR)/dgl.a
  48. endif
  49. ifeq ($(HAVE_HYLIA),true)
  50. LIBS += $(MODULEDIR)/hylia.a
  51. endif
  52. ifeq ($(USING_JUCE),true)
  53. LIBS += $(MODULEDIR)/juce_audio_basics.a
  54. LIBS += $(MODULEDIR)/juce_audio_processors.a
  55. LIBS += $(MODULEDIR)/juce_core.a
  56. LIBS += $(MODULEDIR)/juce_data_structures.a
  57. LIBS += $(MODULEDIR)/juce_events.a
  58. LIBS += $(MODULEDIR)/juce_graphics.a
  59. LIBS += $(MODULEDIR)/juce_gui_basics.a
  60. ifeq ($(MACOS),true)
  61. LIBS += $(MODULEDIR)/juce_gui_extra.a
  62. endif
  63. endif
  64. # ---------------------------------------------------------------------------------------------------------------------
  65. # Link flags
  66. NATIVE_LINK_FLAGS = $(LINK_FLAGS)
  67. NATIVE_LINK_FLAGS += $(JACKBRIDGE_LIBS)
  68. NATIVE_LINK_FLAGS += $(LILV_LIBS)
  69. NATIVE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  70. NATIVE_LINK_FLAGS += $(WATER_LIBS)
  71. NATIVE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  72. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  73. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  74. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  75. NATIVE_LINK_FLAGS += $(X11_LIBS)
  76. ifeq ($(USING_JUCE),true)
  77. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  78. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  79. LINK_FLAGS += $(JUCE_CORE_LIBS)
  80. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  81. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  82. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  83. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  84. ifeq ($(MACOS),true)
  85. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  86. endif
  87. endif
  88. ifeq ($(MACOS),true)
  89. SYMBOLS_NATIVE = -Wl,-exported_symbol,_carla_get_native_rack_plugin
  90. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_native_patchbay_plugin
  91. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_library_filename
  92. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_library_folder
  93. SYMBOLS_LV2 = -Wl,-exported_symbol,_lv2_descriptor
  94. ifeq ($(HAVE_PYQT),true)
  95. SYMBOLS_LV2 += -Wl,-exported_symbol,_lv2ui_descriptor
  96. SYMBOLS_LV2_UI = -Wl,-exported_symbol,_lv2ui_descriptor
  97. endif
  98. SYMBOLS_VST = -Wl,-exported_symbol,_VSTPluginMain
  99. endif
  100. # ---------------------------------------------------------------------------------------------------------------------
  101. # Other libs
  102. LIBS_ui = $(MODULEDIR)/water.a
  103. LIBS_wine = $(MODULEDIR)/dgl.wine.a
  104. LIBS_wine += $(MODULEDIR)/water.files.a
  105. WINE_LINK_FLAGS = $(LINK_FLAGS)
  106. WINE_LINK_FLAGS += -L$(BINDIR) -lcarla_native-plugin
  107. WINE_LINK_FLAGS += -lstdc++ -lopengl32 -lgdi32 -ldl
  108. WINE_LINK_FLAGS += -Wl,-rpath,/usr/local/lib/carla
  109. WINE_LINK_FLAGS += -Wl,-rpath,/usr/lib/carla
  110. # ---------------------------------------------------------------------------------------------------------------------
  111. TARGETS = \
  112. $(BINDIR)/carla-native-plugin$(APP_EXT) \
  113. $(BINDIR)/libcarla_native-plugin$(LIB_EXT)
  114. TARGETS += \
  115. $(BINDIR)/carla.lv2/carla$(LIB_EXT)
  116. ifeq ($(HAVE_PYQT),true)
  117. TARGETS += \
  118. $(BINDIR)/carla.lv2/carla-ui$(LIB_EXT)
  119. endif
  120. ifneq ($(CROSS_COMPILING),true)
  121. TARGETS += \
  122. $(BINDIR)/carla.lv2/manifest.ttl
  123. endif
  124. ifneq ($(HAIKU),true)
  125. ifeq ($(HAVE_PYQT),true)
  126. TARGETS += \
  127. $(BINDIR)/CarlaRack$(LIB_EXT) \
  128. $(BINDIR)/CarlaRackFX$(LIB_EXT) \
  129. $(BINDIR)/CarlaPatchbay$(LIB_EXT) \
  130. $(BINDIR)/CarlaPatchbay16$(LIB_EXT) \
  131. $(BINDIR)/CarlaPatchbay32$(LIB_EXT) \
  132. $(BINDIR)/CarlaPatchbay64$(LIB_EXT) \
  133. $(BINDIR)/CarlaPatchbayFX$(LIB_EXT) \
  134. $(BINDIR)/CarlaVstShell$(LIB_EXT) \
  135. $(BINDIR)/CarlaVstFxShell$(LIB_EXT)
  136. endif
  137. endif
  138. # ---------------------------------------------------------------------------------------------------------------------
  139. all: $(TARGETS)
  140. ifeq ($(WIN32),true)
  141. wine: $(BINDIR)/CarlaVstShellBridged.dll $(BINDIR)/CarlaVstFxShellBridged.dll
  142. else
  143. wine: $(BINDIR)/CarlaVstShellBridged.dll.so $(BINDIR)/CarlaVstFxShellBridged.dll.so
  144. endif
  145. # ---------------------------------------------------------------------------------------------------------------------
  146. clean:
  147. rm -f $(OBJDIR)/*.o $(TARGETS)
  148. rm -f $(BINDIR)/carla.lv2/*.*
  149. rm -f $(BINDIR)/carla-lv2-export$(APP_EXT)
  150. debug:
  151. $(MAKE) DEBUG=true
  152. # ---------------------------------------------------------------------------------------------------------------------
  153. $(BINDIR)/carla-native-plugin$(APP_EXT): $(OBJDIR)/carla-native-plugin.cpp.o $(LIBS)
  154. -@mkdir -p $(BINDIR)
  155. @echo "Linking carla-native-plugin$(APP_EXT)"
  156. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $@
  157. $(BINDIR)/libcarla_native-plugin$(LIB_EXT): $(OBJDIR)/carla-native-plugin.cpp.o $(LIBS)
  158. -@mkdir -p $(BINDIR)
  159. @echo "Linking libcarla-native-plugin$(LIB_EXT)"
  160. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_NATIVE) $(NATIVE_LINK_FLAGS) -o $@
  161. # ---------------------------------------------------------------------------------------------------------------------
  162. $(BINDIR)/carla.lv2/carla$(LIB_EXT): $(OBJDIR)/carla-lv2.cpp.o $(LIBS)
  163. -@mkdir -p $(BINDIR)/carla.lv2
  164. @echo "Linking carla.lv2/carla$(LIB_EXT)"
  165. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_LV2) $(NATIVE_LINK_FLAGS) -o $@
  166. $(BINDIR)/carla.lv2/carla-ui$(LIB_EXT): $(OBJDIR)/carla-lv2-ui.cpp.o $(LIBS_ui)
  167. -@mkdir -p $(BINDIR)/carla.lv2
  168. @echo "Linking carla.lv2/carla-ui$(LIB_EXT)"
  169. @$(CXX) $< $(LIBS_START) $(LIBS_ui) $(LIBS_END) $(SHARED) $(SYMBOLS_LV2_UI) $(NATIVE_LINK_FLAGS) -o $@
  170. # ---------------------------------------------------------------------------------------------------------------------
  171. $(BINDIR)/CarlaRack$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.rack-syn.o $(OBJDIR)/carla-vst-export.cpp.o
  172. -@mkdir -p $(BINDIR)
  173. @echo "Linking CarlaRack$(LIB_EXT)"
  174. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  175. $(BINDIR)/CarlaRackFX$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.rack-fx.o $(OBJDIR)/carla-vst-export.cpp.o
  176. -@mkdir -p $(BINDIR)
  177. @echo "Linking CarlaRackFX$(LIB_EXT)"
  178. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  179. $(BINDIR)/CarlaPatchbay$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn.o $(OBJDIR)/carla-vst-export.cpp.o
  180. -@mkdir -p $(BINDIR)
  181. @echo "Linking CarlaPatchbay$(LIB_EXT)"
  182. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  183. $(BINDIR)/CarlaPatchbay16$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o $(OBJDIR)/carla-vst-export.cpp.o
  184. -@mkdir -p $(BINDIR)
  185. @echo "Linking CarlaPatchbay16$(LIB_EXT)"
  186. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  187. $(BINDIR)/CarlaPatchbay32$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn32.o $(OBJDIR)/carla-vst-export.cpp.o
  188. -@mkdir -p $(BINDIR)
  189. @echo "Linking CarlaPatchbay32$(LIB_EXT)"
  190. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  191. $(BINDIR)/CarlaPatchbay64$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn64.o $(OBJDIR)/carla-vst-export.cpp.o
  192. -@mkdir -p $(BINDIR)
  193. @echo "Linking CarlaPatchbay64$(LIB_EXT)"
  194. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  195. $(BINDIR)/CarlaPatchbayFX$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-fx.o $(OBJDIR)/carla-vst-export.cpp.o
  196. -@mkdir -p $(BINDIR)
  197. @echo "Linking CarlaPatchbayFX$(LIB_EXT)"
  198. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  199. # ---------------------------------------------------------------------------------------------------------------------
  200. $(BINDIR)/CarlaVstShell$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.o
  201. -@mkdir -p $(BINDIR)
  202. @echo "Linking CarlaVstShell$(LIB_EXT)"
  203. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  204. $(BINDIR)/CarlaVstFxShell$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.o
  205. -@mkdir -p $(BINDIR)
  206. @echo "Linking CarlaVstFxShell$(LIB_EXT)"
  207. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  208. ifeq ($(WIN32),true)
  209. $(BINDIR)/CarlaVstShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o carla-vst-export.def
  210. -@mkdir -p $(BINDIR)
  211. @echo "Linking CarlaVstShellBridged.dll"
  212. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
  213. $(BINDIR)/CarlaVstFxShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o carla-vst-export.def
  214. -@mkdir -p $(BINDIR)
  215. @echo "Linking CarlaVstFxShellBridged.dll"
  216. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
  217. else
  218. $(BINDIR)/CarlaVstShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
  219. -@mkdir -p $(BINDIR)
  220. @echo "Linking CarlaVstShellBridged.dll.so"
  221. @$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
  222. $(BINDIR)/CarlaVstFxShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
  223. -@mkdir -p $(BINDIR)
  224. @echo "Linking CarlaVstFxShellBridged.dll.so"
  225. @$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
  226. endif
  227. # ---------------------------------------------------------------------------------------------------------------------
  228. $(OBJDIR)/carla-native-plugin.cpp.o: carla-native-plugin.cpp
  229. -@mkdir -p $(OBJDIR)
  230. @echo "Compiling $<"
  231. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  232. # ---------------------------------------------------------------------------------------------------------------------
  233. $(OBJDIR)/carla-lv2.cpp.o: carla-lv2.cpp
  234. -@mkdir -p $(OBJDIR)
  235. @echo "Compiling $<"
  236. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  237. $(OBJDIR)/carla-lv2-ui.cpp.o: carla-lv2-ui.cpp
  238. -@mkdir -p $(OBJDIR)
  239. @echo "Compiling $<"
  240. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  241. # ---------------------------------------------------------------------------------------------------------------------
  242. $(OBJDIR)/carla-vst.cpp.rack-fx.o: carla-vst.cpp
  243. -@mkdir -p $(OBJDIR)
  244. @echo "Compiling $< (RackFX)"
  245. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=0 -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  246. $(OBJDIR)/carla-vst.cpp.rack-syn.o: carla-vst.cpp
  247. -@mkdir -p $(OBJDIR)
  248. @echo "Compiling $< (RackSynth)"
  249. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=0 -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  250. $(OBJDIR)/carla-vst.cpp.patchbay-fx.o: carla-vst.cpp
  251. -@mkdir -p $(OBJDIR)
  252. @echo "Compiling $< (PatchbayFX)"
  253. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  254. $(OBJDIR)/carla-vst.cpp.patchbay-syn.o: carla-vst.cpp
  255. -@mkdir -p $(OBJDIR)
  256. @echo "Compiling $< (PatchbaySynth)"
  257. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  258. $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o: carla-vst.cpp
  259. -@mkdir -p $(OBJDIR)
  260. @echo "Compiling $< (PatchbaySynth 16ch)"
  261. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_16CH -c -o $@
  262. $(OBJDIR)/carla-vst.cpp.patchbay-syn32.o: carla-vst.cpp
  263. -@mkdir -p $(OBJDIR)
  264. @echo "Compiling $< (PatchbaySynth 32ch)"
  265. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_32CH -c -o $@
  266. $(OBJDIR)/carla-vst.cpp.patchbay-syn64.o: carla-vst.cpp
  267. -@mkdir -p $(OBJDIR)
  268. @echo "Compiling $< (PatchbaySynth 64ch)"
  269. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_64CH -c -o $@
  270. $(OBJDIR)/carla-vst.cpp.shell.o: carla-vst.cpp
  271. -@mkdir -p $(OBJDIR)
  272. @echo "Compiling $< (VstShell)"
  273. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_VST_SHELL -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  274. $(OBJDIR)/carla-vst.cpp.shellfx.o: carla-vst.cpp
  275. -@mkdir -p $(OBJDIR)
  276. @echo "Compiling $< (VstShell)"
  277. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_VST_SHELL -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  278. $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o: carla-vst-export-bridged.cpp
  279. -@mkdir -p $(OBJDIR)
  280. @echo "Compiling $<"
  281. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  282. $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o: carla-vst-export-bridged.cpp
  283. -@mkdir -p $(OBJDIR)
  284. @echo "Compiling $<"
  285. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  286. $(OBJDIR)/carla-vst-export.cpp.o: carla-vst-export.cpp
  287. -@mkdir -p $(OBJDIR)
  288. @echo "Compiling $<"
  289. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  290. $(OBJDIR)/carla-vst-export.cpp.dll.o: carla-vst-export.cpp
  291. -@mkdir -p $(OBJDIR)
  292. @echo "Compiling $< (Wine)"
  293. @$(WINECC) $< $(BUILD_CXX_FLAGS) -c -o $@
  294. # ---------------------------------------------------------------------------------------------------------------------
  295. $(BINDIR)/carla.lv2/manifest.ttl: $(OBJDIR)/carla-lv2-export.cpp.o $(BINDIR)/carla.lv2/carla$(LIB_EXT)
  296. -@mkdir -p $(BINDIR)/carla.lv2
  297. @echo "Linking carla-lv2-export$(APP_EXT)"
  298. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $(BINDIR)/carla-lv2-export$(APP_EXT)
  299. @echo "Generating LV2 ttl data"
  300. ifeq ($(BUILDING_FOR_WINDOWS),true)
  301. @cd $(BINDIR) && wine ./carla-lv2-export$(APP_EXT)
  302. else
  303. @cd $(BINDIR) && ./carla-lv2-export$(APP_EXT)
  304. endif
  305. @cd $(BINDIR)/carla.lv2 && ln -sf ../*bridge-* ../carla-discovery-* .
  306. $(BINDIR)/carla-lv2-export$(APP_EXT): $(OBJDIR)/carla-lv2-export.cpp.o
  307. -@mkdir -p $(BINDIR)
  308. @echo "Linking carla-lv2-export$(APP_EXT)"
  309. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $@
  310. $(OBJDIR)/carla-lv2-export.cpp.o: carla-lv2-export.cpp
  311. -@mkdir -p $(OBJDIR)
  312. @echo "Compiling $<"
  313. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  314. # ---------------------------------------------------------------------------------------------------------------------
  315. -include $(OBJDIR)/carla-native-plugin.cpp.d
  316. -include $(OBJDIR)/carla-lv2.cpp.d
  317. -include $(OBJDIR)/carla-lv2-export.cpp.d
  318. -include $(OBJDIR)/carla-vst.cpp.patchbay-fx.d
  319. -include $(OBJDIR)/carla-vst.cpp.patchbay-syn.d
  320. -include $(OBJDIR)/carla-vst.cpp.patchbay-syn16.d
  321. -include $(OBJDIR)/carla-vst.cpp.rack-fx.d
  322. -include $(OBJDIR)/carla-vst.cpp.rack-syn.d
  323. -include $(OBJDIR)/carla-vst.cpp.shell.d
  324. -include $(OBJDIR)/carla-vst-export.cpp.d
  325. -include $(OBJDIR)/carla-vst-export.cpp.dll.d
  326. -include $(OBJDIR)/carla-vst-export-bridged.cpp.fx.d
  327. -include $(OBJDIR)/carla-vst-export-bridged.cpp.synth.d
  328. # ---------------------------------------------------------------------------------------------------------------------