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.

526 lines
16KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-bridges #
  3. # -------------------------- #
  4. # Created by falkTX
  5. #
  6. include ../Makefile.mk
  7. # --------------------------------------------------------------
  8. HAVE_GTK2 = $(shell pkg-config --exists gtk+-2.0 && echo true)
  9. HAVE_GTK3 = $(shell pkg-config --exists gtk+-3.0 && echo true)
  10. ifeq ($(HAVE_QT5),true)
  11. QT_UI_FLAGS = $(shell pkg-config --cflags QtWidgets)
  12. QT_UI_LIBS = $(shell pkg-config --libs QtWidgets)
  13. else
  14. QT_UI_FLAGS = $(shell pkg-config --cflags QtGui)
  15. QT_UI_LIBS = $(shell pkg-config --libs QtGui)
  16. endif
  17. # --------------------------------------------------------------
  18. BUILD_CXX_FLAGS += -DBUILD_BRIDGE
  19. BUILD_CXX_FLAGS += -I. -I../backend -I../includes -I../utils
  20. BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo QtCore)
  21. LINK_FLAGS += $(shell pkg-config --libs liblo QtCore)
  22. # --------------------------------------------------------------
  23. # Plugin bridges
  24. BUILD_PLUGIN_FLAGS = $(BUILD_CXX_FLAGS)
  25. BUILD_PLUGIN_FLAGS += -DBUILD_BRIDGE_PLUGIN -DBRIDGE_PLUGIN
  26. BUILD_PLUGIN_FLAGS += -DWANT_LADSPA -DWANT_DSSI -DWANT_LV2 -DWANT_VST
  27. BUILD_PLUGIN_FLAGS += -I../backend/engine -I../backend/plugin -I../libs
  28. BUILD_PLUGIN_FLAGS += $(QT_UI_FLAGS) $(shell pkg-config --cflags QtXml)
  29. LINK_PLUGIN_FLAGS = $(LINK_FLAGS)
  30. LINK_PLUGIN_FLAGS += $(QT_UI_LIBS) $(shell pkg-config --libs QtXml) -lpthread
  31. # --------------------------------------------------------------
  32. # Plugin bridges (POSIX)
  33. POSIX_BUILD_FLAGS = $(BUILD_PLUGIN_FLAGS)
  34. POSIX_32BIT_FLAGS = $(32BIT_FLAGS) -L/usr/lib32 -L/usr/lib/i386-linux-gnu
  35. POSIX_64BIT_FLAGS = $(64BIT_FLAGS) -L/usr/lib64 -L/usr/lib/x86_64-linux-gnu
  36. POSIX_LINK_FLAGS = $(LINK_PLUGIN_FLAGS) $(shell pkg-config --libs jack) -ldl
  37. # --------------------------------------------------------------
  38. # Plugin bridges (Windows)
  39. WIN_BUILD_FLAGS = $(BUILD_PLUGIN_FLAGS) -DJACKBRIDGE_EXPORT -DPTW32_STATIC_LIB -I../libs/jackbridge
  40. WIN_32BIT_FLAGS = $(32BIT_FLAGS)
  41. WIN_64BIT_FLAGS = $(64BIT_FLAGS)
  42. WIN_LINK_FLAGS = $(LINK_PLUGIN_FLAGS) -mwindows -lwinspool -lole32 -luuid -limm32 -lshell32 -lws2_32 -L../libs
  43. # --------------------------------------------------------------
  44. # Plugin bridges (Native)
  45. NATIVE_BUILD_FLAGS = $(POSIX_BUILD_FLAGS)
  46. NATIVE_LINK_FLAGS = $(POSIX_LINK_FLAGS)
  47. NATIVE_BUILD_FLAGS += -DWANT_JACK -DWANT_NATIVE
  48. ifeq ($(HAVE_FLUIDSYNTH),true)
  49. NATIVE_BUILD_FLAGS += -DWANT_FLUIDSYNTH
  50. NATIVE_BUILD_FLAGS += $(shell pkg-config --cflags fluidsynth)
  51. NATIVE_LINK_FLAGS += $(shell pkg-config --libs fluidsynth)
  52. endif
  53. ifeq ($(HAVE_LINUXSAMPLER),true)
  54. NATIVE_BUILD_FLAGS += -DWANT_LINUXSAMPLER
  55. NATIVE_BUILD_FLAGS += $(shell pkg-config --cflags linuxsampler)
  56. NATIVE_LINK_FLAGS += $(shell pkg-config --libs linuxsampler)
  57. endif
  58. ifeq ($(HAVE_OPENGL),true)
  59. NATIVE_BUILD_FLAGS += -DWANT_OPENGL
  60. NATIVE_LINK_FLAGS += $(shell pkg-config --libs gl) -lX11
  61. endif
  62. ifeq ($(HAVE_AF_DEPS),true)
  63. NATIVE_BUILD_FLAGS += -DWANT_AUDIOFILE
  64. NATIVE_LINK_FLAGS += $(shell pkg-config --libs libavcodec libavformat libavutil sndfile)
  65. endif
  66. ifeq ($(HAVE_MF_DEPS),true)
  67. NATIVE_BUILD_FLAGS += -DWANT_MIDIFILE
  68. NATIVE_LINK_FLAGS += $(shell pkg-config --libs smf)
  69. endif
  70. ifeq ($(HAVE_ZYN_DEPS),true)
  71. NATIVE_BUILD_FLAGS += -DWANT_ZYNADDSUBFX
  72. NATIVE_LINK_FLAGS += $(shell pkg-config --libs fftw3 mxml zlib)
  73. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  74. NATIVE_LINK_FLAGS += $(shell pkg-config --libs ntk ntk_images)
  75. endif
  76. endif
  77. # --------------------------------------------------------------
  78. # UI bridges
  79. BUILD_UI_FLAGS = $(BUILD_CXX_FLAGS) -DBUILD_BRIDGE_UI
  80. LINK_UI_FLAGS = $(LINK_FLAGS) -ldl
  81. BUILD_UI_LV2_FLAGS = $(BUILD_UI_FLAGS) -DBRIDGE_LV2
  82. BUILD_UI_VST_FLAGS = $(BUILD_UI_FLAGS) -DBRIDGE_VST
  83. BUILD_UI_LV2_GTK2_FLAGS = $(BUILD_UI_LV2_FLAGS) -DBRIDGE_GTK2 -DBRIDGE_LV2_GTK2 $(shell pkg-config --cflags gtk+-2.0)
  84. LINK_UI_LV2_GTK2_FLAGS = $(LINK_UI_FLAGS) $(shell pkg-config --libs gtk+-2.0)
  85. BUILD_UI_LV2_GTK3_FLAGS = $(BUILD_UI_LV2_FLAGS) -DBRIDGE_GTK3 -DBRIDGE_LV2_GTK3 $(shell pkg-config --cflags gtk+-3.0)
  86. LINK_UI_LV2_GTK3_FLAGS = $(LINK_UI_FLAGS) $(shell pkg-config --libs gtk+-3.0)
  87. BUILD_UI_LV2_QT4_FLAGS = $(BUILD_UI_LV2_FLAGS) -DBRIDGE_QT4 -DBRIDGE_LV2_QT4 $(shell pkg-config --cflags QtGui)
  88. LINK_UI_LV2_QT4_FLAGS = $(LINK_UI_FLAGS) $(shell pkg-config --libs QtGui)
  89. BUILD_UI_LV2_QT5_FLAGS = $(BUILD_UI_LV2_FLAGS) -DBRIDGE_QT5 -DBRIDGE_LV2_QT5 $(shell pkg-config --cflags QtWidgets)
  90. LINK_UI_LV2_QT5_FLAGS = $(LINK_UI_FLAGS) $(shell pkg-config --libs QtWidgets)
  91. BUILD_UI_LV2_COCOA_FLAGS = $(BUILD_UI_VST_FLAGS) -DBRIDGE_COCOA -DBRIDGE_LV2_COCOA $(QT_UI_FLAGS)
  92. LINK_UI_LV2_COCOA_FLAGS = $(LINK_FLAGS) $(QT_UI_LIBS)
  93. BUILD_UI_LV2_HWND_FLAGS = $(BUILD_UI_VST_FLAGS) -DBRIDGE_HWND -DBRIDGE_LV2_HWND $(QT_UI_FLAGS)
  94. LINK_UI_LV2_HWND_FLAGS = $(LINK_FLAGS) $(QT_UI_LIBS) -mwindows -static
  95. BUILD_UI_LV2_X11_FLAGS = $(BUILD_UI_LV2_FLAGS) -DBRIDGE_X11 -DBRIDGE_LV2_X11 $(QT_UI_FLAGS)
  96. LINK_UI_LV2_X11_FLAGS = $(LINK_UI_FLAGS) $(QT_UI_LIBS)
  97. BUILD_UI_VST_COCOA_FLAGS = $(BUILD_UI_VST_FLAGS) -DBRIDGE_COCOA -DBRIDGE_VST_COCOA $(QT_UI_FLAGS)
  98. LINK_UI_VST_COCOA_FLAGS = $(LINK_FLAGS) $(QT_UI_LIBS)
  99. BUILD_UI_VST_HWND_FLAGS = $(BUILD_UI_VST_FLAGS) -DBRIDGE_HWND -DBRIDGE_VST_HWND $(QT_UI_FLAGS)
  100. LINK_UI_VST_HWND_FLAGS = $(LINK_FLAGS) $(QT_UI_LIBS) -mwindows -static
  101. BUILD_UI_VST_X11_FLAGS = $(BUILD_UI_VST_FLAGS) -DBRIDGE_X11 -DBRIDGE_VST_X11 $(QT_UI_FLAGS)
  102. LINK_UI_VST_X11_FLAGS = $(LINK_UI_FLAGS) $(QT_UI_LIBS)
  103. # --------------------------------------------------------------
  104. ifeq ($(CARLA_PLUGIN_SUPPORT),true)
  105. all: native ui_lv2-gtk2 ui_lv2-gtk3 ui_lv2-qt4 ui_lv2-qt5 ui_lv2-x11 ui_vst-x11
  106. ifeq ($(HAVE_GTK2),true)
  107. ui_lv2-gtk2: carla-bridge-lv2-gtk2
  108. else
  109. ui_lv2-gtk2:
  110. endif
  111. ifeq ($(HAVE_GTK3),true)
  112. ui_lv2-gtk3: carla-bridge-lv2-gtk3
  113. else
  114. ui_lv2-gtk3:
  115. endif
  116. ifneq ($(HAVE_QT5),true)
  117. ui_lv2-qt4: carla-bridge-lv2-qt4
  118. ui_lv2-qt5:
  119. else
  120. ui_lv2-qt4:
  121. ui_lv2-qt5: carla-bridge-lv2-qt5
  122. endif
  123. ui_lv2-cocoa: carla-bridge-lv2-cocoa
  124. ui_lv2-hwnd: carla-bridge-lv2-hwnd.exe
  125. ui_lv2-x11: carla-bridge-lv2-x11
  126. ui_vst-cocoa: carla-bridge-vst-cocoa
  127. ui_vst-hwnd: carla-bridge-vst-hwnd.exe
  128. ui_vst-x11: carla-bridge-vst-x11
  129. else # CARLA_PLUGIN_SUPPORT
  130. all:
  131. endif
  132. # --------------------------------------------------------------
  133. native: carla-bridge-native
  134. posix32: carla-bridge-posix32
  135. posix64: carla-bridge-posix64
  136. win32: carla-bridge-win32.exe
  137. win64: carla-bridge-win64.exe
  138. # --------------------------------------------------------------
  139. # UI common
  140. %__lv2.o: %.cpp
  141. $(CXX) $< $(BUILD_UI_LV2_FLAGS) -c -o $@
  142. %__vst.o: %.cpp
  143. $(CXX) $< $(BUILD_UI_VST_FLAGS) -c -o $@
  144. OBJS_UI_LV2_LIBS = \
  145. ../libs/lilv.a \
  146. ../libs/rtmempool.a
  147. # --------------------------------------------------------------
  148. # ui_lv2-gtk2
  149. OBJS_UI_LV2_GTK2 = CarlaBridgeUI-LV2__lv2-gtk2.o \
  150. CarlaBridgeClient__lv2.o CarlaBridgeOsc__lv2.o \
  151. CarlaBridgeToolkit__lv2.o CarlaBridgeToolkitGtk__lv2-gtk2.o
  152. carla-bridge-lv2-gtk2: $(OBJS_UI_LV2_GTK2) $(OBJS_UI_LV2_LIBS)
  153. $(CXX) $^ $(LINK_UI_LV2_GTK2_FLAGS) -o $@ && $(STRIP) $@
  154. %__lv2-gtk2.o: %.cpp
  155. $(CXX) $< $(BUILD_UI_LV2_GTK2_FLAGS) -c -o $@
  156. # --------------------------------------------------------------
  157. # ui_lv2-gtk3
  158. OBJS_UI_LV2_GTK3 = CarlaBridgeUI-LV2__lv2-gtk3.o \
  159. CarlaBridgeClient__lv2.o CarlaBridgeOsc__lv2.o \
  160. CarlaBridgeToolkit__lv2.o CarlaBridgeToolkitGtk__lv2-gtk3.o
  161. carla-bridge-lv2-gtk3: $(OBJS_UI_LV2_GTK3) $(OBJS_UI_LV2_LIBS)
  162. $(CXX) $^ $(LINK_UI_LV2_GTK3_FLAGS) -o $@ && $(STRIP) $@
  163. %__lv2-gtk3.o: %.cpp
  164. $(CXX) $< $(BUILD_UI_LV2_GTK3_FLAGS) -c -o $@
  165. # --------------------------------------------------------------
  166. # ui_lv2-qt4
  167. OBJS_UI_LV2_QT4 = CarlaBridgeUI-LV2__lv2-qt4.o \
  168. CarlaBridgeClient__lv2.o CarlaBridgeOsc__lv2.o \
  169. CarlaBridgeToolkit__lv2.o CarlaBridgeToolkitQt__lv2-qt4.o
  170. carla-bridge-lv2-qt4: $(OBJS_UI_LV2_QT4) $(OBJS_UI_LV2_LIBS)
  171. $(CXX) $^ $(LINK_UI_LV2_QT4_FLAGS) -o $@ && $(STRIP) $@
  172. %__lv2-qt4.o: %.cpp
  173. $(CXX) $< $(BUILD_UI_LV2_QT4_FLAGS) -c -o $@
  174. # --------------------------------------------------------------
  175. # ui_lv2-qt5
  176. OBJS_UI_LV2_QT5 = CarlaBridgeUI-LV2__lv2-qt5.o \
  177. CarlaBridgeClient__lv2.o CarlaBridgeOsc__lv2.o \
  178. CarlaBridgeToolkit__lv2.o CarlaBridgeToolkitQt__lv2-qt5.o
  179. carla-bridge-lv2-qt5: $(OBJS_UI_LV2_QT5) $(OBJS_UI_LV2_LIBS)
  180. $(CXX) $^ $(LINK_UI_LV2_QT5_FLAGS) -o $@ && $(STRIP) $@
  181. %__lv2-qt5.o: %.cpp
  182. $(CXX) $< $(BUILD_UI_LV2_QT5_FLAGS) -c -o $@
  183. # --------------------------------------------------------------
  184. # ui_lv2-x11
  185. OBJS_UI_LV2_X11 = CarlaBridgeUI-LV2__lv2-x11.o \
  186. CarlaBridgeClient__lv2.o CarlaBridgeOsc__lv2.o \
  187. CarlaBridgeToolkit__lv2.o CarlaBridgeToolkitQt__lv2-x11.o
  188. carla-bridge-lv2-x11: $(OBJS_UI_LV2_X11) $(OBJS_UI_LV2_LIBS)
  189. $(CXX) $^ $(LINK_UI_LV2_X11_FLAGS) -o $@ && $(STRIP) $@
  190. %__lv2-x11.o: %.cpp
  191. $(CXX) $< $(BUILD_UI_LV2_X11_FLAGS) -c -o $@
  192. # --------------------------------------------------------------
  193. # ui_vst-hwnd
  194. OBJS_UI_VST_HWND = CarlaBridgeUI-VST__vst-hwnd.o \
  195. CarlaBridgeClient__vst.o CarlaBridgeOsc__vst.o \
  196. CarlaBridgeToolkit__vst.o CarlaBridgeToolkitQt__vst-hwnd.o
  197. carla-bridge-vst-hwnd.exe: $(OBJS_UI_VST_HWND)
  198. $(CXX) $^ $(LINK_UI_VST_HWND_FLAGS) -o $@ && $(STRIP) $@
  199. %__vst-hwnd.o: %.cpp
  200. $(CXX) $< $(BUILD_UI_VST_HWND_FLAGS) -c -o $@
  201. # --------------------------------------------------------------
  202. # ui_vst-x11
  203. OBJS_UI_VST_X11 = CarlaBridgeUI-VST__vst-x11.o \
  204. CarlaBridgeClient__vst.o CarlaBridgeOsc__vst.o \
  205. CarlaBridgeToolkit__vst.o CarlaBridgeToolkitQt__vst-x11.o
  206. carla-bridge-vst-x11: $(OBJS_UI_VST_X11)
  207. $(CXX) $^ $(LINK_UI_VST_X11_FLAGS) -o $@ && $(STRIP) $@
  208. %__vst-x11.o: %.cpp
  209. $(CXX) $< $(BUILD_UI_VST_X11_FLAGS) -c -o $@
  210. # --------------------------------------------------------------
  211. # native
  212. OBJS_NATIVE = CarlaBridgePlugin__native.o \
  213. CarlaBridgeClient__native.o CarlaBridgeOsc__native.o
  214. # carla-engine
  215. OBJS_NATIVE += \
  216. ../backend/engine/CarlaEngine__native.o \
  217. ../backend/engine/CarlaEngineOsc__native.o \
  218. ../backend/engine/CarlaEngineThread__native.o \
  219. ../backend/engine/CarlaEngineJack__native.o \
  220. ../backend/engine/CarlaEngineBridge__native.o
  221. # carla-plugin
  222. OBJS_NATIVE += \
  223. ../backend/plugin/CarlaPlugin__native.o \
  224. ../backend/plugin/CarlaPluginThread__native.o \
  225. ../backend/plugin/NativePlugin__native.o \
  226. ../backend/plugin/LadspaPlugin__native.o \
  227. ../backend/plugin/DssiPlugin__native.o \
  228. ../backend/plugin/Lv2Plugin__native.o \
  229. ../backend/plugin/VstPlugin__native.o \
  230. ../backend/plugin/Vst3Plugin__native.o \
  231. ../backend/plugin/FluidSynthPlugin__native.o \
  232. ../backend/plugin/LinuxSamplerPlugin__native.o
  233. # carla-standalone
  234. OBJS_NATIVE += \
  235. ../backend/standalone/CarlaStandalone__native.o
  236. # libs
  237. OBJS_NATIVE += \
  238. ../backend/libcarla_native.a \
  239. ../libs/dgl.a \
  240. ../libs/lilv.a \
  241. ../libs/rtmempool.a \
  242. ../libs/widgets.a
  243. carla-bridge-native: $(OBJS_NATIVE)
  244. $(CXX) $^ $(NATIVE_LINK_FLAGS) -o $@ && $(STRIP) $@
  245. %__native.o: %.cpp
  246. $(CXX) $< $(NATIVE_BUILD_FLAGS) -c -o $@
  247. # --------------------------------------------------------------
  248. # posix32
  249. OBJS_POSIX32 = CarlaBridgePlugin__posix32.o \
  250. CarlaBridgeClient__posix32.o CarlaBridgeOsc__posix32.o
  251. # carla-engine
  252. OBJS_POSIX32 += \
  253. ../backend/engine/CarlaEngine__posix32.o \
  254. ../backend/engine/CarlaEngineOsc__posix32.o \
  255. ../backend/engine/CarlaEngineThread__posix32.o \
  256. ../backend/engine/CarlaEngineJack__posix32.o \
  257. ../backend/engine/CarlaEngineBridge__posix32.o
  258. # carla-plugin
  259. OBJS_POSIX32 += \
  260. ../backend/plugin/CarlaPlugin__posix32.o \
  261. ../backend/plugin/CarlaPluginThread__posix32.o \
  262. ../backend/plugin/NativePlugin__posix32.o \
  263. ../backend/plugin/LadspaPlugin__posix32.o \
  264. ../backend/plugin/DssiPlugin__posix32.o \
  265. ../backend/plugin/Lv2Plugin__posix32.o \
  266. ../backend/plugin/VstPlugin__posix32.o \
  267. ../backend/plugin/Vst3Plugin__posix32.o \
  268. ../backend/plugin/FluidSynthPlugin__posix32.o \
  269. ../backend/plugin/LinuxSamplerPlugin__posix32.o
  270. # carla-standalone
  271. OBJS_POSIX32 += \
  272. ../backend/standalone/CarlaStandalone__posix32.o
  273. # libs
  274. OBJS_POSIX32 += \
  275. ../libs/dgl.posix32.a \
  276. ../libs/lilv.posix32.a \
  277. ../libs/rtmempool.posix32.a
  278. carla-bridge-posix32: $(OBJS_POSIX32)
  279. $(CXX) $^ $(POSIX_LINK_FLAGS) $(POSIX_32BIT_FLAGS) -o $@ && $(STRIP) $@
  280. %__posix32.o: %.cpp
  281. $(CXX) $< $(POSIX_BUILD_FLAGS) $(POSIX_32BIT_FLAGS) -c -o $@
  282. # --------------------------------------------------------------
  283. # posix64
  284. OBJS_POSIX64 = CarlaBridgePlugin__posix64.o \
  285. CarlaBridgeClient__posix64.o CarlaBridgeOsc__posix64.o
  286. # carla-engine
  287. OBJS_POSIX64 += \
  288. ../backend/engine/CarlaEngine__posix64.o \
  289. ../backend/engine/CarlaEngineOsc__posix64.o \
  290. ../backend/engine/CarlaEngineThread__posix64.o \
  291. ../backend/engine/CarlaEngineJack__posix64.o \
  292. ../backend/engine/CarlaEngineBridge__posix64.o
  293. # carla-plugin
  294. OBJS_POSIX64 += \
  295. ../backend/plugin/CarlaPlugin__posix64.o \
  296. ../backend/plugin/CarlaPluginThread__posix64.o \
  297. ../backend/plugin/NativePlugin__posix64.o \
  298. ../backend/plugin/LadspaPlugin__posix64.o \
  299. ../backend/plugin/DssiPlugin__posix64.o \
  300. ../backend/plugin/Lv2Plugin__posix64.o \
  301. ../backend/plugin/VstPlugin__posix64.o \
  302. ../backend/plugin/Vst3Plugin__posix64.o \
  303. ../backend/plugin/FluidSynthPlugin__posix64.o \
  304. ../backend/plugin/LinuxSamplerPlugin__posix64.o
  305. # carla-standalone
  306. OBJS_POSIX64 += \
  307. ../backend/standalone/CarlaStandalone__posix64.o
  308. # libs
  309. OBJS_POSIX64 += \
  310. ../libs/dgl.posix64.a \
  311. ../libs/lilv.posix64.a \
  312. ../libs/rtmempool.posix64.a
  313. carla-bridge-posix64: $(OBJS_POSIX64)
  314. $(CXX) $^ $(POSIX_LINK_FLAGS) $(POSIX_64BIT_FLAGS) -o $@ && $(STRIP) $@
  315. %__posix64.o: %.cpp
  316. $(CXX) $< $(POSIX_BUILD_FLAGS) $(POSIX_64BIT_FLAGS) -c -o $@
  317. # --------------------------------------------------------------
  318. # win32
  319. OBJS_WIN32 = CarlaBridgePlugin__win32.o \
  320. CarlaBridgeClient__win32.o CarlaBridgeOsc__win32.o
  321. # carla-engine
  322. OBJS_WIN32 += \
  323. ../backend/engine/CarlaEngine__win32.o \
  324. ../backend/engine/CarlaEngineOsc__win32.o \
  325. ../backend/engine/CarlaEngineThread__win32.o \
  326. ../backend/engine/CarlaEngineBridge__win32.o
  327. # carla-plugin
  328. OBJS_WIN32 += \
  329. ../backend/plugin/CarlaPlugin__win32.o \
  330. ../backend/plugin/CarlaPluginThread__win32.o \
  331. ../backend/plugin/NativePlugin__win32.o \
  332. ../backend/plugin/LadspaPlugin__win32.o \
  333. ../backend/plugin/DssiPlugin__win32.o \
  334. ../backend/plugin/Lv2Plugin__win32.o \
  335. ../backend/plugin/VstPlugin__win32.o \
  336. ../backend/plugin/Vst3Plugin__win32.o \
  337. ../backend/plugin/FluidSynthPlugin__win32.o \
  338. ../backend/plugin/LinuxSamplerPlugin__win32.o
  339. # carla-standalone
  340. OBJS_WIN32 += \
  341. ../backend/standalone/CarlaStandalone__win32.o
  342. # libs
  343. OBJS_WIN32 += \
  344. ../libs/dgl.win32.a \
  345. ../libs/lilv.win32.a \
  346. ../libs/rtmempool.win32.a
  347. carla-bridge-win32.exe: $(OBJS_WIN32) ../libs/jackbridge-win32.dll
  348. $(CXX) $(OBJS_WIN32) $(WIN_32BIT_FLAGS) $(WIN_LINK_FLAGS) -ljackbridge-win32 -o $@ && $(STRIP) $@
  349. %__win32.o: %.cpp
  350. $(CXX) $< $(WIN_BUILD_FLAGS) $(WIN_32BIT_FLAGS) -c -o $@
  351. # --------------------------------------------------------------
  352. # win64
  353. OBJS_WIN64 = CarlaBridgePlugin__win64.o \
  354. CarlaBridgeClient__win64.o CarlaBridgeOsc__win64.o
  355. # carla-engine
  356. OBJS_WIN64 += \
  357. ../backend/engine/CarlaEngine__win64.o \
  358. ../backend/engine/CarlaEngineOsc__win64.o \
  359. ../backend/engine/CarlaEngineThread__win64.o \
  360. ../backend/engine/CarlaEngineBridge__win64.o
  361. # carla-plugin
  362. OBJS_WIN64 += \
  363. ../backend/plugin/CarlaPlugin__win64.o \
  364. ../backend/plugin/CarlaPluginThread__win64.o \
  365. ../backend/plugin/NativePlugin__win64.o \
  366. ../backend/plugin/LadspaPlugin__win64.o \
  367. ../backend/plugin/DssiPlugin__win64.o \
  368. ../backend/plugin/Lv2Plugin__win64.o \
  369. ../backend/plugin/VstPlugin__win64.o \
  370. ../backend/plugin/Vst3Plugin__win64.o \
  371. ../backend/plugin/FluidSynthPlugin__win64.o \
  372. ../backend/plugin/LinuxSamplerPlugin__win64.o
  373. # carla-standalone
  374. OBJS_WIN64 += \
  375. ../backend/standalone/CarlaStandalone__win64.o
  376. # libs
  377. OBJS_WIN64 += \
  378. ../libs/dgl.win64.a \
  379. ../libs/lilv.win64.a \
  380. ../libs/rtmempool.win64.a
  381. carla-bridge-win64.exe: $(OBJS_WIN64) ../libs/jackbridge-win64.dll
  382. $(CXX) $(OBJS_WIN64) $(WIN_64BIT_FLAGS) $(WIN_LINK_FLAGS) -ljackbridge-win64 -o $@ && $(STRIP) $@
  383. %__win64.o: %.cpp
  384. $(CXX) $< $(WIN_BUILD_FLAGS) $(WIN_64BIT_FLAGS) -c -o $@
  385. # --------------------------------------------------------------
  386. ../backend/libcarla_native.a:
  387. $(MAKE) -C ../backend/native
  388. ../libs/%:
  389. $(MAKE) -C ../libs $*
  390. # --------------------------------------------------------------
  391. doxygen: carla_bridge.doxygen
  392. doxygen $<
  393. clean:
  394. rm -f *.o *.dll *.so *.exe
  395. rm -f $(OBJS_NATIVE)
  396. rm -f $(OBJS_POSIX32)
  397. rm -f $(OBJS_POSIX64)
  398. rm -f $(OBJS_WIN32)
  399. rm -f $(OBJS_WIN64)
  400. rm -f carla-bridge-lv2-gtk2 carla-bridge-lv2-gtk3 carla-bridge-lv2-qt4 carla-bridge-lv2-qt5 carla-bridge-lv2-x11
  401. rm -f carla-bridge-vst-x11
  402. rm -f carla-bridge-native carla-bridge-posix32 carla-bridge-posix64