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.

444 lines
16KB

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