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.

513 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. ifeq ($(JACKBRIDGE_DIRECT),true)
  117. LINK_FLAGS += $(JACK_LIBS)
  118. endif
  119. LINK_FLAGS += $(X11_LIBS)
  120. # ---------------------------------------------------------------------------------------------------------------------
  121. NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
  122. NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
  123. NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
  124. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  125. NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
  126. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  127. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  128. LIBS_native += $(MODULEDIR)/audio_decoder.a
  129. LIBS_native += $(MODULEDIR)/native-plugins.a
  130. LIBS_native += $(MODULEDIR)/sfzero.a
  131. LIBS_native += $(MODULEDIR)/zita-resampler.a
  132. ifeq ($(HAVE_DGL),true)
  133. LIBS_native += $(MODULEDIR)/dgl.a
  134. endif
  135. ifeq ($(WIN32),true)
  136. EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
  137. endif
  138. # ---------------------------------------------------------------------------------------------------------------------
  139. OBJS_native = \
  140. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  141. $(OBJDIR)/CarlaEngine.cpp.o \
  142. $(OBJDIR)/CarlaEngineClient.cpp.o \
  143. $(OBJDIR)/CarlaEngineData.cpp.o \
  144. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  145. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  146. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  147. $(OBJDIR)/CarlaEngineNative.cpp.o \
  148. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  149. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  150. $(OBJDIR)/CarlaEngineThread.cpp.o \
  151. $(OBJDIR)/CarlaEngineJack.cpp.o \
  152. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  153. $(OBJDIR)/CarlaPlugin.cpp.o \
  154. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  155. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  156. $(OBJDIR)/CarlaPluginJack.cpp.o \
  157. $(OBJDIR)/CarlaPluginNative.cpp.o \
  158. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  159. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  160. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  161. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  162. $(OBJDIR)/CarlaPluginAU.cpp.o \
  163. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  164. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  165. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  166. $(OBJDIR)/CarlaStandalone.cpp.o
  167. OBJS_lv2 = $(OBJS_native) \
  168. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
  169. OBJS_arch = \
  170. $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
  171. $(OBJDIR)/CarlaEngine.cpp.arch.o \
  172. $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
  173. $(OBJDIR)/CarlaEngineData.cpp.arch.o \
  174. $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
  175. $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
  176. $(OBJDIR)/CarlaEngineThread.cpp.arch.o \
  177. $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
  178. $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
  179. $(OBJDIR)/CarlaPlugin.cpp.arch.o \
  180. $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
  181. $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
  182. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.arch.o \
  183. $(OBJDIR)/CarlaPluginLV2.cpp.arch.o \
  184. $(OBJDIR)/CarlaPluginVST2.cpp.arch.o \
  185. $(OBJDIR)/CarlaPluginVST3.cpp.arch.o \
  186. $(OBJDIR)/CarlaPluginAU.cpp.arch.o \
  187. $(OBJDIR)/CarlaPluginJuce.cpp.arch.o \
  188. $(OBJDIR)/CarlaStandalone.cpp.arch.o
  189. OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.o)
  190. OBJS_posix32 = $(OBJS_arch:%.arch.o=%.posix32.o)
  191. OBJS_posix64 = $(OBJS_arch:%.arch.o=%.posix64.o)
  192. OBJS_win32 = $(OBJS_arch:%.arch.o=%.win32.o)
  193. OBJS_win64 = $(OBJS_arch:%.arch.o=%.win64.o)
  194. # ---------------------------------------------------------------------------------------------------------------------
  195. all: native
  196. # ---------------------------------------------------------------------------------------------------------------------
  197. clean:
  198. rm -f $(OBJDIR)/*.o
  199. rm -f $(BINDIR)/$(MODULENAME)-native
  200. rm -f $(BINDIR)/$(MODULENAME)-posix32
  201. rm -f $(BINDIR)/$(MODULENAME)-posix64
  202. rm -f $(BINDIR)/$(MODULENAME)-win*.exe
  203. debug:
  204. $(MAKE) DEBUG=true
  205. # ---------------------------------------------------------------------------------------------------------------------
  206. native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
  207. arm32: $(BINDIR)/$(MODULENAME)-arm32
  208. posix32: $(BINDIR)/$(MODULENAME)-posix32
  209. posix64: $(BINDIR)/$(MODULENAME)-posix64
  210. win32: $(BINDIR)/$(MODULENAME)-win32.exe
  211. win64: $(BINDIR)/$(MODULENAME)-win64.exe
  212. # ---------------------------------------------------------------------------------------------------------------------
  213. # linking
  214. $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
  215. -@mkdir -p $(BINDIR)
  216. @echo "Linking $(MODULENAME)-native$(APP_EXT)"
  217. @$(CXX) $(OBJS_native) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  218. $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
  219. -@mkdir -p $(BINDIR)
  220. @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
  221. @$(CXX) $(OBJS_lv2) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  222. $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
  223. -@mkdir -p $(BINDIR)
  224. @echo "Linking $(MODULENAME)-arm32"
  225. @$(CXX) $(OBJS_arm32) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
  226. $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
  227. -@mkdir -p $(BINDIR)
  228. @echo "Linking $(MODULENAME)-posix32"
  229. @$(CXX) $(OBJS_posix32) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
  230. $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
  231. -@mkdir -p $(BINDIR)
  232. @echo "Linking $(MODULENAME)-posix64"
  233. @$(CXX) $(OBJS_posix64) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
  234. $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
  235. -@mkdir -p $(BINDIR)
  236. @echo "Linking $(MODULENAME)-win32.exe"
  237. @$(CXX) $(OBJS_win32) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
  238. $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
  239. -@mkdir -p $(BINDIR)
  240. @echo "Linking $(MODULENAME)-win64.exe"
  241. @$(CXX) $(OBJS_win64) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
  242. # ---------------------------------------------------------------------------------------------------------------------
  243. # native
  244. ifeq ($(MACOS),true)
  245. $(OBJDIR)/CarlaPluginVST2.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  246. -@mkdir -p $(OBJDIR)
  247. @echo "Compiling CarlaPluginVST2.cpp (bridge)"
  248. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  249. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  250. -@mkdir -p $(OBJDIR)
  251. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  252. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  253. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  254. -@mkdir -p $(OBJDIR)
  255. @echo "Compiling CarlaStandalone.cpp (bridge)"
  256. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  257. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  258. -@mkdir -p $(OBJDIR)
  259. @echo "Compiling $<"
  260. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  261. else
  262. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  263. -@mkdir -p $(OBJDIR)
  264. @echo "Compiling CarlaStandalone.cpp (bridge)"
  265. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  266. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  267. -@mkdir -p $(OBJDIR)
  268. @echo "Compiling $<"
  269. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  270. endif
  271. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  272. -@mkdir -p $(OBJDIR)
  273. @echo "Compiling $<"
  274. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  275. $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  276. -@mkdir -p $(OBJDIR)
  277. @echo "Compiling CarlaPlug$*.cpp (bridge)"
  278. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  279. $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
  280. -@mkdir -p $(OBJDIR)
  281. @echo "Compiling CarlaEng$*.cpp (bridge)"
  282. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  283. # ---------------------------------------------------------------------------------------------------------------------
  284. # arm32
  285. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  286. -@mkdir -p $(OBJDIR)
  287. @echo "Compiling $< (arm32 bridge)"
  288. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  289. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  290. -@mkdir -p $(OBJDIR)
  291. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  292. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  293. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  294. -@mkdir -p $(OBJDIR)
  295. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  296. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  297. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  298. -@mkdir -p $(OBJDIR)
  299. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  300. @$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  301. # ----------------------------------------------------------------------------------------------------------------------
  302. # posix32
  303. ifeq ($(MACOS),true)
  304. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  305. -@mkdir -p $(OBJDIR)
  306. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  307. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  308. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  309. -@mkdir -p $(OBJDIR)
  310. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  311. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  312. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  313. -@mkdir -p $(OBJDIR)
  314. @echo "Compiling $< (posix32 bridge)"
  315. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  316. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  317. -@mkdir -p $(OBJDIR)
  318. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  319. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  320. else
  321. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  322. -@mkdir -p $(OBJDIR)
  323. @echo "Compiling $< (posix32 bridge)"
  324. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  325. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  326. -@mkdir -p $(OBJDIR)
  327. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  328. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  329. endif
  330. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  331. -@mkdir -p $(OBJDIR)
  332. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  333. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  334. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  335. -@mkdir -p $(OBJDIR)
  336. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  337. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  338. # ---------------------------------------------------------------------------------------------------------------------
  339. # posix64
  340. ifeq ($(MACOS),true)
  341. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  342. -@mkdir -p $(OBJDIR)
  343. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  344. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  345. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  346. -@mkdir -p $(OBJDIR)
  347. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  348. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  349. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  350. -@mkdir -p $(OBJDIR)
  351. @echo "Compiling $< (posix64 bridge)"
  352. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  353. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  354. -@mkdir -p $(OBJDIR)
  355. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  356. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  357. else
  358. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  359. -@mkdir -p $(OBJDIR)
  360. @echo "Compiling $< (posix64 bridge)"
  361. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  362. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  363. -@mkdir -p $(OBJDIR)
  364. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  365. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  366. endif
  367. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  368. -@mkdir -p $(OBJDIR)
  369. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  370. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  371. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  372. -@mkdir -p $(OBJDIR)
  373. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  374. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  375. # ---------------------------------------------------------------------------------------------------------------------
  376. # win32
  377. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  378. -@mkdir -p $(OBJDIR)
  379. @echo "Compiling $< (win32 bridge)"
  380. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  381. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  382. -@mkdir -p $(OBJDIR)
  383. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  384. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  385. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  386. -@mkdir -p $(OBJDIR)
  387. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  388. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  389. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  390. -@mkdir -p $(OBJDIR)
  391. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  392. @$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  393. # ---------------------------------------------------------------------------------------------------------------------
  394. # win64
  395. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  396. -@mkdir -p $(OBJDIR)
  397. @echo "Compiling $< (win64 bridge)"
  398. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  399. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  400. -@mkdir -p $(OBJDIR)
  401. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  402. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  403. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  404. -@mkdir -p $(OBJDIR)
  405. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  406. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  407. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  408. -@mkdir -p $(OBJDIR)
  409. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  410. @$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  411. # ---------------------------------------------------------------------------------------------------------------------
  412. -include $(OBJS_lv2:%.o=%.d)
  413. -include $(OBJS_arm32:%.o=%.d)
  414. -include $(OBJS_posix32:%.o=%.d)
  415. -include $(OBJS_posix64:%.o=%.d)
  416. -include $(OBJS_win32:%.o=%.d)
  417. -include $(OBJS_win64:%.o=%.d)
  418. # ---------------------------------------------------------------------------------------------------------------------