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.

472 lines
17KB

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