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