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.

619 lines
19KB

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