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.

522 lines
19KB

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