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.

Makefile 19KB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
5 years ago
5 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  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. ifneq ($(HAIKU),true)
  18. ifneq ($(WASM),true)
  19. BUILD_CXX_FLAGS += -pthread
  20. endif
  21. endif
  22. # ---------------------------------------------------------------------------------------------------------------------
  23. BINDIR := $(CWD)/../bin
  24. ifeq ($(DEBUG),true)
  25. OBJDIR := $(CWD)/../build/bridges-plugin/Debug
  26. MODULEDIR := $(CWD)/../build/modules/Debug
  27. else
  28. OBJDIR := $(CWD)/../build/bridges-plugin/Release
  29. MODULEDIR := $(CWD)/../build/modules/Release
  30. endif
  31. # ---------------------------------------------------------------------------------------------------------------------
  32. BUILD_CXX_FLAGS += -DBUILD_BRIDGE -I. -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  33. BUILD_CXX_FLAGS += -I$(CWD)/backend/engine -I$(CWD)/backend/plugin
  34. BUILD_CXX_FLAGS += -UHAVE_SDL
  35. BUILD_CXX_FLAGS += -UUSING_JUCE_AUDIO_DEVICES
  36. BUILD_CXX_FLAGS += -UUSING_RTAUDIO
  37. 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  38. 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  39. ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  40. # ---------------------------------------------------------------------------------------------------------------------
  41. LIBS_native = $(MODULEDIR)/jackbridge.a
  42. LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
  43. LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
  44. LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
  45. ifeq ($(BUILDING_FOR_WINE),true)
  46. LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
  47. LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
  48. else
  49. LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
  50. LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
  51. endif
  52. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  53. LIBS_native += $(MODULEDIR)/lilv.a
  54. LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
  55. LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
  56. LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
  57. LIBS_win32 += $(MODULEDIR)/lilv.win32.a
  58. LIBS_win64 += $(MODULEDIR)/lilv.win64.a
  59. LINK_FLAGS += $(LILV_LIBS)
  60. LIBS_native += $(MODULEDIR)/rtmempool.a
  61. LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
  62. LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
  63. LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
  64. LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
  65. LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
  66. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  67. LIBS_native += $(MODULEDIR)/water.a
  68. LIBS_arm32 += $(MODULEDIR)/water.arm32.a
  69. LIBS_posix32 += $(MODULEDIR)/water.posix32.a
  70. LIBS_posix64 += $(MODULEDIR)/water.posix64.a
  71. LIBS_win32 += $(MODULEDIR)/water.win32.a
  72. LIBS_win64 += $(MODULEDIR)/water.win64.a
  73. LINK_FLAGS += $(WATER_LIBS)
  74. ifeq ($(HAVE_YSFX),true)
  75. LIBS_native += $(MODULEDIR)/ysfx.a
  76. LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  77. endif
  78. ifeq ($(USING_JUCE),true)
  79. LIBS_native += $(MODULEDIR)/carla_juce.a
  80. LIBS_native += $(MODULEDIR)/juce_audio_basics.a
  81. LIBS_native += $(MODULEDIR)/juce_audio_processors.a
  82. LIBS_native += $(MODULEDIR)/juce_core.a
  83. LIBS_native += $(MODULEDIR)/juce_data_structures.a
  84. LIBS_native += $(MODULEDIR)/juce_events.a
  85. LIBS_native += $(MODULEDIR)/juce_graphics.a
  86. LIBS_native += $(MODULEDIR)/juce_gui_basics.a
  87. LIBS_native += $(MODULEDIR)/juce_gui_extra.a
  88. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  89. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  90. LINK_FLAGS += $(JUCE_CORE_LIBS)
  91. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  92. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  93. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  94. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  95. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  96. endif
  97. ifeq ($(JACKBRIDGE_DIRECT),true)
  98. LINK_FLAGS += $(JACK_LIBS)
  99. endif
  100. LINK_FLAGS += $(X11_LIBS)
  101. # ---------------------------------------------------------------------------------------------------------------------
  102. NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
  103. NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
  104. NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
  105. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  106. NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
  107. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  108. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  109. LIBS_native += $(MODULEDIR)/audio_decoder.a
  110. LIBS_native += $(MODULEDIR)/native-plugins.a
  111. ifneq ($(STATIC_PLUGIN_TARGET),true)
  112. LIBS_native += $(MODULEDIR)/sfzero.a
  113. endif
  114. LIBS_native += $(MODULEDIR)/zita-resampler.a
  115. ifeq ($(HAVE_DGL),true)
  116. ifneq ($(USING_CUSTOM_DPF),true)
  117. LIBS_native += $(MODULEDIR)/dgl.a
  118. else
  119. LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
  120. endif
  121. endif
  122. ifeq ($(WINDOWS),true)
  123. EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
  124. endif
  125. # ---------------------------------------------------------------------------------------------------------------------
  126. OBJS_native = \
  127. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  128. $(OBJDIR)/CarlaEngine.cpp.o \
  129. $(OBJDIR)/CarlaEngineClient.cpp.o \
  130. $(OBJDIR)/CarlaEngineData.cpp.o \
  131. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  132. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  133. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  134. $(OBJDIR)/CarlaEngineNative.cpp.o \
  135. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  136. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  137. $(OBJDIR)/CarlaEngineRunner.cpp.o \
  138. $(OBJDIR)/CarlaEngineJack.cpp.o \
  139. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  140. $(OBJDIR)/CarlaPlugin.cpp.o \
  141. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  142. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  143. $(OBJDIR)/CarlaPluginJack.cpp.o \
  144. $(OBJDIR)/CarlaPluginNative.cpp.o \
  145. $(OBJDIR)/CarlaPluginCLAP.cpp.o \
  146. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  147. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  148. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  149. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  150. $(OBJDIR)/CarlaPluginAU.cpp.o \
  151. $(OBJDIR)/CarlaPluginJSFX.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)/CarlaEngineRunner.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)/CarlaPluginCLAP.cpp.arch.o \
  172. $(OBJDIR)/CarlaPluginLADSPADSSI.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)/CarlaStandalone.cpp.arch.o
  178. OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.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$(APP_EXT)
  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. arm32: $(BINDIR)/$(MODULENAME)-arm32
  197. posix32: $(BINDIR)/$(MODULENAME)-posix32
  198. posix64: $(BINDIR)/$(MODULENAME)-posix64
  199. win32: $(BINDIR)/$(MODULENAME)-win32.exe
  200. win64: $(BINDIR)/$(MODULENAME)-win64.exe
  201. # ---------------------------------------------------------------------------------------------------------------------
  202. # linking
  203. $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
  204. -@mkdir -p $(BINDIR)
  205. @echo "Linking $(MODULENAME)-native$(APP_EXT)"
  206. $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  207. $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
  208. -@mkdir -p $(BINDIR)
  209. @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
  210. $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  211. $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
  212. -@mkdir -p $(BINDIR)
  213. @echo "Linking $(MODULENAME)-arm32"
  214. $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
  215. $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
  216. -@mkdir -p $(BINDIR)
  217. @echo "Linking $(MODULENAME)-posix32"
  218. $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
  219. $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
  220. -@mkdir -p $(BINDIR)
  221. @echo "Linking $(MODULENAME)-posix64"
  222. $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
  223. $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
  224. -@mkdir -p $(BINDIR)
  225. @echo "Linking $(MODULENAME)-win32.exe"
  226. $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
  227. $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
  228. -@mkdir -p $(BINDIR)
  229. @echo "Linking $(MODULENAME)-win64.exe"
  230. $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
  231. # ---------------------------------------------------------------------------------------------------------------------
  232. # native
  233. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  234. -@mkdir -p $(OBJDIR)
  235. @echo "Compiling $<"
  236. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  237. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  238. -@mkdir -p $(OBJDIR)
  239. @echo "Compiling $<"
  240. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  241. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  242. -@mkdir -p $(OBJDIR)
  243. @echo "Compiling CarlaStandalone.cpp (bridge)"
  244. $(SILENT)$(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. $(SILENT)$(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. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  253. $(OBJDIR)/CarlaPluginJSFX.cpp.o: BUILD_CXX_FLAGS += $(YSFX_FLAGS)
  254. $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -std=gnu++14
  255. ifeq ($(MACOS),true)
  256. $(OBJDIR)/CarlaPluginCLAP.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  257. $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  258. $(OBJDIR)/CarlaPluginVST2.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  259. $(OBJDIR)/CarlaPluginVST3.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  260. $(OBJDIR)/CarlaStandalone.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  261. $(OBJDIR)/CarlaBridgePlugin.cpp.o: BUILD_CXX_FLAGS += -ObjC++
  262. endif
  263. # ---------------------------------------------------------------------------------------------------------------------
  264. # arm32
  265. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  266. -@mkdir -p $(OBJDIR)
  267. @echo "Compiling $< (arm32 bridge)"
  268. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  269. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  270. -@mkdir -p $(OBJDIR)
  271. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  272. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  273. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  274. -@mkdir -p $(OBJDIR)
  275. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  276. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  277. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  278. -@mkdir -p $(OBJDIR)
  279. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  280. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  281. # ----------------------------------------------------------------------------------------------------------------------
  282. # posix32
  283. ifeq ($(MACOS),true)
  284. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  285. -@mkdir -p $(OBJDIR)
  286. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  287. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  288. $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  289. -@mkdir -p $(OBJDIR)
  290. @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
  291. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  292. $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  293. -@mkdir -p $(OBJDIR)
  294. @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
  295. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  296. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  297. -@mkdir -p $(OBJDIR)
  298. @echo "Compiling $< (posix32 bridge)"
  299. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  300. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  301. -@mkdir -p $(OBJDIR)
  302. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  303. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  304. else
  305. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  306. -@mkdir -p $(OBJDIR)
  307. @echo "Compiling $< (posix32 bridge)"
  308. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  309. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  310. -@mkdir -p $(OBJDIR)
  311. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  312. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  313. endif
  314. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  315. -@mkdir -p $(OBJDIR)
  316. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  317. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  318. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  319. -@mkdir -p $(OBJDIR)
  320. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  321. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  322. # ---------------------------------------------------------------------------------------------------------------------
  323. # posix64
  324. ifeq ($(MACOS),true)
  325. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  326. -@mkdir -p $(OBJDIR)
  327. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  328. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  329. $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  330. -@mkdir -p $(OBJDIR)
  331. @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
  332. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  333. $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
  334. -@mkdir -p $(OBJDIR)
  335. @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
  336. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  337. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  338. -@mkdir -p $(OBJDIR)
  339. @echo "Compiling $< (posix64 bridge)"
  340. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  341. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  342. -@mkdir -p $(OBJDIR)
  343. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  344. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  345. else
  346. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  347. -@mkdir -p $(OBJDIR)
  348. @echo "Compiling $< (posix64 bridge)"
  349. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  350. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  351. -@mkdir -p $(OBJDIR)
  352. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  353. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  354. endif
  355. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  356. -@mkdir -p $(OBJDIR)
  357. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  358. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  359. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  360. -@mkdir -p $(OBJDIR)
  361. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  362. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  363. # ---------------------------------------------------------------------------------------------------------------------
  364. # win32
  365. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  366. -@mkdir -p $(OBJDIR)
  367. @echo "Compiling $< (win32 bridge)"
  368. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  369. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  370. -@mkdir -p $(OBJDIR)
  371. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  372. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  373. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  374. -@mkdir -p $(OBJDIR)
  375. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  376. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  377. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  378. -@mkdir -p $(OBJDIR)
  379. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  380. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  381. # ---------------------------------------------------------------------------------------------------------------------
  382. # win64
  383. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  384. -@mkdir -p $(OBJDIR)
  385. @echo "Compiling $< (win64 bridge)"
  386. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  387. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  388. -@mkdir -p $(OBJDIR)
  389. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  390. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  391. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  392. -@mkdir -p $(OBJDIR)
  393. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  394. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  395. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  396. -@mkdir -p $(OBJDIR)
  397. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  398. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  399. # ---------------------------------------------------------------------------------------------------------------------
  400. -include $(OBJS_lv2:%.o=%.d)
  401. -include $(OBJS_arm32:%.o=%.d)
  402. -include $(OBJS_posix32:%.o=%.d)
  403. -include $(OBJS_posix64:%.o=%.d)
  404. -include $(OBJS_win32:%.o=%.d)
  405. -include $(OBJS_win64:%.o=%.d)
  406. # ---------------------------------------------------------------------------------------------------------------------