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.

627 lines
24KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-bridges-plugin #
  3. # --------------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. MODULENAME=carla-bridge
  8. include $(CWD)/Makefile.mk
  9. # Workaround GCC bug
  10. ifeq ($(TESTBUILD),true)
  11. ifeq ($(USING_JUCE),true)
  12. BUILD_CXX_FLAGS += -Wno-undef
  13. # FIXME
  14. BUILD_CXX_FLAGS += -Wno-deprecated-declarations
  15. endif
  16. endif
  17. ifneq ($(HAIKU),true)
  18. ifneq ($(WASM),true)
  19. BUILD_CXX_FLAGS += -pthread
  20. endif
  21. endif
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. BINDIR := $(CWD)/../bin
  24. ifeq ($(DEBUG),true)
  25. OBJDIR := $(CWD)/../build/bridges-plugin/Debug
  26. MODULEDIR := $(CWD)/../build/modules/Debug
  27. else
  28. OBJDIR := $(CWD)/../build/bridges-plugin/Release
  29. MODULEDIR := $(CWD)/../build/modules/Release
  30. endif
  31. # ---------------------------------------------------------------------------------------------------------------------
  32. BUILD_CXX_FLAGS += -DBUILD_BRIDGE -I. -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  33. BUILD_CXX_FLAGS += -I$(CWD)/backend/engine -I$(CWD)/backend/plugin
  34. BUILD_CXX_FLAGS += -UHAVE_SDL
  35. BUILD_CXX_FLAGS += -UUSING_JUCE_AUDIO_DEVICES
  36. BUILD_CXX_FLAGS += -UUSING_RTAUDIO
  37. 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  38. 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  39. ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  40. # ---------------------------------------------------------------------------------------------------------------------
  41. LIBS_native = $(MODULEDIR)/jackbridge.a
  42. LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
  43. LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
  44. LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
  45. ifeq ($(BUILDING_FOR_WINE),true)
  46. LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
  47. LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
  48. else
  49. LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
  50. LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
  51. endif
  52. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  53. LIBS_native += $(MODULEDIR)/lilv.a
  54. LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
  55. LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
  56. LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
  57. LIBS_win32 += $(MODULEDIR)/lilv.win32.a
  58. LIBS_win64 += $(MODULEDIR)/lilv.win64.a
  59. LINK_FLAGS += $(LILV_LIBS)
  60. LIBS_native += $(MODULEDIR)/rtmempool.a
  61. LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
  62. LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
  63. LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
  64. LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
  65. LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
  66. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  67. LIBS_native += $(MODULEDIR)/water.a
  68. LIBS_arm32 += $(MODULEDIR)/water.arm32.a
  69. LIBS_posix32 += $(MODULEDIR)/water.posix32.a
  70. LIBS_posix64 += $(MODULEDIR)/water.posix64.a
  71. LIBS_win32 += $(MODULEDIR)/water.win32.a
  72. LIBS_win64 += $(MODULEDIR)/water.win64.a
  73. LINK_FLAGS += $(WATER_LIBS)
  74. ifeq ($(HAVE_YSFX),true)
  75. LIBS_native += $(MODULEDIR)/ysfx.a
  76. LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  77. endif
  78. ifeq ($(USING_JUCE),true)
  79. LIBS_native += $(MODULEDIR)/carla_juce.a
  80. LIBS_posix32 += $(MODULEDIR)/carla_juce.posix32.a
  81. LIBS_posix64 += $(MODULEDIR)/carla_juce.posix64.a
  82. LIBS_win32 += $(MODULEDIR)/carla_juce.win32.a
  83. LIBS_win64 += $(MODULEDIR)/carla_juce.win64.a
  84. LIBS_native += $(MODULEDIR)/juce_audio_basics.a
  85. LIBS_posix32 += $(MODULEDIR)/juce_audio_basics.posix32.a
  86. LIBS_posix64 += $(MODULEDIR)/juce_audio_basics.posix64.a
  87. LIBS_win32 += $(MODULEDIR)/juce_audio_basics.win32.a
  88. LIBS_win64 += $(MODULEDIR)/juce_audio_basics.win64.a
  89. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  90. LIBS_native += $(MODULEDIR)/juce_audio_processors.a
  91. LIBS_posix32 += $(MODULEDIR)/juce_audio_processors.posix32.a
  92. LIBS_posix64 += $(MODULEDIR)/juce_audio_processors.posix64.a
  93. LIBS_win32 += $(MODULEDIR)/juce_audio_processors.win32.a
  94. LIBS_win64 += $(MODULEDIR)/juce_audio_processors.win64.a
  95. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  96. LIBS_native += $(MODULEDIR)/juce_core.a
  97. LIBS_posix32 += $(MODULEDIR)/juce_core.posix32.a
  98. LIBS_posix64 += $(MODULEDIR)/juce_core.posix64.a
  99. LIBS_win32 += $(MODULEDIR)/juce_core.win32.a
  100. LIBS_win64 += $(MODULEDIR)/juce_core.win64.a
  101. LINK_FLAGS += $(JUCE_CORE_LIBS)
  102. LIBS_native += $(MODULEDIR)/juce_data_structures.a
  103. LIBS_posix32 += $(MODULEDIR)/juce_data_structures.posix32.a
  104. LIBS_posix64 += $(MODULEDIR)/juce_data_structures.posix64.a
  105. LIBS_win32 += $(MODULEDIR)/juce_data_structures.win32.a
  106. LIBS_win64 += $(MODULEDIR)/juce_data_structures.win64.a
  107. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  108. LIBS_native += $(MODULEDIR)/juce_events.a
  109. LIBS_posix32 += $(MODULEDIR)/juce_events.posix32.a
  110. LIBS_posix64 += $(MODULEDIR)/juce_events.posix64.a
  111. LIBS_win32 += $(MODULEDIR)/juce_events.win32.a
  112. LIBS_win64 += $(MODULEDIR)/juce_events.win64.a
  113. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  114. LIBS_native += $(MODULEDIR)/juce_graphics.a
  115. LIBS_posix32 += $(MODULEDIR)/juce_graphics.posix32.a
  116. LIBS_posix64 += $(MODULEDIR)/juce_graphics.posix64.a
  117. LIBS_win32 += $(MODULEDIR)/juce_graphics.win32.a
  118. LIBS_win64 += $(MODULEDIR)/juce_graphics.win64.a
  119. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  120. LIBS_native += $(MODULEDIR)/juce_gui_basics.a
  121. LIBS_posix32 += $(MODULEDIR)/juce_gui_basics.posix32.a
  122. LIBS_posix64 += $(MODULEDIR)/juce_gui_basics.posix64.a
  123. LIBS_win32 += $(MODULEDIR)/juce_gui_basics.win32.a
  124. LIBS_win64 += $(MODULEDIR)/juce_gui_basics.win64.a
  125. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  126. LIBS_native += $(MODULEDIR)/juce_gui_extra.a
  127. LIBS_posix32 += $(MODULEDIR)/juce_gui_extra.posix32.a
  128. LIBS_posix64 += $(MODULEDIR)/juce_gui_extra.posix64.a
  129. LIBS_win32 += $(MODULEDIR)/juce_gui_extra.win32.a
  130. LIBS_win64 += $(MODULEDIR)/juce_gui_extra.win64.a
  131. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  132. endif
  133. ifeq ($(JACKBRIDGE_DIRECT),true)
  134. LINK_FLAGS += $(JACK_LIBS)
  135. endif
  136. LINK_FLAGS += $(X11_LIBS)
  137. # ---------------------------------------------------------------------------------------------------------------------
  138. NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
  139. NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
  140. NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
  141. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  142. NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
  143. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  144. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  145. LIBS_native += $(MODULEDIR)/audio_decoder.a
  146. LIBS_native += $(MODULEDIR)/native-plugins.a
  147. ifneq ($(STATIC_PLUGIN_TARGET),true)
  148. LIBS_native += $(MODULEDIR)/sfzero.a
  149. endif
  150. LIBS_native += $(MODULEDIR)/zita-resampler.a
  151. ifeq ($(HAVE_DGL),true)
  152. ifneq ($(USING_CUSTOM_DPF),true)
  153. LIBS_native += $(MODULEDIR)/dgl.a
  154. else
  155. LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
  156. endif
  157. endif
  158. ifeq ($(WINDOWS),true)
  159. EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
  160. endif
  161. # ---------------------------------------------------------------------------------------------------------------------
  162. OBJS_native = \
  163. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  164. $(OBJDIR)/CarlaEngine.cpp.o \
  165. $(OBJDIR)/CarlaEngineClient.cpp.o \
  166. $(OBJDIR)/CarlaEngineData.cpp.o \
  167. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  168. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  169. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  170. $(OBJDIR)/CarlaEngineNative.cpp.o \
  171. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  172. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  173. $(OBJDIR)/CarlaEngineRunner.cpp.o \
  174. $(OBJDIR)/CarlaEngineJack.cpp.o \
  175. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  176. $(OBJDIR)/CarlaPlugin.cpp.o \
  177. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  178. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  179. $(OBJDIR)/CarlaPluginJack.cpp.o \
  180. $(OBJDIR)/CarlaPluginNative.cpp.o \
  181. $(OBJDIR)/CarlaPluginCLAP.cpp.o \
  182. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  183. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  184. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  185. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  186. $(OBJDIR)/CarlaPluginAU.cpp.o \
  187. $(OBJDIR)/CarlaPluginJSFX.cpp.o \
  188. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  189. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  190. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  191. $(OBJDIR)/CarlaStandalone.cpp.o
  192. OBJS_lv2 = $(OBJS_native) \
  193. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
  194. OBJS_arch = \
  195. $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
  196. $(OBJDIR)/CarlaEngine.cpp.arch.o \
  197. $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
  198. $(OBJDIR)/CarlaEngineData.cpp.arch.o \
  199. $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
  200. $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
  201. $(OBJDIR)/CarlaEngineRunner.cpp.arch.o \
  202. $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
  203. $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
  204. $(OBJDIR)/CarlaPlugin.cpp.arch.o \
  205. $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
  206. $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
  207. $(OBJDIR)/CarlaPluginCLAP.cpp.arch.o \
  208. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.arch.o \
  209. $(OBJDIR)/CarlaPluginLV2.cpp.arch.o \
  210. $(OBJDIR)/CarlaPluginVST2.cpp.arch.o \
  211. $(OBJDIR)/CarlaPluginVST3.cpp.arch.o \
  212. $(OBJDIR)/CarlaPluginAU.cpp.arch.o \
  213. $(OBJDIR)/CarlaPluginJuce.cpp.arch.o \
  214. $(OBJDIR)/CarlaStandalone.cpp.arch.o
  215. OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.o)
  216. OBJS_posix32 = $(OBJS_arch:%.arch.o=%.posix32.o)
  217. OBJS_posix64 = $(OBJS_arch:%.arch.o=%.posix64.o)
  218. OBJS_win32 = $(OBJS_arch:%.arch.o=%.win32.o)
  219. OBJS_win64 = $(OBJS_arch:%.arch.o=%.win64.o)
  220. # ---------------------------------------------------------------------------------------------------------------------
  221. all: native
  222. # ---------------------------------------------------------------------------------------------------------------------
  223. clean:
  224. rm -f $(OBJDIR)/*.o
  225. rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
  226. rm -f $(BINDIR)/$(MODULENAME)-posix32
  227. rm -f $(BINDIR)/$(MODULENAME)-posix64
  228. rm -f $(BINDIR)/$(MODULENAME)-win*.exe
  229. debug:
  230. $(MAKE) DEBUG=true
  231. # ---------------------------------------------------------------------------------------------------------------------
  232. native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
  233. arm32: $(BINDIR)/$(MODULENAME)-arm32
  234. posix32: $(BINDIR)/$(MODULENAME)-posix32
  235. posix64: $(BINDIR)/$(MODULENAME)-posix64
  236. win32: $(BINDIR)/$(MODULENAME)-win32.exe
  237. win64: $(BINDIR)/$(MODULENAME)-win64.exe
  238. # ---------------------------------------------------------------------------------------------------------------------
  239. # linking
  240. $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
  241. -@mkdir -p $(BINDIR)
  242. @echo "Linking $(MODULENAME)-native$(APP_EXT)"
  243. $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  244. $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
  245. -@mkdir -p $(BINDIR)
  246. @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
  247. $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  248. $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
  249. -@mkdir -p $(BINDIR)
  250. @echo "Linking $(MODULENAME)-arm32"
  251. $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
  252. $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
  253. -@mkdir -p $(BINDIR)
  254. @echo "Linking $(MODULENAME)-posix32"
  255. $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
  256. $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
  257. -@mkdir -p $(BINDIR)
  258. @echo "Linking $(MODULENAME)-posix64"
  259. $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
  260. $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
  261. -@mkdir -p $(BINDIR)
  262. @echo "Linking $(MODULENAME)-win32.exe"
  263. $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
  264. $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
  265. -@mkdir -p $(BINDIR)
  266. @echo "Linking $(MODULENAME)-win64.exe"
  267. $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
  268. # ---------------------------------------------------------------------------------------------------------------------
  269. # native
  270. $(OBJDIR)/CarlaPluginJSFX.cpp.o: $(CWD)/backend/plugin/CarlaPluginJSFX.cpp
  271. -@mkdir -p $(OBJDIR)
  272. @echo "Compiling CarlaPluginJSFX.cpp (bridge)"
  273. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) $(YSFX_FLAGS) -c -o $@
  274. ifeq ($(MACOS),true)
  275. $(OBJDIR)/CarlaPluginVST2.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  276. -@mkdir -p $(OBJDIR)
  277. @echo "Compiling CarlaPluginVST2.cpp (bridge)"
  278. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  279. $(OBJDIR)/CarlaPluginVST3.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  280. -@mkdir -p $(OBJDIR)
  281. @echo "Compiling CarlaPluginVST3.cpp (bridge)"
  282. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  283. $(OBJDIR)/CarlaPluginCLAP.cpp.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  284. -@mkdir -p $(OBJDIR)
  285. @echo "Compiling CarlaPluginCLAP.cpp (bridge)"
  286. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  287. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  288. -@mkdir -p $(OBJDIR)
  289. @echo "Compiling CarlaStandalone.cpp (bridge)"
  290. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  291. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  292. -@mkdir -p $(OBJDIR)
  293. @echo "Compiling $<"
  294. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  295. else
  296. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  297. -@mkdir -p $(OBJDIR)
  298. @echo "Compiling CarlaStandalone.cpp (bridge)"
  299. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  300. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  301. -@mkdir -p $(OBJDIR)
  302. @echo "Compiling $<"
  303. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  304. endif
  305. ifeq ($(USING_JUCE),true)
  306. ifeq ($(MACOS),true)
  307. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  308. -@mkdir -p $(OBJDIR)
  309. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  310. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  311. else
  312. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  313. -@mkdir -p $(OBJDIR)
  314. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  315. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -std=gnu++14 -c -o $@
  316. endif
  317. endif
  318. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  319. -@mkdir -p $(OBJDIR)
  320. @echo "Compiling $<"
  321. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  322. $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  323. -@mkdir -p $(OBJDIR)
  324. @echo "Compiling CarlaPlug$*.cpp (bridge)"
  325. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  326. $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
  327. -@mkdir -p $(OBJDIR)
  328. @echo "Compiling CarlaEng$*.cpp (bridge)"
  329. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  330. # ---------------------------------------------------------------------------------------------------------------------
  331. # arm32
  332. ifeq ($(USING_JUCE),true)
  333. $(OBJDIR)/CarlaPluginJuce.arm32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  334. -@mkdir -p $(OBJDIR)
  335. @echo "Compiling CarlaPluginJuce.cpp (arm32 bridge)"
  336. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -std=gnu++14 -c -o $@
  337. endif
  338. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  339. -@mkdir -p $(OBJDIR)
  340. @echo "Compiling $< (arm32 bridge)"
  341. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  342. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  343. -@mkdir -p $(OBJDIR)
  344. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  345. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  346. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  347. -@mkdir -p $(OBJDIR)
  348. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  349. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  350. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  351. -@mkdir -p $(OBJDIR)
  352. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  353. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  354. # ----------------------------------------------------------------------------------------------------------------------
  355. # posix32
  356. ifeq ($(MACOS),true)
  357. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  358. -@mkdir -p $(OBJDIR)
  359. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  360. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  361. $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  362. -@mkdir -p $(OBJDIR)
  363. @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
  364. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  365. $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  366. -@mkdir -p $(OBJDIR)
  367. @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
  368. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  369. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  370. -@mkdir -p $(OBJDIR)
  371. @echo "Compiling $< (posix32 bridge)"
  372. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  373. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  374. -@mkdir -p $(OBJDIR)
  375. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  376. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  377. else
  378. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  379. -@mkdir -p $(OBJDIR)
  380. @echo "Compiling $< (posix32 bridge)"
  381. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  382. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  383. -@mkdir -p $(OBJDIR)
  384. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  385. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  386. endif
  387. ifeq ($(USING_JUCE),true)
  388. ifeq ($(MACOS),true)
  389. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  390. -@mkdir -p $(OBJDIR)
  391. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  392. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  393. else
  394. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  395. -@mkdir -p $(OBJDIR)
  396. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  397. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  398. endif
  399. endif
  400. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  401. -@mkdir -p $(OBJDIR)
  402. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  403. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  404. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  405. -@mkdir -p $(OBJDIR)
  406. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  407. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  408. # ---------------------------------------------------------------------------------------------------------------------
  409. # posix64
  410. ifeq ($(MACOS),true)
  411. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  412. -@mkdir -p $(OBJDIR)
  413. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  414. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  415. $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  416. -@mkdir -p $(OBJDIR)
  417. @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
  418. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  419. $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  420. -@mkdir -p $(OBJDIR)
  421. @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
  422. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  423. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  424. -@mkdir -p $(OBJDIR)
  425. @echo "Compiling $< (posix64 bridge)"
  426. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  427. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  428. -@mkdir -p $(OBJDIR)
  429. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  430. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  431. else
  432. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  433. -@mkdir -p $(OBJDIR)
  434. @echo "Compiling $< (posix64 bridge)"
  435. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  436. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  437. -@mkdir -p $(OBJDIR)
  438. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  439. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  440. endif
  441. ifeq ($(USING_JUCE),true)
  442. ifeq ($(MACOS),true)
  443. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  444. -@mkdir -p $(OBJDIR)
  445. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  446. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  447. else
  448. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  449. -@mkdir -p $(OBJDIR)
  450. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  451. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  452. endif
  453. endif
  454. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  455. -@mkdir -p $(OBJDIR)
  456. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  457. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  458. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  459. -@mkdir -p $(OBJDIR)
  460. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  461. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  462. # ---------------------------------------------------------------------------------------------------------------------
  463. # win32
  464. ifeq ($(USING_JUCE),true)
  465. $(OBJDIR)/CarlaPluginJuce.cpp.win32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  466. -@mkdir -p $(OBJDIR)
  467. @echo "Compiling CarlaPluginJuce.cpp (win32 bridge)"
  468. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  469. endif
  470. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  471. -@mkdir -p $(OBJDIR)
  472. @echo "Compiling $< (win32 bridge)"
  473. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  474. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  475. -@mkdir -p $(OBJDIR)
  476. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  477. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  478. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  479. -@mkdir -p $(OBJDIR)
  480. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  481. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  482. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  483. -@mkdir -p $(OBJDIR)
  484. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  485. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  486. # ---------------------------------------------------------------------------------------------------------------------
  487. # win64
  488. ifeq ($(USING_JUCE),true)
  489. $(OBJDIR)/CarlaPluginJuce.cpp.win64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  490. -@mkdir -p $(OBJDIR)
  491. @echo "Compiling CarlaPluginJuce.cpp (win64 bridge)"
  492. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  493. endif
  494. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  495. -@mkdir -p $(OBJDIR)
  496. @echo "Compiling $< (win64 bridge)"
  497. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  498. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  499. -@mkdir -p $(OBJDIR)
  500. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  501. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  502. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  503. -@mkdir -p $(OBJDIR)
  504. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  505. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  506. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  507. -@mkdir -p $(OBJDIR)
  508. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  509. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  510. # ---------------------------------------------------------------------------------------------------------------------
  511. -include $(OBJS_lv2:%.o=%.d)
  512. -include $(OBJS_arm32:%.o=%.d)
  513. -include $(OBJS_posix32:%.o=%.d)
  514. -include $(OBJS_posix64:%.o=%.d)
  515. -include $(OBJS_win32:%.o=%.d)
  516. -include $(OBJS_win64:%.o=%.d)
  517. # ---------------------------------------------------------------------------------------------------------------------