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.

417 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 = $(HYLIA_LIBS)
  67. NATIVE_LINK_FLAGS += $(LINK_FLAGS)
  68. NATIVE_LINK_FLAGS += $(JACKBRIDGE_LIBS)
  69. NATIVE_LINK_FLAGS += $(LILV_LIBS)
  70. NATIVE_LINK_FLAGS += $(RTMEMPOOL_LIBS)
  71. NATIVE_LINK_FLAGS += $(WATER_LIBS)
  72. NATIVE_LINK_FLAGS += $(NATIVE_PLUGINS_LIBS)
  73. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  74. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  75. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  76. NATIVE_LINK_FLAGS += $(X11_LIBS)
  77. ifeq ($(USING_JUCE),true)
  78. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  79. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  80. LINK_FLAGS += $(JUCE_CORE_LIBS)
  81. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  82. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  83. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  84. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  85. ifeq ($(MACOS),true)
  86. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  87. endif
  88. endif
  89. ifeq ($(MACOS),true)
  90. SYMBOLS_NATIVE = -Wl,-exported_symbol,_carla_get_native_rack_plugin
  91. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_native_patchbay_plugin
  92. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_library_filename
  93. SYMBOLS_NATIVE += -Wl,-exported_symbol,_carla_get_library_folder
  94. SYMBOLS_LV2 = -Wl,-exported_symbol,_lv2_descriptor
  95. ifeq ($(HAVE_PYQT),true)
  96. SYMBOLS_LV2 += -Wl,-exported_symbol,_lv2ui_descriptor
  97. SYMBOLS_LV2_UI = -Wl,-exported_symbol,_lv2ui_descriptor
  98. endif
  99. SYMBOLS_VST = -Wl,-exported_symbol,_VSTPluginMain
  100. endif
  101. # ---------------------------------------------------------------------------------------------------------------------
  102. # Other libs
  103. LIBS_ui = $(MODULEDIR)/water.a
  104. LIBS_wine = $(MODULEDIR)/dgl.wine.a
  105. LIBS_wine += $(MODULEDIR)/water.files.a
  106. WINE_LINK_FLAGS = $(LINK_FLAGS)
  107. WINE_LINK_FLAGS += -L$(BINDIR) -lcarla_native-plugin
  108. WINE_LINK_FLAGS += -lstdc++ -lopengl32 -lgdi32 -ldl
  109. WINE_LINK_FLAGS += -Wl,-rpath,/usr/local/lib/carla
  110. WINE_LINK_FLAGS += -Wl,-rpath,/usr/lib/carla
  111. # ---------------------------------------------------------------------------------------------------------------------
  112. TARGETS = \
  113. $(BINDIR)/carla-native-plugin$(APP_EXT) \
  114. $(BINDIR)/libcarla_native-plugin$(LIB_EXT)
  115. TARGETS += \
  116. $(BINDIR)/carla.lv2/carla$(LIB_EXT)
  117. ifeq ($(HAVE_PYQT),true)
  118. TARGETS += \
  119. $(BINDIR)/carla.lv2/carla-ui$(LIB_EXT)
  120. endif
  121. ifneq ($(CROSS_COMPILING),true)
  122. TARGETS += \
  123. $(BINDIR)/carla.lv2/manifest.ttl
  124. endif
  125. ifneq ($(HAIKU),true)
  126. ifeq ($(HAVE_DGL),true)
  127. ifeq ($(HAVE_PYQT),true)
  128. TARGETS += \
  129. $(BINDIR)/CarlaRack$(LIB_EXT) \
  130. $(BINDIR)/CarlaRackFX$(LIB_EXT) \
  131. $(BINDIR)/CarlaPatchbay$(LIB_EXT) \
  132. $(BINDIR)/CarlaPatchbay16$(LIB_EXT) \
  133. $(BINDIR)/CarlaPatchbay32$(LIB_EXT) \
  134. $(BINDIR)/CarlaPatchbay64$(LIB_EXT) \
  135. $(BINDIR)/CarlaPatchbayFX$(LIB_EXT) \
  136. $(BINDIR)/CarlaVstShell$(LIB_EXT) \
  137. $(BINDIR)/CarlaVstFxShell$(LIB_EXT)
  138. endif
  139. endif
  140. endif
  141. # ---------------------------------------------------------------------------------------------------------------------
  142. all: $(TARGETS)
  143. ifeq ($(WIN32),true)
  144. wine: $(BINDIR)/CarlaVstShellBridged.dll $(BINDIR)/CarlaVstFxShellBridged.dll
  145. else
  146. wine: $(BINDIR)/CarlaVstShellBridged.dll.so $(BINDIR)/CarlaVstFxShellBridged.dll.so
  147. endif
  148. # ---------------------------------------------------------------------------------------------------------------------
  149. clean:
  150. rm -f $(OBJDIR)/*.o $(TARGETS)
  151. rm -f $(BINDIR)/carla.lv2/*.*
  152. rm -f $(BINDIR)/carla-lv2-export$(APP_EXT)
  153. debug:
  154. $(MAKE) DEBUG=true
  155. # ---------------------------------------------------------------------------------------------------------------------
  156. $(BINDIR)/carla-native-plugin$(APP_EXT): $(OBJDIR)/carla-native-plugin.cpp.o $(LIBS)
  157. -@mkdir -p $(BINDIR)
  158. @echo "Linking carla-native-plugin$(APP_EXT)"
  159. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $@
  160. $(BINDIR)/libcarla_native-plugin$(LIB_EXT): $(OBJDIR)/carla-native-plugin.cpp.o $(LIBS)
  161. -@mkdir -p $(BINDIR)
  162. @echo "Linking libcarla-native-plugin$(LIB_EXT)"
  163. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_NATIVE) $(NATIVE_LINK_FLAGS) -o $@
  164. # ---------------------------------------------------------------------------------------------------------------------
  165. $(BINDIR)/carla.lv2/carla$(LIB_EXT): $(OBJDIR)/carla-lv2.cpp.o $(LIBS)
  166. -@mkdir -p $(BINDIR)/carla.lv2
  167. @echo "Linking carla.lv2/carla$(LIB_EXT)"
  168. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_LV2) $(NATIVE_LINK_FLAGS) -o $@
  169. $(BINDIR)/carla.lv2/carla-ui$(LIB_EXT): $(OBJDIR)/carla-lv2-ui.cpp.o $(LIBS_ui)
  170. -@mkdir -p $(BINDIR)/carla.lv2
  171. @echo "Linking carla.lv2/carla-ui$(LIB_EXT)"
  172. @$(CXX) $< $(LIBS_START) $(LIBS_ui) $(LIBS_END) $(SHARED) $(SYMBOLS_LV2_UI) $(NATIVE_LINK_FLAGS) -o $@
  173. # ---------------------------------------------------------------------------------------------------------------------
  174. $(BINDIR)/CarlaRack$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.rack-syn.o $(OBJDIR)/carla-vst-export.cpp.o
  175. -@mkdir -p $(BINDIR)
  176. @echo "Linking CarlaRack$(LIB_EXT)"
  177. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  178. $(BINDIR)/CarlaRackFX$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.rack-fx.o $(OBJDIR)/carla-vst-export.cpp.o
  179. -@mkdir -p $(BINDIR)
  180. @echo "Linking CarlaRackFX$(LIB_EXT)"
  181. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  182. $(BINDIR)/CarlaPatchbay$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn.o $(OBJDIR)/carla-vst-export.cpp.o
  183. -@mkdir -p $(BINDIR)
  184. @echo "Linking CarlaPatchbay$(LIB_EXT)"
  185. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  186. $(BINDIR)/CarlaPatchbay16$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o $(OBJDIR)/carla-vst-export.cpp.o
  187. -@mkdir -p $(BINDIR)
  188. @echo "Linking CarlaPatchbay16$(LIB_EXT)"
  189. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  190. $(BINDIR)/CarlaPatchbay32$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn32.o $(OBJDIR)/carla-vst-export.cpp.o
  191. -@mkdir -p $(BINDIR)
  192. @echo "Linking CarlaPatchbay32$(LIB_EXT)"
  193. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  194. $(BINDIR)/CarlaPatchbay64$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-syn64.o $(OBJDIR)/carla-vst-export.cpp.o
  195. -@mkdir -p $(BINDIR)
  196. @echo "Linking CarlaPatchbay64$(LIB_EXT)"
  197. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  198. $(BINDIR)/CarlaPatchbayFX$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.patchbay-fx.o $(OBJDIR)/carla-vst-export.cpp.o
  199. -@mkdir -p $(BINDIR)
  200. @echo "Linking CarlaPatchbayFX$(LIB_EXT)"
  201. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  202. # ---------------------------------------------------------------------------------------------------------------------
  203. $(BINDIR)/CarlaVstShell$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.o
  204. -@mkdir -p $(BINDIR)
  205. @echo "Linking CarlaVstShell$(LIB_EXT)"
  206. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  207. $(BINDIR)/CarlaVstFxShell$(LIB_EXT): $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.o
  208. -@mkdir -p $(BINDIR)
  209. @echo "Linking CarlaVstFxShell$(LIB_EXT)"
  210. @$(CXX) $^ $(LIBS_START) $(LIBS) $(LIBS_END) $(SHARED) $(SYMBOLS_VST) $(NATIVE_LINK_FLAGS) -o $@
  211. ifeq ($(WIN32),true)
  212. $(BINDIR)/CarlaVstShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o carla-vst-export.def
  213. -@mkdir -p $(BINDIR)
  214. @echo "Linking CarlaVstShellBridged.dll"
  215. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
  216. $(BINDIR)/CarlaVstFxShellBridged.dll: $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o carla-vst-export.def
  217. -@mkdir -p $(BINDIR)
  218. @echo "Linking CarlaVstFxShellBridged.dll"
  219. @$(CXX) $^ $(SHARED) $(LINK_FLAGS) -o $@
  220. else
  221. $(BINDIR)/CarlaVstShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shell.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
  222. -@mkdir -p $(BINDIR)
  223. @echo "Linking CarlaVstShellBridged.dll.so"
  224. @$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
  225. $(BINDIR)/CarlaVstFxShellBridged.dll.so: $(OBJDIR)/carla-vst.cpp.shellfx.o $(OBJDIR)/carla-vst-export.cpp.dll.o carla-vst-export.def
  226. -@mkdir -p $(BINDIR)
  227. @echo "Linking CarlaVstFxShellBridged.dll.so"
  228. @$(WINECC) $^ $(LIBS_START) $(LIBS_wine) $(LIBS_END) $(SHARED) $(WINE_LINK_FLAGS) -o $@
  229. endif
  230. # ---------------------------------------------------------------------------------------------------------------------
  231. $(OBJDIR)/carla-native-plugin.cpp.o: carla-native-plugin.cpp
  232. -@mkdir -p $(OBJDIR)
  233. @echo "Compiling $<"
  234. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  235. # ---------------------------------------------------------------------------------------------------------------------
  236. $(OBJDIR)/carla-lv2.cpp.o: carla-lv2.cpp
  237. -@mkdir -p $(OBJDIR)
  238. @echo "Compiling $<"
  239. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  240. $(OBJDIR)/carla-lv2-ui.cpp.o: carla-lv2-ui.cpp
  241. -@mkdir -p $(OBJDIR)
  242. @echo "Compiling $<"
  243. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  244. # ---------------------------------------------------------------------------------------------------------------------
  245. $(OBJDIR)/carla-vst.cpp.rack-fx.o: carla-vst.cpp
  246. -@mkdir -p $(OBJDIR)
  247. @echo "Compiling $< (RackFX)"
  248. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=0 -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  249. $(OBJDIR)/carla-vst.cpp.rack-syn.o: carla-vst.cpp
  250. -@mkdir -p $(OBJDIR)
  251. @echo "Compiling $< (RackSynth)"
  252. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=0 -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  253. $(OBJDIR)/carla-vst.cpp.patchbay-fx.o: carla-vst.cpp
  254. -@mkdir -p $(OBJDIR)
  255. @echo "Compiling $< (PatchbayFX)"
  256. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  257. $(OBJDIR)/carla-vst.cpp.patchbay-syn.o: carla-vst.cpp
  258. -@mkdir -p $(OBJDIR)
  259. @echo "Compiling $< (PatchbaySynth)"
  260. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  261. $(OBJDIR)/carla-vst.cpp.patchbay-syn16.o: carla-vst.cpp
  262. -@mkdir -p $(OBJDIR)
  263. @echo "Compiling $< (PatchbaySynth 16ch)"
  264. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_16CH -c -o $@
  265. $(OBJDIR)/carla-vst.cpp.patchbay-syn32.o: carla-vst.cpp
  266. -@mkdir -p $(OBJDIR)
  267. @echo "Compiling $< (PatchbaySynth 32ch)"
  268. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_32CH -c -o $@
  269. $(OBJDIR)/carla-vst.cpp.patchbay-syn64.o: carla-vst.cpp
  270. -@mkdir -p $(OBJDIR)
  271. @echo "Compiling $< (PatchbaySynth 64ch)"
  272. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_PATCHBAY=1 -DCARLA_PLUGIN_SYNTH=1 -DCARLA_PLUGIN_64CH -c -o $@
  273. $(OBJDIR)/carla-vst.cpp.shell.o: carla-vst.cpp
  274. -@mkdir -p $(OBJDIR)
  275. @echo "Compiling $< (VstShell)"
  276. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_VST_SHELL -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  277. $(OBJDIR)/carla-vst.cpp.shellfx.o: carla-vst.cpp
  278. -@mkdir -p $(OBJDIR)
  279. @echo "Compiling $< (VstShell)"
  280. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_VST_SHELL -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  281. $(OBJDIR)/carla-vst-export-bridged.cpp.fx.o: carla-vst-export-bridged.cpp
  282. -@mkdir -p $(OBJDIR)
  283. @echo "Compiling $<"
  284. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_SYNTH=0 -c -o $@
  285. $(OBJDIR)/carla-vst-export-bridged.cpp.synth.o: carla-vst-export-bridged.cpp
  286. -@mkdir -p $(OBJDIR)
  287. @echo "Compiling $<"
  288. @$(CXX) $< $(BUILD_CXX_FLAGS) -DCARLA_PLUGIN_SYNTH=1 -c -o $@
  289. $(OBJDIR)/carla-vst-export.cpp.o: carla-vst-export.cpp
  290. -@mkdir -p $(OBJDIR)
  291. @echo "Compiling $<"
  292. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  293. $(OBJDIR)/carla-vst-export.cpp.dll.o: carla-vst-export.cpp
  294. -@mkdir -p $(OBJDIR)
  295. @echo "Compiling $< (Wine)"
  296. @$(WINECC) $< $(BUILD_CXX_FLAGS) -c -o $@
  297. # ---------------------------------------------------------------------------------------------------------------------
  298. $(BINDIR)/carla.lv2/manifest.ttl: $(OBJDIR)/carla-lv2-export.cpp.o $(BINDIR)/carla.lv2/carla$(LIB_EXT)
  299. -@mkdir -p $(BINDIR)/carla.lv2
  300. @echo "Linking carla-lv2-export$(APP_EXT)"
  301. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $(BINDIR)/carla-lv2-export$(APP_EXT)
  302. @echo "Generating LV2 ttl data"
  303. ifeq ($(BUILDING_FOR_WINDOWS),true)
  304. @cd $(BINDIR) && wine ./carla-lv2-export$(APP_EXT)
  305. else
  306. @cd $(BINDIR) && ./carla-lv2-export$(APP_EXT)
  307. endif
  308. @cd $(BINDIR)/carla.lv2 && ln -sf ../*bridge-* ../carla-discovery-* .
  309. $(BINDIR)/carla-lv2-export$(APP_EXT): $(OBJDIR)/carla-lv2-export.cpp.o
  310. -@mkdir -p $(BINDIR)
  311. @echo "Linking carla-lv2-export$(APP_EXT)"
  312. @$(CXX) $< $(LIBS_START) $(LIBS) $(LIBS_END) $(NATIVE_LINK_FLAGS) -o $@
  313. $(OBJDIR)/carla-lv2-export.cpp.o: carla-lv2-export.cpp
  314. -@mkdir -p $(OBJDIR)
  315. @echo "Compiling $<"
  316. @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
  317. # ---------------------------------------------------------------------------------------------------------------------
  318. -include $(OBJDIR)/carla-native-plugin.cpp.d
  319. -include $(OBJDIR)/carla-lv2.cpp.d
  320. -include $(OBJDIR)/carla-lv2-export.cpp.d
  321. -include $(OBJDIR)/carla-vst.cpp.patchbay-fx.d
  322. -include $(OBJDIR)/carla-vst.cpp.patchbay-syn.d
  323. -include $(OBJDIR)/carla-vst.cpp.patchbay-syn16.d
  324. -include $(OBJDIR)/carla-vst.cpp.rack-fx.d
  325. -include $(OBJDIR)/carla-vst.cpp.rack-syn.d
  326. -include $(OBJDIR)/carla-vst.cpp.shell.d
  327. -include $(OBJDIR)/carla-vst-export.cpp.d
  328. -include $(OBJDIR)/carla-vst-export.cpp.dll.d
  329. -include $(OBJDIR)/carla-vst-export-bridged.cpp.fx.d
  330. -include $(OBJDIR)/carla-vst-export-bridged.cpp.synth.d
  331. # ---------------------------------------------------------------------------------------------------------------------