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.

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