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.

599 lines
22KB

  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)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  271. -@mkdir -p $(OBJDIR)
  272. @echo "Compiling $<"
  273. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  274. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  275. -@mkdir -p $(OBJDIR)
  276. @echo "Compiling $<"
  277. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  278. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  279. -@mkdir -p $(OBJDIR)
  280. @echo "Compiling CarlaStandalone.cpp (bridge)"
  281. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  282. $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  283. -@mkdir -p $(OBJDIR)
  284. @echo "Compiling CarlaPlug$*.cpp (bridge)"
  285. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  286. $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
  287. -@mkdir -p $(OBJDIR)
  288. @echo "Compiling CarlaEng$*.cpp (bridge)"
  289. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  290. $(OBJDIR)/CarlaPluginJSFX.cpp.o: BUILD_CXX_FLAGS += $(YSFX_FLAGS)
  291. $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -std=gnu++14
  292. ifeq ($(MACOS),true)
  293. $(OBJDIR)/CarlaPluginCLAP.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  294. $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  295. $(OBJDIR)/CarlaPluginVST2.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  296. $(OBJDIR)/CarlaPluginVST3.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  297. $(OBJDIR)/CarlaStandalone.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  298. $(OBJDIR)/CarlaBridgePlugin.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  299. endif
  300. # ---------------------------------------------------------------------------------------------------------------------
  301. # arm32
  302. ifeq ($(USING_JUCE),true)
  303. $(OBJDIR)/CarlaPluginJuce.arm32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  304. -@mkdir -p $(OBJDIR)
  305. @echo "Compiling CarlaPluginJuce.cpp (arm32 bridge)"
  306. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -std=gnu++14 -c -o $@
  307. endif
  308. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  309. -@mkdir -p $(OBJDIR)
  310. @echo "Compiling $< (arm32 bridge)"
  311. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  312. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  313. -@mkdir -p $(OBJDIR)
  314. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  315. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  316. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  317. -@mkdir -p $(OBJDIR)
  318. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  319. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  320. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  321. -@mkdir -p $(OBJDIR)
  322. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  323. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  324. # ----------------------------------------------------------------------------------------------------------------------
  325. # posix32
  326. ifeq ($(MACOS),true)
  327. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  328. -@mkdir -p $(OBJDIR)
  329. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  330. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  331. $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  332. -@mkdir -p $(OBJDIR)
  333. @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
  334. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  335. $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  336. -@mkdir -p $(OBJDIR)
  337. @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
  338. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  339. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  340. -@mkdir -p $(OBJDIR)
  341. @echo "Compiling $< (posix32 bridge)"
  342. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  343. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  344. -@mkdir -p $(OBJDIR)
  345. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  346. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  347. else
  348. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  349. -@mkdir -p $(OBJDIR)
  350. @echo "Compiling $< (posix32 bridge)"
  351. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  352. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  353. -@mkdir -p $(OBJDIR)
  354. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  355. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  356. endif
  357. ifeq ($(USING_JUCE),true)
  358. ifeq ($(MACOS),true)
  359. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  360. -@mkdir -p $(OBJDIR)
  361. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  362. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  363. else
  364. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  365. -@mkdir -p $(OBJDIR)
  366. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  367. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  368. endif
  369. endif
  370. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  371. -@mkdir -p $(OBJDIR)
  372. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  373. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  374. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  375. -@mkdir -p $(OBJDIR)
  376. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  377. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  378. # ---------------------------------------------------------------------------------------------------------------------
  379. # posix64
  380. ifeq ($(MACOS),true)
  381. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  382. -@mkdir -p $(OBJDIR)
  383. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  384. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  385. $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  386. -@mkdir -p $(OBJDIR)
  387. @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
  388. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  389. $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  390. -@mkdir -p $(OBJDIR)
  391. @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
  392. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  393. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  394. -@mkdir -p $(OBJDIR)
  395. @echo "Compiling $< (posix64 bridge)"
  396. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  397. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  398. -@mkdir -p $(OBJDIR)
  399. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  400. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  401. else
  402. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  403. -@mkdir -p $(OBJDIR)
  404. @echo "Compiling $< (posix64 bridge)"
  405. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  406. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  407. -@mkdir -p $(OBJDIR)
  408. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  409. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  410. endif
  411. ifeq ($(USING_JUCE),true)
  412. ifeq ($(MACOS),true)
  413. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  414. -@mkdir -p $(OBJDIR)
  415. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  416. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  417. else
  418. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  419. -@mkdir -p $(OBJDIR)
  420. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  421. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  422. endif
  423. endif
  424. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  425. -@mkdir -p $(OBJDIR)
  426. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  427. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  428. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  429. -@mkdir -p $(OBJDIR)
  430. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  431. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  432. # ---------------------------------------------------------------------------------------------------------------------
  433. # win32
  434. ifeq ($(USING_JUCE),true)
  435. $(OBJDIR)/CarlaPluginJuce.cpp.win32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  436. -@mkdir -p $(OBJDIR)
  437. @echo "Compiling CarlaPluginJuce.cpp (win32 bridge)"
  438. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  439. endif
  440. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  441. -@mkdir -p $(OBJDIR)
  442. @echo "Compiling $< (win32 bridge)"
  443. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  444. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  445. -@mkdir -p $(OBJDIR)
  446. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  447. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  448. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  449. -@mkdir -p $(OBJDIR)
  450. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  451. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  452. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  453. -@mkdir -p $(OBJDIR)
  454. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  455. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  456. # ---------------------------------------------------------------------------------------------------------------------
  457. # win64
  458. ifeq ($(USING_JUCE),true)
  459. $(OBJDIR)/CarlaPluginJuce.cpp.win64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  460. -@mkdir -p $(OBJDIR)
  461. @echo "Compiling CarlaPluginJuce.cpp (win64 bridge)"
  462. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  463. endif
  464. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  465. -@mkdir -p $(OBJDIR)
  466. @echo "Compiling $< (win64 bridge)"
  467. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  468. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  469. -@mkdir -p $(OBJDIR)
  470. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  471. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  472. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  473. -@mkdir -p $(OBJDIR)
  474. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  475. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  476. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  477. -@mkdir -p $(OBJDIR)
  478. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  479. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  480. # ---------------------------------------------------------------------------------------------------------------------
  481. -include $(OBJS_lv2:%.o=%.d)
  482. -include $(OBJS_arm32:%.o=%.d)
  483. -include $(OBJS_posix32:%.o=%.d)
  484. -include $(OBJS_posix64:%.o=%.d)
  485. -include $(OBJS_win32:%.o=%.d)
  486. -include $(OBJS_win64:%.o=%.d)
  487. # ---------------------------------------------------------------------------------------------------------------------