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
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. endif
  14. endif
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. BINDIR := $(CWD)/../bin
  17. ifeq ($(DEBUG),true)
  18. OBJDIR := $(CWD)/../build/bridges-plugin/Debug
  19. MODULEDIR := $(CWD)/../build/modules/Debug
  20. else
  21. OBJDIR := $(CWD)/../build/bridges-plugin/Release
  22. MODULEDIR := $(CWD)/../build/modules/Release
  23. endif
  24. # ---------------------------------------------------------------------------------------------------------------------
  25. BUILD_CXX_FLAGS += -DBUILD_BRIDGE -I. -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
  26. BUILD_CXX_FLAGS += -I$(CWD)/backend/engine -I$(CWD)/backend/plugin
  27. 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  28. 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  29. ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
  30. # ---------------------------------------------------------------------------------------------------------------------
  31. LIBS_native = $(MODULEDIR)/jackbridge.a
  32. LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
  33. LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
  34. LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
  35. ifeq ($(BUILDING_FOR_WINDOWS),true)
  36. LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
  37. LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
  38. else
  39. LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
  40. LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
  41. endif
  42. LINK_FLAGS += $(JACKBRIDGE_LIBS)
  43. LIBS_native += $(MODULEDIR)/lilv.a
  44. LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
  45. LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
  46. LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
  47. LIBS_win32 += $(MODULEDIR)/lilv.win32.a
  48. LIBS_win64 += $(MODULEDIR)/lilv.win64.a
  49. LINK_FLAGS += $(LILV_LIBS)
  50. LIBS_native += $(MODULEDIR)/rtmempool.a
  51. LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
  52. LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
  53. LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
  54. LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
  55. LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
  56. LINK_FLAGS += $(RTMEMPOOL_LIBS)
  57. LIBS_native += $(MODULEDIR)/water.a
  58. LIBS_arm32 += $(MODULEDIR)/water.arm32.a
  59. LIBS_posix32 += $(MODULEDIR)/water.posix32.a
  60. LIBS_posix64 += $(MODULEDIR)/water.posix64.a
  61. LIBS_win32 += $(MODULEDIR)/water.win32.a
  62. LIBS_win64 += $(MODULEDIR)/water.win64.a
  63. LINK_FLAGS += $(WATER_LIBS)
  64. ifeq ($(USING_JUCE),true)
  65. LIBS_native += $(MODULEDIR)/juce_audio_basics.a
  66. LIBS_posix32 += $(MODULEDIR)/juce_audio_basics.posix32.a
  67. LIBS_posix64 += $(MODULEDIR)/juce_audio_basics.posix64.a
  68. LIBS_win32 += $(MODULEDIR)/juce_audio_basics.win32.a
  69. LIBS_win64 += $(MODULEDIR)/juce_audio_basics.win64.a
  70. LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
  71. LIBS_native += $(MODULEDIR)/juce_audio_processors.a
  72. LIBS_posix32 += $(MODULEDIR)/juce_audio_processors.posix32.a
  73. LIBS_posix64 += $(MODULEDIR)/juce_audio_processors.posix64.a
  74. LIBS_win32 += $(MODULEDIR)/juce_audio_processors.win32.a
  75. LIBS_win64 += $(MODULEDIR)/juce_audio_processors.win64.a
  76. LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
  77. LIBS_native += $(MODULEDIR)/juce_core.a
  78. LIBS_posix32 += $(MODULEDIR)/juce_core.posix32.a
  79. LIBS_posix64 += $(MODULEDIR)/juce_core.posix64.a
  80. LIBS_win32 += $(MODULEDIR)/juce_core.win32.a
  81. LIBS_win64 += $(MODULEDIR)/juce_core.win64.a
  82. LINK_FLAGS += $(JUCE_CORE_LIBS)
  83. LIBS_native += $(MODULEDIR)/juce_data_structures.a
  84. LIBS_posix32 += $(MODULEDIR)/juce_data_structures.posix32.a
  85. LIBS_posix64 += $(MODULEDIR)/juce_data_structures.posix64.a
  86. LIBS_win32 += $(MODULEDIR)/juce_data_structures.win32.a
  87. LIBS_win64 += $(MODULEDIR)/juce_data_structures.win64.a
  88. LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
  89. LIBS_native += $(MODULEDIR)/juce_events.a
  90. LIBS_posix32 += $(MODULEDIR)/juce_events.posix32.a
  91. LIBS_posix64 += $(MODULEDIR)/juce_events.posix64.a
  92. LIBS_win32 += $(MODULEDIR)/juce_events.win32.a
  93. LIBS_win64 += $(MODULEDIR)/juce_events.win64.a
  94. LINK_FLAGS += $(JUCE_EVENTS_LIBS)
  95. LIBS_native += $(MODULEDIR)/juce_graphics.a
  96. LIBS_posix32 += $(MODULEDIR)/juce_graphics.posix32.a
  97. LIBS_posix64 += $(MODULEDIR)/juce_graphics.posix64.a
  98. LIBS_win32 += $(MODULEDIR)/juce_graphics.win32.a
  99. LIBS_win64 += $(MODULEDIR)/juce_graphics.win64.a
  100. LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
  101. LIBS_native += $(MODULEDIR)/juce_gui_basics.a
  102. LIBS_posix32 += $(MODULEDIR)/juce_gui_basics.posix32.a
  103. LIBS_posix64 += $(MODULEDIR)/juce_gui_basics.posix64.a
  104. LIBS_win32 += $(MODULEDIR)/juce_gui_basics.win32.a
  105. LIBS_win64 += $(MODULEDIR)/juce_gui_basics.win64.a
  106. LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
  107. ifeq ($(MACOS),true)
  108. LIBS_native += $(MODULEDIR)/juce_gui_extra.a
  109. LIBS_posix32 += $(MODULEDIR)/juce_gui_extra.posix32.a
  110. LIBS_posix64 += $(MODULEDIR)/juce_gui_extra.posix64.a
  111. LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
  112. endif
  113. endif
  114. ifeq ($(JACKBRIDGE_DIRECT),true)
  115. LINK_FLAGS += $(JACK_LIBS)
  116. endif
  117. LINK_FLAGS += $(X11_LIBS)
  118. # ---------------------------------------------------------------------------------------------------------------------
  119. NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
  120. NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
  121. NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
  122. NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
  123. NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
  124. NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
  125. NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
  126. LIBS_native += $(MODULEDIR)/audio_decoder.a
  127. LIBS_native += $(MODULEDIR)/native-plugins.a
  128. LIBS_native += $(MODULEDIR)/sfzero.a
  129. ifeq ($(HAVE_DGL),true)
  130. LIBS_native += $(MODULEDIR)/dgl.a
  131. endif
  132. ifeq ($(WIN32),true)
  133. EXTRA_LINK_FLAGS += -lole32 -mwindows
  134. endif
  135. # ---------------------------------------------------------------------------------------------------------------------
  136. OBJS_native = \
  137. $(OBJDIR)/CarlaBridgePlugin.cpp.o \
  138. $(OBJDIR)/CarlaEngine.cpp.o \
  139. $(OBJDIR)/CarlaEngineClient.cpp.o \
  140. $(OBJDIR)/CarlaEngineData.cpp.o \
  141. $(OBJDIR)/CarlaEngineDummy.cpp.o \
  142. $(OBJDIR)/CarlaEngineGraph.cpp.o \
  143. $(OBJDIR)/CarlaEngineInternal.cpp.o \
  144. $(OBJDIR)/CarlaEngineNative.cpp.o \
  145. $(OBJDIR)/CarlaEngineOscSend.cpp.o \
  146. $(OBJDIR)/CarlaEnginePorts.cpp.o \
  147. $(OBJDIR)/CarlaEngineThread.cpp.o \
  148. $(OBJDIR)/CarlaEngineJack.cpp.o \
  149. $(OBJDIR)/CarlaEngineBridge.cpp.o \
  150. $(OBJDIR)/CarlaPlugin.cpp.o \
  151. $(OBJDIR)/CarlaPluginBridge.cpp.o \
  152. $(OBJDIR)/CarlaPluginInternal.cpp.o \
  153. $(OBJDIR)/CarlaPluginJack.cpp.o \
  154. $(OBJDIR)/CarlaPluginNative.cpp.o \
  155. $(OBJDIR)/CarlaPluginLADSPA.cpp.o \
  156. $(OBJDIR)/CarlaPluginDSSI.cpp.o \
  157. $(OBJDIR)/CarlaPluginLV2.cpp.o \
  158. $(OBJDIR)/CarlaPluginVST2.cpp.o \
  159. $(OBJDIR)/CarlaPluginVST3.cpp.o \
  160. $(OBJDIR)/CarlaPluginAU.cpp.o \
  161. $(OBJDIR)/CarlaPluginJuce.cpp.o \
  162. $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
  163. $(OBJDIR)/CarlaPluginSFZero.cpp.o \
  164. $(OBJDIR)/CarlaStandalone.cpp.o
  165. OBJS_lv2 = $(OBJS_native) \
  166. $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
  167. OBJS_arch = \
  168. $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
  169. $(OBJDIR)/CarlaEngine.cpp.arch.o \
  170. $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
  171. $(OBJDIR)/CarlaEngineData.cpp.arch.o \
  172. $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
  173. $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
  174. $(OBJDIR)/CarlaEngineThread.cpp.arch.o \
  175. $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
  176. $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
  177. $(OBJDIR)/CarlaPlugin.cpp.arch.o \
  178. $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
  179. $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
  180. $(OBJDIR)/CarlaPluginLADSPA.cpp.arch.o \
  181. $(OBJDIR)/CarlaPluginDSSI.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. # ---------------------------------------------------------------------------------------------------------------------