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.

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