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 23KB

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
10 years ago
10 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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. ifeq ($(USING_JUCE),true)
  35. ifeq ($(WINDOWS),true)
  36. BUILD_CXX_FLAGS += -I$(CWD)/modules/mingw-std-threads
  37. endif
  38. endif
  39. 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  40. 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  41. ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  42. # ---------------------------------------------------------------------------------------------------------------------
  43. LIBS_native = $(MODULEDIR)/jackbridge.a
  44. LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
  45. LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
  46. LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
  47. ifeq ($(BUILDING_FOR_WINE),true)
  48. LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
  49. LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
  50. else
  51. LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
  52. LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
  53. endif
  54. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  55. LIBS_native += $(MODULEDIR)/lilv.a
  56. LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
  57. LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
  58. LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
  59. LIBS_win32 += $(MODULEDIR)/lilv.win32.a
  60. LIBS_win64 += $(MODULEDIR)/lilv.win64.a
  61. LINK_FLAGS += $(LILV_LIBS)
  62. LIBS_native += $(MODULEDIR)/rtmempool.a
  63. LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
  64. LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
  65. LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
  66. LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
  67. LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
  68. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  69. LIBS_native += $(MODULEDIR)/water.a
  70. LIBS_arm32 += $(MODULEDIR)/water.arm32.a
  71. LIBS_posix32 += $(MODULEDIR)/water.posix32.a
  72. LIBS_posix64 += $(MODULEDIR)/water.posix64.a
  73. LIBS_win32 += $(MODULEDIR)/water.win32.a
  74. LIBS_win64 += $(MODULEDIR)/water.win64.a
  75. LINK_FLAGS += $(WATER_LIBS)
  76. ifeq ($(USING_JUCE),true)
  77. LIBS_native += $(MODULEDIR)/carla_juce.a
  78. LIBS_posix32 += $(MODULEDIR)/carla_juce.posix32.a
  79. LIBS_posix64 += $(MODULEDIR)/carla_juce.posix64.a
  80. LIBS_win32 += $(MODULEDIR)/carla_juce.win32.a
  81. LIBS_win64 += $(MODULEDIR)/carla_juce.win64.a
  82. LIBS_native += $(MODULEDIR)/juce_audio_basics.a
  83. LIBS_posix32 += $(MODULEDIR)/juce_audio_basics.posix32.a
  84. LIBS_posix64 += $(MODULEDIR)/juce_audio_basics.posix64.a
  85. LIBS_win32 += $(MODULEDIR)/juce_audio_basics.win32.a
  86. LIBS_win64 += $(MODULEDIR)/juce_audio_basics.win64.a
  87. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  88. LIBS_native += $(MODULEDIR)/juce_audio_processors.a
  89. LIBS_posix32 += $(MODULEDIR)/juce_audio_processors.posix32.a
  90. LIBS_posix64 += $(MODULEDIR)/juce_audio_processors.posix64.a
  91. LIBS_win32 += $(MODULEDIR)/juce_audio_processors.win32.a
  92. LIBS_win64 += $(MODULEDIR)/juce_audio_processors.win64.a
  93. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  94. LIBS_native += $(MODULEDIR)/juce_core.a
  95. LIBS_posix32 += $(MODULEDIR)/juce_core.posix32.a
  96. LIBS_posix64 += $(MODULEDIR)/juce_core.posix64.a
  97. LIBS_win32 += $(MODULEDIR)/juce_core.win32.a
  98. LIBS_win64 += $(MODULEDIR)/juce_core.win64.a
  99. LINK_FLAGS += $(JUCE_CORE_LIBS)
  100. LIBS_native += $(MODULEDIR)/juce_data_structures.a
  101. LIBS_posix32 += $(MODULEDIR)/juce_data_structures.posix32.a
  102. LIBS_posix64 += $(MODULEDIR)/juce_data_structures.posix64.a
  103. LIBS_win32 += $(MODULEDIR)/juce_data_structures.win32.a
  104. LIBS_win64 += $(MODULEDIR)/juce_data_structures.win64.a
  105. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  106. LIBS_native += $(MODULEDIR)/juce_events.a
  107. LIBS_posix32 += $(MODULEDIR)/juce_events.posix32.a
  108. LIBS_posix64 += $(MODULEDIR)/juce_events.posix64.a
  109. LIBS_win32 += $(MODULEDIR)/juce_events.win32.a
  110. LIBS_win64 += $(MODULEDIR)/juce_events.win64.a
  111. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  112. LIBS_native += $(MODULEDIR)/juce_graphics.a
  113. LIBS_posix32 += $(MODULEDIR)/juce_graphics.posix32.a
  114. LIBS_posix64 += $(MODULEDIR)/juce_graphics.posix64.a
  115. LIBS_win32 += $(MODULEDIR)/juce_graphics.win32.a
  116. LIBS_win64 += $(MODULEDIR)/juce_graphics.win64.a
  117. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  118. LIBS_native += $(MODULEDIR)/juce_gui_basics.a
  119. LIBS_posix32 += $(MODULEDIR)/juce_gui_basics.posix32.a
  120. LIBS_posix64 += $(MODULEDIR)/juce_gui_basics.posix64.a
  121. LIBS_win32 += $(MODULEDIR)/juce_gui_basics.win32.a
  122. LIBS_win64 += $(MODULEDIR)/juce_gui_basics.win64.a
  123. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  124. LIBS_native += $(MODULEDIR)/juce_gui_extra.a
  125. LIBS_posix32 += $(MODULEDIR)/juce_gui_extra.posix32.a
  126. LIBS_posix64 += $(MODULEDIR)/juce_gui_extra.posix64.a
  127. LIBS_win32 += $(MODULEDIR)/juce_gui_extra.win32.a
  128. LIBS_win64 += $(MODULEDIR)/juce_gui_extra.win64.a
  129. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  130. endif
  131. LIBS_native += $(MODULEDIR)/ysfx.a
  132. LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
  133. ifeq ($(JACKBRIDGE_DIRECT),true)
  134. LINK_FLAGS += $(JACK_LIBS)
  135. endif
  136. LINK_FLAGS += $(X11_LIBS)
  137. # ---------------------------------------------------------------------------------------------------------------------
  138. NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
  139. NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
  140. NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
  141. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  142. NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
  143. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  144. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  145. LIBS_native += $(MODULEDIR)/audio_decoder.a
  146. LIBS_native += $(MODULEDIR)/native-plugins.a
  147. LIBS_native += $(MODULEDIR)/sfzero.a
  148. LIBS_native += $(MODULEDIR)/zita-resampler.a
  149. ifeq ($(HAVE_DGL),true)
  150. ifneq ($(USING_CUSTOM_DPF),true)
  151. LIBS_native += $(MODULEDIR)/dgl.a
  152. else
  153. LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
  154. endif
  155. endif
  156. ifeq ($(WINDOWS),true)
  157. EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
  158. endif
  159. # ---------------------------------------------------------------------------------------------------------------------
  160. OBJS_native = \
  161. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  162. $(OBJDIR)/CarlaEngine.cpp.o \
  163. $(OBJDIR)/CarlaEngineClient.cpp.o \
  164. $(OBJDIR)/CarlaEngineData.cpp.o \
  165. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  166. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  167. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  168. $(OBJDIR)/CarlaEngineNative.cpp.o \
  169. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  170. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  171. $(OBJDIR)/CarlaEngineRunner.cpp.o \
  172. $(OBJDIR)/CarlaEngineJack.cpp.o \
  173. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  174. $(OBJDIR)/CarlaPlugin.cpp.o \
  175. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  176. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  177. $(OBJDIR)/CarlaPluginJack.cpp.o \
  178. $(OBJDIR)/CarlaPluginNative.cpp.o \
  179. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
  180. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  181. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  182. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  183. $(OBJDIR)/CarlaPluginAU.cpp.o \
  184. $(OBJDIR)/CarlaPluginJSFX.cpp.o \
  185. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  186. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  187. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  188. $(OBJDIR)/CarlaStandalone.cpp.o
  189. OBJS_lv2 = $(OBJS_native) \
  190. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
  191. OBJS_arch = \
  192. $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
  193. $(OBJDIR)/CarlaEngine.cpp.arch.o \
  194. $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
  195. $(OBJDIR)/CarlaEngineData.cpp.arch.o \
  196. $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
  197. $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
  198. $(OBJDIR)/CarlaEngineRunner.cpp.arch.o \
  199. $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
  200. $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
  201. $(OBJDIR)/CarlaPlugin.cpp.arch.o \
  202. $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
  203. $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
  204. $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.arch.o \
  205. $(OBJDIR)/CarlaPluginLV2.cpp.arch.o \
  206. $(OBJDIR)/CarlaPluginVST2.cpp.arch.o \
  207. $(OBJDIR)/CarlaPluginVST3.cpp.arch.o \
  208. $(OBJDIR)/CarlaPluginAU.cpp.arch.o \
  209. $(OBJDIR)/CarlaPluginJuce.cpp.arch.o \
  210. $(OBJDIR)/CarlaStandalone.cpp.arch.o
  211. OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.o)
  212. OBJS_posix32 = $(OBJS_arch:%.arch.o=%.posix32.o)
  213. OBJS_posix64 = $(OBJS_arch:%.arch.o=%.posix64.o)
  214. OBJS_win32 = $(OBJS_arch:%.arch.o=%.win32.o)
  215. OBJS_win64 = $(OBJS_arch:%.arch.o=%.win64.o)
  216. # ---------------------------------------------------------------------------------------------------------------------
  217. all: native
  218. # ---------------------------------------------------------------------------------------------------------------------
  219. clean:
  220. rm -f $(OBJDIR)/*.o
  221. rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
  222. rm -f $(BINDIR)/$(MODULENAME)-posix32
  223. rm -f $(BINDIR)/$(MODULENAME)-posix64
  224. rm -f $(BINDIR)/$(MODULENAME)-win*.exe
  225. debug:
  226. $(MAKE) DEBUG=true
  227. # ---------------------------------------------------------------------------------------------------------------------
  228. native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
  229. arm32: $(BINDIR)/$(MODULENAME)-arm32
  230. posix32: $(BINDIR)/$(MODULENAME)-posix32
  231. posix64: $(BINDIR)/$(MODULENAME)-posix64
  232. win32: $(BINDIR)/$(MODULENAME)-win32.exe
  233. win64: $(BINDIR)/$(MODULENAME)-win64.exe
  234. # ---------------------------------------------------------------------------------------------------------------------
  235. # linking
  236. $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
  237. -@mkdir -p $(BINDIR)
  238. @echo "Linking $(MODULENAME)-native$(APP_EXT)"
  239. $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  240. $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
  241. -@mkdir -p $(BINDIR)
  242. @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
  243. $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
  244. $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
  245. -@mkdir -p $(BINDIR)
  246. @echo "Linking $(MODULENAME)-arm32"
  247. $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
  248. $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
  249. -@mkdir -p $(BINDIR)
  250. @echo "Linking $(MODULENAME)-posix32"
  251. $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
  252. $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
  253. -@mkdir -p $(BINDIR)
  254. @echo "Linking $(MODULENAME)-posix64"
  255. $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
  256. $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
  257. -@mkdir -p $(BINDIR)
  258. @echo "Linking $(MODULENAME)-win32.exe"
  259. $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
  260. $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
  261. -@mkdir -p $(BINDIR)
  262. @echo "Linking $(MODULENAME)-win64.exe"
  263. $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
  264. # ---------------------------------------------------------------------------------------------------------------------
  265. # native
  266. $(OBJDIR)/CarlaPluginJSFX.cpp.o: $(CWD)/backend/plugin/CarlaPluginJSFX.cpp
  267. -@mkdir -p $(OBJDIR)
  268. @echo "Compiling CarlaPluginJSFX.cpp (bridge)"
  269. @$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) $(YSFX_FLAGS) -c -o $@
  270. ifeq ($(MACOS),true)
  271. $(OBJDIR)/CarlaPluginVST2.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  272. -@mkdir -p $(OBJDIR)
  273. @echo "Compiling CarlaPluginVST2.cpp (bridge)"
  274. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  275. $(OBJDIR)/CarlaPluginVST3.cpp.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  276. -@mkdir -p $(OBJDIR)
  277. @echo "Compiling CarlaPluginVST3.cpp (bridge)"
  278. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  279. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  280. -@mkdir -p $(OBJDIR)
  281. @echo "Compiling CarlaStandalone.cpp (bridge)"
  282. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  283. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  284. -@mkdir -p $(OBJDIR)
  285. @echo "Compiling $<"
  286. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -c -o $@
  287. else
  288. $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
  289. -@mkdir -p $(OBJDIR)
  290. @echo "Compiling CarlaStandalone.cpp (bridge)"
  291. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  292. $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
  293. -@mkdir -p $(OBJDIR)
  294. @echo "Compiling $<"
  295. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  296. endif
  297. ifeq ($(USING_JUCE),true)
  298. ifeq ($(MACOS),true)
  299. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  300. -@mkdir -p $(OBJDIR)
  301. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  302. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  303. else
  304. $(OBJDIR)/CarlaPluginJuce.cpp.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  305. -@mkdir -p $(OBJDIR)
  306. @echo "Compiling CarlaPluginJuce.cpp (bridge)"
  307. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -std=gnu++14 -c -o $@
  308. endif
  309. endif
  310. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
  311. -@mkdir -p $(OBJDIR)
  312. @echo "Compiling $<"
  313. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  314. $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  315. -@mkdir -p $(OBJDIR)
  316. @echo "Compiling CarlaPlug$*.cpp (bridge)"
  317. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  318. $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
  319. -@mkdir -p $(OBJDIR)
  320. @echo "Compiling CarlaEng$*.cpp (bridge)"
  321. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
  322. # ---------------------------------------------------------------------------------------------------------------------
  323. # arm32
  324. ifeq ($(USING_JUCE),true)
  325. $(OBJDIR)/CarlaPluginJuce.arm32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  326. -@mkdir -p $(OBJDIR)
  327. @echo "Compiling CarlaPluginJuce.cpp (arm32 bridge)"
  328. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -std=gnu++14 -c -o $@
  329. endif
  330. $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
  331. -@mkdir -p $(OBJDIR)
  332. @echo "Compiling $< (arm32 bridge)"
  333. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  334. $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
  335. -@mkdir -p $(OBJDIR)
  336. @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
  337. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  338. $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  339. -@mkdir -p $(OBJDIR)
  340. @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
  341. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  342. $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  343. -@mkdir -p $(OBJDIR)
  344. @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
  345. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
  346. # ----------------------------------------------------------------------------------------------------------------------
  347. # posix32
  348. ifeq ($(MACOS),true)
  349. $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  350. -@mkdir -p $(OBJDIR)
  351. @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
  352. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  353. $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  354. -@mkdir -p $(OBJDIR)
  355. @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
  356. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  357. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  358. -@mkdir -p $(OBJDIR)
  359. @echo "Compiling $< (posix32 bridge)"
  360. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  361. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  362. -@mkdir -p $(OBJDIR)
  363. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  364. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
  365. else
  366. $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
  367. -@mkdir -p $(OBJDIR)
  368. @echo "Compiling $< (posix32 bridge)"
  369. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  370. $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
  371. -@mkdir -p $(OBJDIR)
  372. @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
  373. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  374. endif
  375. ifeq ($(USING_JUCE),true)
  376. ifeq ($(MACOS),true)
  377. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  378. -@mkdir -p $(OBJDIR)
  379. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  380. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  381. else
  382. $(OBJDIR)/CarlaPluginJuce.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  383. -@mkdir -p $(OBJDIR)
  384. @echo "Compiling CarlaPluginJuce.cpp (posix32 bridge)"
  385. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  386. endif
  387. endif
  388. $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  389. -@mkdir -p $(OBJDIR)
  390. @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
  391. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  392. $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  393. -@mkdir -p $(OBJDIR)
  394. @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
  395. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  396. # ---------------------------------------------------------------------------------------------------------------------
  397. # posix64
  398. ifeq ($(MACOS),true)
  399. $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
  400. -@mkdir -p $(OBJDIR)
  401. @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
  402. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  403. $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
  404. -@mkdir -p $(OBJDIR)
  405. @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
  406. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  407. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  408. -@mkdir -p $(OBJDIR)
  409. @echo "Compiling $< (posix64 bridge)"
  410. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  411. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  412. -@mkdir -p $(OBJDIR)
  413. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  414. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
  415. else
  416. $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
  417. -@mkdir -p $(OBJDIR)
  418. @echo "Compiling $< (posix64 bridge)"
  419. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  420. $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
  421. -@mkdir -p $(OBJDIR)
  422. @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
  423. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  424. endif
  425. ifeq ($(USING_JUCE),true)
  426. ifeq ($(MACOS),true)
  427. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  428. -@mkdir -p $(OBJDIR)
  429. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  430. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -std=gnu++14 -c -o $@
  431. else
  432. $(OBJDIR)/CarlaPluginJuce.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  433. -@mkdir -p $(OBJDIR)
  434. @echo "Compiling CarlaPluginJuce.cpp (posix64 bridge)"
  435. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  436. endif
  437. endif
  438. $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  439. -@mkdir -p $(OBJDIR)
  440. @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
  441. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  442. $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  443. -@mkdir -p $(OBJDIR)
  444. @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
  445. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  446. # ---------------------------------------------------------------------------------------------------------------------
  447. # win32
  448. ifeq ($(USING_JUCE),true)
  449. $(OBJDIR)/CarlaPluginJuce.cpp.win32.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  450. -@mkdir -p $(OBJDIR)
  451. @echo "Compiling CarlaPluginJuce.cpp (win32 bridge)"
  452. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -std=gnu++14 -c -o $@
  453. endif
  454. $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
  455. -@mkdir -p $(OBJDIR)
  456. @echo "Compiling $< (win32 bridge)"
  457. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  458. $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
  459. -@mkdir -p $(OBJDIR)
  460. @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
  461. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  462. $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
  463. -@mkdir -p $(OBJDIR)
  464. @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
  465. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  466. $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  467. -@mkdir -p $(OBJDIR)
  468. @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
  469. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
  470. # ---------------------------------------------------------------------------------------------------------------------
  471. # win64
  472. ifeq ($(USING_JUCE),true)
  473. $(OBJDIR)/CarlaPluginJuce.cpp.win64.o: $(CWD)/backend/plugin/CarlaPluginJuce.cpp
  474. -@mkdir -p $(OBJDIR)
  475. @echo "Compiling CarlaPluginJuce.cpp (win64 bridge)"
  476. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -std=gnu++14 -c -o $@
  477. endif
  478. $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
  479. -@mkdir -p $(OBJDIR)
  480. @echo "Compiling $< (win64 bridge)"
  481. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  482. $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
  483. -@mkdir -p $(OBJDIR)
  484. @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
  485. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  486. $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
  487. -@mkdir -p $(OBJDIR)
  488. @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
  489. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  490. $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
  491. -@mkdir -p $(OBJDIR)
  492. @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
  493. $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
  494. # ---------------------------------------------------------------------------------------------------------------------
  495. -include $(OBJS_lv2:%.o=%.d)
  496. -include $(OBJS_arm32:%.o=%.d)
  497. -include $(OBJS_posix32:%.o=%.d)
  498. -include $(OBJS_posix64:%.o=%.d)
  499. -include $(OBJS_win32:%.o=%.d)
  500. -include $(OBJS_win64:%.o=%.d)
  501. # ---------------------------------------------------------------------------------------------------------------------