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.

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