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

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