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