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.

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