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.

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