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.

625 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. LIBS_native += $(MODULEDIR)/sfzero.a
  148. LIBS_native += $(MODULEDIR)/zita-resampler.a
  149. ifeq ($(HAVE_DGL),true)
  150. ifneq ($(USING_CUSTOM_DPF),true)
  151. LIBS_native += $(MODULEDIR)/dgl.a
  152. else
  153. LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
  154. endif
  155. endif
  156. ifeq ($(WINDOWS),true)
  157. EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
  158. endif
  159. # ---------------------------------------------------------------------------------------------------------------------
  160. OBJS_native = \
  161. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  162. $(OBJDIR)/CarlaEngine.cpp.o \
  163. $(OBJDIR)/CarlaEngineClient.cpp.o \
  164. $(OBJDIR)/CarlaEngineData.cpp.o \
  165. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  166. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  167. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  168. $(OBJDIR)/CarlaEngineNative.cpp.o \
  169. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  170. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  171. $(OBJDIR)/CarlaEngineRunner.cpp.o \
  172. $(OBJDIR)/CarlaEngineJack.cpp.o \
  173. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  174. $(OBJDIR)/CarlaPlugin.cpp.o \
  175. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  176. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  177. $(OBJDIR)/CarlaPluginJack.cpp.o \
  178. $(OBJDIR)/CarlaPluginNative.cpp.o \
  179. $(OBJDIR)/CarlaPluginCLAP.cpp.o \
  180. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  181. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  182. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  183. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  184. $(OBJDIR)/CarlaPluginAU.cpp.o \
  185. $(OBJDIR)/CarlaPluginJSFX.cpp.o \
  186. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  187. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  188. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  189. $(OBJDIR)/CarlaStandalone.cpp.o
  190. OBJS_lv2 = $(OBJS_native) \
  191. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
  192. OBJS_arch = \
  193. $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
  194. $(OBJDIR)/CarlaEngine.cpp.arch.o \
  195. $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
  196. $(OBJDIR)/CarlaEngineData.cpp.arch.o \
  197. $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
  198. $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
  199. $(OBJDIR)/CarlaEngineRunner.cpp.arch.o \
  200. $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
  201. $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
  202. $(OBJDIR)/CarlaPlugin.cpp.arch.o \
  203. $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
  204. $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
  205. $(OBJDIR)/CarlaPluginCLAP.cpp.arch.o \
  206. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.arch.o \
  207. $(OBJDIR)/CarlaPluginLV2.cpp.arch.o \
  208. $(OBJDIR)/CarlaPluginVST2.cpp.arch.o \
  209. $(OBJDIR)/CarlaPluginVST3.cpp.arch.o \
  210. $(OBJDIR)/CarlaPluginAU.cpp.arch.o \
  211. $(OBJDIR)/CarlaPluginJuce.cpp.arch.o \
  212. $(OBJDIR)/CarlaStandalone.cpp.arch.o
  213. OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.o)
  214. OBJS_posix32 = $(OBJS_arch:%.arch.o=%.posix32.o)
  215. OBJS_posix64 = $(OBJS_arch:%.arch.o=%.posix64.o)
  216. OBJS_win32 = $(OBJS_arch:%.arch.o=%.win32.o)
  217. OBJS_win64 = $(OBJS_arch:%.arch.o=%.win64.o)
  218. # ---------------------------------------------------------------------------------------------------------------------
  219. all: native
  220. # ---------------------------------------------------------------------------------------------------------------------
  221. clean:
  222. rm -f $(OBJDIR)/*.o
  223. rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
  224. rm -f $(BINDIR)/$(MODULENAME)-posix32
  225. rm -f $(BINDIR)/$(MODULENAME)-posix64
  226. rm -f $(BINDIR)/$(MODULENAME)-win*.exe
  227. debug:
  228. $(MAKE) DEBUG=true
  229. # ---------------------------------------------------------------------------------------------------------------------
  230. native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
  231. arm32: $(BINDIR)/$(MODULENAME)-arm32
  232. posix32: $(BINDIR)/$(MODULENAME)-posix32
  233. posix64: $(BINDIR)/$(MODULENAME)-posix64
  234. win32: $(BINDIR)/$(MODULENAME)-win32.exe
  235. win64: $(BINDIR)/$(MODULENAME)-win64.exe
  236. # ---------------------------------------------------------------------------------------------------------------------
  237. # linking
  238. $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
  239. -@mkdir -p $(BINDIR)
  240. @echo "Linking $(MODULENAME)-native$(APP_EXT)"
  241. $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  242. $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
  243. -@mkdir -p $(BINDIR)
  244. @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
  245. $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  246. $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
  247. -@mkdir -p $(BINDIR)
  248. @echo "Linking $(MODULENAME)-arm32"
  249. $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
  250. $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
  251. -@mkdir -p $(BINDIR)
  252. @echo "Linking $(MODULENAME)-posix32"
  253. $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
  254. $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
  255. -@mkdir -p $(BINDIR)
  256. @echo "Linking $(MODULENAME)-posix64"
  257. $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
  258. $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
  259. -@mkdir -p $(BINDIR)
  260. @echo "Linking $(MODULENAME)-win32.exe"
  261. $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
  262. $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
  263. -@mkdir -p $(BINDIR)
  264. @echo "Linking $(MODULENAME)-win64.exe"
  265. $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
  266. # ---------------------------------------------------------------------------------------------------------------------
  267. # native
  268. $(OBJDIR)/CarlaPluginJSFX.cpp.o: $(CWD)/backend/plugin/CarlaPluginJSFX.cpp
  269. -@mkdir -p $(OBJDIR)
  270. @echo "Compiling CarlaPluginJSFX.cpp (bridge)"
  271. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) $(YSFX_FLAGS) -c -o $@
  272. ifeq ($(MACOS),true)
  273. $(OBJDIR)/CarlaPluginVST2.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  274. -@mkdir -p $(OBJDIR)
  275. @echo "Compiling CarlaPluginVST2.cpp (bridge)"
  276. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  277. $(OBJDIR)/CarlaPluginVST3.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  278. -@mkdir -p $(OBJDIR)
  279. @echo "Compiling CarlaPluginVST3.cpp (bridge)"
  280. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  281. $(OBJDIR)/CarlaPluginCLAP.cpp.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  282. -@mkdir -p $(OBJDIR)
  283. @echo "Compiling CarlaPluginCLAP.cpp (bridge)"
  284. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  285. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  286. -@mkdir -p $(OBJDIR)
  287. @echo "Compiling CarlaStandalone.cpp (bridge)"
  288. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  289. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  290. -@mkdir -p $(OBJDIR)
  291. @echo "Compiling $<"
  292. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  293. else
  294. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  295. -@mkdir -p $(OBJDIR)
  296. @echo "Compiling CarlaStandalone.cpp (bridge)"
  297. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  298. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  299. -@mkdir -p $(OBJDIR)
  300. @echo "Compiling $<"
  301. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  302. endif
  303. ifeq ($(USING_JUCE),true)
  304. ifeq ($(MACOS),true)
  305. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  306. -@mkdir -p $(OBJDIR)
  307. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  308. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  309. else
  310. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  311. -@mkdir -p $(OBJDIR)
  312. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  313. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -std=gnu++14 -c -o $@
  314. endif
  315. endif
  316. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  317. -@mkdir -p $(OBJDIR)
  318. @echo "Compiling $<"
  319. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  320. $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  321. -@mkdir -p $(OBJDIR)
  322. @echo "Compiling CarlaPlug$*.cpp (bridge)"
  323. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  324. $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
  325. -@mkdir -p $(OBJDIR)
  326. @echo "Compiling CarlaEng$*.cpp (bridge)"
  327. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  328. # ---------------------------------------------------------------------------------------------------------------------
  329. # arm32
  330. ifeq ($(USING_JUCE),true)
  331. $(OBJDIR)/CarlaPluginJuce.arm32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  332. -@mkdir -p $(OBJDIR)
  333. @echo "Compiling CarlaPluginJuce.cpp (arm32 bridge)"
  334. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -std=gnu++14 -c -o $@
  335. endif
  336. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  337. -@mkdir -p $(OBJDIR)
  338. @echo "Compiling $< (arm32 bridge)"
  339. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  340. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  341. -@mkdir -p $(OBJDIR)
  342. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  343. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  344. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  345. -@mkdir -p $(OBJDIR)
  346. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  347. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  348. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  349. -@mkdir -p $(OBJDIR)
  350. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  351. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  352. # ----------------------------------------------------------------------------------------------------------------------
  353. # posix32
  354. ifeq ($(MACOS),true)
  355. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  356. -@mkdir -p $(OBJDIR)
  357. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  358. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  359. $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  360. -@mkdir -p $(OBJDIR)
  361. @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
  362. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  363. $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  364. -@mkdir -p $(OBJDIR)
  365. @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
  366. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  367. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  368. -@mkdir -p $(OBJDIR)
  369. @echo "Compiling $< (posix32 bridge)"
  370. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  371. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  372. -@mkdir -p $(OBJDIR)
  373. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  374. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  375. else
  376. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  377. -@mkdir -p $(OBJDIR)
  378. @echo "Compiling $< (posix32 bridge)"
  379. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  380. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  381. -@mkdir -p $(OBJDIR)
  382. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  383. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  384. endif
  385. ifeq ($(USING_JUCE),true)
  386. ifeq ($(MACOS),true)
  387. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  388. -@mkdir -p $(OBJDIR)
  389. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  390. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  391. else
  392. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  393. -@mkdir -p $(OBJDIR)
  394. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  395. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  396. endif
  397. endif
  398. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  399. -@mkdir -p $(OBJDIR)
  400. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  401. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  402. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  403. -@mkdir -p $(OBJDIR)
  404. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  405. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  406. # ---------------------------------------------------------------------------------------------------------------------
  407. # posix64
  408. ifeq ($(MACOS),true)
  409. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  410. -@mkdir -p $(OBJDIR)
  411. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  412. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  413. $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  414. -@mkdir -p $(OBJDIR)
  415. @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
  416. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  417. $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  418. -@mkdir -p $(OBJDIR)
  419. @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
  420. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  421. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  422. -@mkdir -p $(OBJDIR)
  423. @echo "Compiling $< (posix64 bridge)"
  424. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  425. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  426. -@mkdir -p $(OBJDIR)
  427. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  428. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  429. else
  430. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  431. -@mkdir -p $(OBJDIR)
  432. @echo "Compiling $< (posix64 bridge)"
  433. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  434. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  435. -@mkdir -p $(OBJDIR)
  436. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  437. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  438. endif
  439. ifeq ($(USING_JUCE),true)
  440. ifeq ($(MACOS),true)
  441. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  442. -@mkdir -p $(OBJDIR)
  443. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  444. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  445. else
  446. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  447. -@mkdir -p $(OBJDIR)
  448. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  449. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  450. endif
  451. endif
  452. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  453. -@mkdir -p $(OBJDIR)
  454. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  455. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  456. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  457. -@mkdir -p $(OBJDIR)
  458. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  459. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  460. # ---------------------------------------------------------------------------------------------------------------------
  461. # win32
  462. ifeq ($(USING_JUCE),true)
  463. $(OBJDIR)/CarlaPluginJuce.cpp.win32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  464. -@mkdir -p $(OBJDIR)
  465. @echo "Compiling CarlaPluginJuce.cpp (win32 bridge)"
  466. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  467. endif
  468. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  469. -@mkdir -p $(OBJDIR)
  470. @echo "Compiling $< (win32 bridge)"
  471. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  472. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  473. -@mkdir -p $(OBJDIR)
  474. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  475. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  476. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  477. -@mkdir -p $(OBJDIR)
  478. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  479. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  480. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  481. -@mkdir -p $(OBJDIR)
  482. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  483. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  484. # ---------------------------------------------------------------------------------------------------------------------
  485. # win64
  486. ifeq ($(USING_JUCE),true)
  487. $(OBJDIR)/CarlaPluginJuce.cpp.win64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  488. -@mkdir -p $(OBJDIR)
  489. @echo "Compiling CarlaPluginJuce.cpp (win64 bridge)"
  490. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  491. endif
  492. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  493. -@mkdir -p $(OBJDIR)
  494. @echo "Compiling $< (win64 bridge)"
  495. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  496. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  497. -@mkdir -p $(OBJDIR)
  498. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  499. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  500. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  501. -@mkdir -p $(OBJDIR)
  502. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  503. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  504. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  505. -@mkdir -p $(OBJDIR)
  506. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  507. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  508. # ---------------------------------------------------------------------------------------------------------------------
  509. -include $(OBJS_lv2:%.o=%.d)
  510. -include $(OBJS_arm32:%.o=%.d)
  511. -include $(OBJS_posix32:%.o=%.d)
  512. -include $(OBJS_posix64:%.o=%.d)
  513. -include $(OBJS_win32:%.o=%.d)
  514. -include $(OBJS_win64:%.o=%.d)
  515. # ---------------------------------------------------------------------------------------------------------------------