Rename a pipe method, add docs
[carla.git] / source / bridges-plugin / Makefile
blobeab9c7889dfa254083792144f711879394cb652c
1 #!/usr/bin/make -f
2 # Makefile for carla-bridges-plugin #
3 # --------------------------------- #
4 # Created by falkTX
7 CWD=..
8 MODULENAME=carla-bridge
9 include $(CWD)/Makefile.mk
11 # Workaround GCC bug
12 ifeq ($(TESTBUILD),true)
13 ifeq ($(USING_JUCE),true)
14 BUILD_CXX_FLAGS += -Wno-undef
15 # FIXME
16 BUILD_CXX_FLAGS += -Wno-deprecated-declarations
17 endif
18 endif
20 ifneq ($(HAIKU),true)
21 ifneq ($(WASM),true)
22 BUILD_CXX_FLAGS += -pthread
23 endif
24 endif
26 # ---------------------------------------------------------------------------------------------------------------------
28 BINDIR := $(CWD)/../bin
30 ifeq ($(DEBUG),true)
31 OBJDIR := $(CWD)/../build/bridges-plugin/Debug
32 MODULEDIR := $(CWD)/../build/modules/Debug
33 else
34 OBJDIR := $(CWD)/../build/bridges-plugin/Release
35 MODULEDIR := $(CWD)/../build/modules/Release
36 endif
38 # ---------------------------------------------------------------------------------------------------------------------
40 BUILD_CXX_FLAGS += -DBUILD_BRIDGE -I. -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
41 BUILD_CXX_FLAGS += -I$(CWD)/backend/engine -I$(CWD)/backend/plugin
43 BUILD_CXX_FLAGS += -UHAVE_SDL
44 BUILD_CXX_FLAGS += -UUSING_JUCE_AUDIO_DEVICES
45 BUILD_CXX_FLAGS += -UUSING_RTAUDIO
47 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
48 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
49 ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
51 # ---------------------------------------------------------------------------------------------------------------------
53 LIBS_native = $(MODULEDIR)/jackbridge.a
54 LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
55 LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
56 LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
57 ifeq ($(BUILDING_FOR_WINE),true)
58 LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
59 LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
60 else
61 LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
62 LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
63 endif
64 LINK_FLAGS += $(JACKBRIDGE_LIBS)
66 LIBS_native += $(MODULEDIR)/lilv.a
67 LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
68 LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
69 LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
70 LIBS_win32 += $(MODULEDIR)/lilv.win32.a
71 LIBS_win64 += $(MODULEDIR)/lilv.win64.a
72 LINK_FLAGS += $(LILV_LIBS)
74 LIBS_native += $(MODULEDIR)/rtmempool.a
75 LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
76 LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
77 LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
78 LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
79 LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
80 LINK_FLAGS += $(RTMEMPOOL_LIBS)
82 LIBS_native += $(MODULEDIR)/water.a
83 LIBS_arm32 += $(MODULEDIR)/water.arm32.a
84 LIBS_posix32 += $(MODULEDIR)/water.posix32.a
85 LIBS_posix64 += $(MODULEDIR)/water.posix64.a
86 LIBS_win32 += $(MODULEDIR)/water.win32.a
87 LIBS_win64 += $(MODULEDIR)/water.win64.a
88 LINK_FLAGS += $(WATER_LIBS)
90 ifeq ($(HAVE_YSFX),true)
91 LIBS_native += $(MODULEDIR)/ysfx.a
92 LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
93 endif
95 ifeq ($(USING_JUCE),true)
96 LIBS_native += $(MODULEDIR)/carla_juce.a
97 LIBS_native += $(MODULEDIR)/juce_audio_basics.a
98 LIBS_native += $(MODULEDIR)/juce_audio_processors.a
99 LIBS_native += $(MODULEDIR)/juce_core.a
100 LIBS_native += $(MODULEDIR)/juce_data_structures.a
101 LIBS_native += $(MODULEDIR)/juce_events.a
102 LIBS_native += $(MODULEDIR)/juce_graphics.a
103 LIBS_native += $(MODULEDIR)/juce_gui_basics.a
104 LIBS_native += $(MODULEDIR)/juce_gui_extra.a
106 LINK_FLAGS += $(JUCE_AUDIO_BASICS_LIBS)
107 LINK_FLAGS += $(JUCE_AUDIO_PROCESSORS_LIBS)
108 LINK_FLAGS += $(JUCE_CORE_LIBS)
109 LINK_FLAGS += $(JUCE_DATA_STRUCTURES_LIBS)
110 LINK_FLAGS += $(JUCE_EVENTS_LIBS)
111 LINK_FLAGS += $(JUCE_GRAPHICS_LIBS)
112 LINK_FLAGS += $(JUCE_GUI_BASICS_LIBS)
113 LINK_FLAGS += $(JUCE_GUI_EXTRA_LIBS)
114 endif
116 ifeq ($(JACKBRIDGE_DIRECT),true)
117 LINK_FLAGS += $(JACK_LIBS)
118 endif
120 LINK_FLAGS += $(X11_LIBS)
122 # ---------------------------------------------------------------------------------------------------------------------
124 NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
125 NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
127 NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
128 NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
130 NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
131 NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
133 NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
135 LIBS_native += $(MODULEDIR)/audio_decoder.a
136 LIBS_native += $(MODULEDIR)/native-plugins.a
137 ifneq ($(STATIC_PLUGIN_TARGET),true)
138 LIBS_native += $(MODULEDIR)/sfzero.a
139 endif
140 LIBS_native += $(MODULEDIR)/zita-resampler.a
142 ifeq ($(HAVE_DGL),true)
143 ifneq ($(USING_CUSTOM_DPF),true)
144 LIBS_native += $(MODULEDIR)/dgl.a
145 else
146 LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
147 endif
148 endif
150 ifeq ($(WINDOWS),true)
151 EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
152 endif
154 # ---------------------------------------------------------------------------------------------------------------------
156 OBJS_native = \
157 $(OBJDIR)/CarlaBridgePlugin.cpp.o \
158 $(OBJDIR)/CarlaEngine.cpp.o \
159 $(OBJDIR)/CarlaEngineClient.cpp.o \
160 $(OBJDIR)/CarlaEngineData.cpp.o \
161 $(OBJDIR)/CarlaEngineDummy.cpp.o \
162 $(OBJDIR)/CarlaEngineGraph.cpp.o \
163 $(OBJDIR)/CarlaEngineInternal.cpp.o \
164 $(OBJDIR)/CarlaEngineNative.cpp.o \
165 $(OBJDIR)/CarlaEngineOscSend.cpp.o \
166 $(OBJDIR)/CarlaEnginePorts.cpp.o \
167 $(OBJDIR)/CarlaEngineRunner.cpp.o \
168 $(OBJDIR)/CarlaEngineJack.cpp.o \
169 $(OBJDIR)/CarlaEngineBridge.cpp.o \
170 $(OBJDIR)/CarlaPlugin.cpp.o \
171 $(OBJDIR)/CarlaPluginBridge.cpp.o \
172 $(OBJDIR)/CarlaPluginInternal.cpp.o \
173 $(OBJDIR)/CarlaPluginJack.cpp.o \
174 $(OBJDIR)/CarlaPluginNative.cpp.o \
175 $(OBJDIR)/CarlaPluginCLAP.cpp.o \
176 $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
177 $(OBJDIR)/CarlaPluginLV2.cpp.o \
178 $(OBJDIR)/CarlaPluginVST2.cpp.o \
179 $(OBJDIR)/CarlaPluginVST3.cpp.o \
180 $(OBJDIR)/CarlaPluginAU.cpp.o \
181 $(OBJDIR)/CarlaPluginJSFX.cpp.o \
182 $(OBJDIR)/CarlaPluginJuce.cpp.o \
183 $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
184 $(OBJDIR)/CarlaPluginSFZero.cpp.o \
185 $(OBJDIR)/CarlaStandalone.cpp.o
187 OBJS_lv2 = $(OBJS_native) \
188 $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
190 OBJS_arch = \
191 $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
192 $(OBJDIR)/CarlaEngine.cpp.arch.o \
193 $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
194 $(OBJDIR)/CarlaEngineData.cpp.arch.o \
195 $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
196 $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
197 $(OBJDIR)/CarlaEngineRunner.cpp.arch.o \
198 $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
199 $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
200 $(OBJDIR)/CarlaPlugin.cpp.arch.o \
201 $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
202 $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
203 $(OBJDIR)/CarlaPluginCLAP.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)/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)
217 # ---------------------------------------------------------------------------------------------------------------------
219 all: native
221 # ---------------------------------------------------------------------------------------------------------------------
223 clean:
224 rm -f $(OBJDIR)/*.o
225 rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
226 rm -f $(BINDIR)/$(MODULENAME)-posix32
227 rm -f $(BINDIR)/$(MODULENAME)-posix64
228 rm -f $(BINDIR)/$(MODULENAME)-win*.exe
230 debug:
231 $(MAKE) DEBUG=true
233 # ---------------------------------------------------------------------------------------------------------------------
235 native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
236 arm32: $(BINDIR)/$(MODULENAME)-arm32
237 posix32: $(BINDIR)/$(MODULENAME)-posix32
238 posix64: $(BINDIR)/$(MODULENAME)-posix64
239 win32: $(BINDIR)/$(MODULENAME)-win32.exe
240 win64: $(BINDIR)/$(MODULENAME)-win64.exe
242 # ---------------------------------------------------------------------------------------------------------------------
243 # linking
245 $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
246 -@mkdir -p $(BINDIR)
247 @echo "Linking $(MODULENAME)-native$(APP_EXT)"
248 $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
250 $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
251 -@mkdir -p $(BINDIR)
252 @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
253 $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
255 $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
256 -@mkdir -p $(BINDIR)
257 @echo "Linking $(MODULENAME)-arm32"
258 $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
260 $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
261 -@mkdir -p $(BINDIR)
262 @echo "Linking $(MODULENAME)-posix32"
263 $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
265 $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
266 -@mkdir -p $(BINDIR)
267 @echo "Linking $(MODULENAME)-posix64"
268 $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
270 $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
271 -@mkdir -p $(BINDIR)
272 @echo "Linking $(MODULENAME)-win32.exe"
273 $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
275 $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
276 -@mkdir -p $(BINDIR)
277 @echo "Linking $(MODULENAME)-win64.exe"
278 $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
280 # ---------------------------------------------------------------------------------------------------------------------
281 # native
283 $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
284 -@mkdir -p $(OBJDIR)
285 @echo "Compiling $<"
286 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
288 $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
289 -@mkdir -p $(OBJDIR)
290 @echo "Compiling $<"
291 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
293 $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
294 -@mkdir -p $(OBJDIR)
295 @echo "Compiling CarlaStandalone.cpp (bridge)"
296 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
298 $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
299 -@mkdir -p $(OBJDIR)
300 @echo "Compiling CarlaPlug$*.cpp (bridge)"
301 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
303 $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
304 -@mkdir -p $(OBJDIR)
305 @echo "Compiling CarlaEng$*.cpp (bridge)"
306 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
308 $(OBJDIR)/CarlaPluginJSFX.cpp.o: BUILD_CXX_FLAGS += $(YSFX_FLAGS)
310 $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -std=gnu++14
312 ifeq ($(MACOS),true)
313 $(OBJDIR)/CarlaPluginCLAP.cpp.o: BUILD_CXX_FLAGS += -ObjC++
315 $(OBJDIR)/CarlaPluginJuce.cpp.o: BUILD_CXX_FLAGS += -ObjC++
317 $(OBJDIR)/CarlaPluginVST2.cpp.o: BUILD_CXX_FLAGS += -ObjC++
319 $(OBJDIR)/CarlaPluginVST3.cpp.o: BUILD_CXX_FLAGS += -ObjC++
321 $(OBJDIR)/CarlaStandalone.cpp.o: BUILD_CXX_FLAGS += -ObjC++
323 $(OBJDIR)/CarlaBridgePlugin.cpp.o: BUILD_CXX_FLAGS += -ObjC++
324 endif
326 # ---------------------------------------------------------------------------------------------------------------------
327 # arm32
329 $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
330 -@mkdir -p $(OBJDIR)
331 @echo "Compiling $< (arm32 bridge)"
332 $(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 $@
339 $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
340 -@mkdir -p $(OBJDIR)
341 @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
342 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
344 $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
345 -@mkdir -p $(OBJDIR)
346 @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
347 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
349 # ----------------------------------------------------------------------------------------------------------------------
350 # posix32
352 ifeq ($(MACOS),true)
353 $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
354 -@mkdir -p $(OBJDIR)
355 @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
356 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
358 $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
359 -@mkdir -p $(OBJDIR)
360 @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
361 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
363 $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
364 -@mkdir -p $(OBJDIR)
365 @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
366 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
368 $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
369 -@mkdir -p $(OBJDIR)
370 @echo "Compiling $< (posix32 bridge)"
371 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -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) -ObjC++ -c -o $@
377 else
378 $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
379 -@mkdir -p $(OBJDIR)
380 @echo "Compiling $< (posix32 bridge)"
381 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
383 $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
384 -@mkdir -p $(OBJDIR)
385 @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
386 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
387 endif
389 $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
390 -@mkdir -p $(OBJDIR)
391 @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
392 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
394 $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
395 -@mkdir -p $(OBJDIR)
396 @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
397 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
399 # ---------------------------------------------------------------------------------------------------------------------
400 # posix64
402 ifeq ($(MACOS),true)
403 $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
404 -@mkdir -p $(OBJDIR)
405 @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
406 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
408 $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
409 -@mkdir -p $(OBJDIR)
410 @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
411 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
413 $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
414 -@mkdir -p $(OBJDIR)
415 @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
416 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
418 $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
419 -@mkdir -p $(OBJDIR)
420 @echo "Compiling $< (posix64 bridge)"
421 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -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) -ObjC++ -c -o $@
427 else
428 $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
429 -@mkdir -p $(OBJDIR)
430 @echo "Compiling $< (posix64 bridge)"
431 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
433 $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
434 -@mkdir -p $(OBJDIR)
435 @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
436 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
437 endif
439 $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
440 -@mkdir -p $(OBJDIR)
441 @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
442 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
444 $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
445 -@mkdir -p $(OBJDIR)
446 @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
447 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
449 # ---------------------------------------------------------------------------------------------------------------------
450 # win32
452 $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
453 -@mkdir -p $(OBJDIR)
454 @echo "Compiling $< (win32 bridge)"
455 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
457 $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
458 -@mkdir -p $(OBJDIR)
459 @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
460 $(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 $@
467 $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
468 -@mkdir -p $(OBJDIR)
469 @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
470 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
472 # ---------------------------------------------------------------------------------------------------------------------
473 # win64
475 $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
476 -@mkdir -p $(OBJDIR)
477 @echo "Compiling $< (win64 bridge)"
478 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
480 $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
481 -@mkdir -p $(OBJDIR)
482 @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
483 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
485 $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
486 -@mkdir -p $(OBJDIR)
487 @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
488 $(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 $@
495 # ---------------------------------------------------------------------------------------------------------------------
497 -include $(OBJS_lv2:%.o=%.d)
498 -include $(OBJS_arm32:%.o=%.d)
499 -include $(OBJS_posix32:%.o=%.d)
500 -include $(OBJS_posix64:%.o=%.d)
501 -include $(OBJS_win32:%.o=%.d)
502 -include $(OBJS_win64:%.o=%.d)
504 # ---------------------------------------------------------------------------------------------------------------------