A few more tweaks for AU hosting, WIP
[carla.git] / source / bridges-plugin / Makefile
blob1b6431752cf42ad0ad3eaa70e74ba9f5533073b5
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 ifneq ($(HAIKU),true)
12 ifneq ($(WASM),true)
13 BUILD_CXX_FLAGS += -pthread
14 endif
15 endif
17 # ---------------------------------------------------------------------------------------------------------------------
19 BINDIR := $(CWD)/../bin
21 ifeq ($(DEBUG),true)
22 OBJDIR := $(CWD)/../build/bridges-plugin/Debug
23 MODULEDIR := $(CWD)/../build/modules/Debug
24 else
25 OBJDIR := $(CWD)/../build/bridges-plugin/Release
26 MODULEDIR := $(CWD)/../build/modules/Release
27 endif
29 # ---------------------------------------------------------------------------------------------------------------------
31 BUILD_CXX_FLAGS += -DBUILD_BRIDGE -I. -I$(CWD) -I$(CWD)/backend -I$(CWD)/includes -I$(CWD)/modules -I$(CWD)/utils
32 BUILD_CXX_FLAGS += -I$(CWD)/backend/engine -I$(CWD)/backend/plugin
34 BUILD_CXX_FLAGS += -UHAVE_SDL
35 BUILD_CXX_FLAGS += -UUSING_RTAUDIO
37 32BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
38 64BIT_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
39 ARM32_FLAGS += -DBUILD_BRIDGE_ALTERNATIVE_ARCH
41 # ---------------------------------------------------------------------------------------------------------------------
43 LIBS_native = $(MODULEDIR)/jackbridge.a
44 LIBS_arm32 = $(MODULEDIR)/jackbridge.arm32.a
45 LIBS_posix32 = $(MODULEDIR)/jackbridge.posix32.a
46 LIBS_posix64 = $(MODULEDIR)/jackbridge.posix64.a
47 ifeq ($(BUILDING_FOR_WINE),true)
48 LIBS_win32 = $(MODULEDIR)/jackbridge.win32e.a
49 LIBS_win64 = $(MODULEDIR)/jackbridge.win64e.a
50 else
51 LIBS_win32 = $(MODULEDIR)/jackbridge.win32.a
52 LIBS_win64 = $(MODULEDIR)/jackbridge.win64.a
53 endif
54 LINK_FLAGS += $(JACKBRIDGE_LIBS)
56 LIBS_native += $(MODULEDIR)/lilv.a
57 LIBS_arm32 += $(MODULEDIR)/lilv.arm32.a
58 LIBS_posix32 += $(MODULEDIR)/lilv.posix32.a
59 LIBS_posix64 += $(MODULEDIR)/lilv.posix64.a
60 LIBS_win32 += $(MODULEDIR)/lilv.win32.a
61 LIBS_win64 += $(MODULEDIR)/lilv.win64.a
62 LINK_FLAGS += $(LILV_LIBS)
64 LIBS_native += $(MODULEDIR)/rtmempool.a
65 LIBS_arm32 += $(MODULEDIR)/rtmempool.arm32.a
66 LIBS_posix32 += $(MODULEDIR)/rtmempool.posix32.a
67 LIBS_posix64 += $(MODULEDIR)/rtmempool.posix64.a
68 LIBS_win32 += $(MODULEDIR)/rtmempool.win32.a
69 LIBS_win64 += $(MODULEDIR)/rtmempool.win64.a
70 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)
80 ifeq ($(HAVE_YSFX),true)
81 LIBS_native += $(MODULEDIR)/ysfx.a
82 LINK_FLAGS += $(YSFX_GRAPHICS_LIBS)
83 endif
85 ifeq ($(JACKBRIDGE_DIRECT),true)
86 LINK_FLAGS += $(JACK_LIBS)
87 endif
89 LINK_FLAGS += $(X11_LIBS)
91 # ---------------------------------------------------------------------------------------------------------------------
93 NATIVE_BUILD_FLAGS = $(NATIVE_PLUGINS_FLAGS)
94 NATIVE_LINK_FLAGS = $(NATIVE_PLUGINS_LIBS)
96 NATIVE_BUILD_FLAGS += $(LIBLO_FLAGS)
97 NATIVE_LINK_FLAGS += $(LIBLO_LIBS)
99 NATIVE_BUILD_FLAGS += $(FLUIDSYNTH_FLAGS)
100 NATIVE_LINK_FLAGS += $(FLUIDSYNTH_LIBS)
102 NATIVE_BUILD_FLAGS += $(MAGIC_FLAGS)
103 NATIVE_LINK_FLAGS += $(MAGIC_LIBS)
105 LIBS_native += $(MODULEDIR)/audio_decoder.a
106 LIBS_native += $(MODULEDIR)/native-plugins.a
107 ifneq ($(STATIC_PLUGIN_TARGET),true)
108 LIBS_native += $(MODULEDIR)/sfzero.a
109 endif
110 LIBS_native += $(MODULEDIR)/zita-resampler.a
112 ifeq ($(HAVE_DGL),true)
113 ifneq ($(USING_CUSTOM_DPF),true)
114 LIBS_native += $(MODULEDIR)/dgl.a
115 else
116 LIBS_native += $(CUSTOM_DPF_PATH)/build/libdgl-opengl.a
117 endif
118 endif
120 ifeq ($(WINDOWS),true)
121 EXTRA_LINK_FLAGS += -lole32 -lssp -mwindows
122 endif
124 # ---------------------------------------------------------------------------------------------------------------------
126 OBJS_native = \
127 $(OBJDIR)/CarlaBridgePlugin.cpp.o \
128 $(OBJDIR)/CarlaEngine.cpp.o \
129 $(OBJDIR)/CarlaEngineClient.cpp.o \
130 $(OBJDIR)/CarlaEngineData.cpp.o \
131 $(OBJDIR)/CarlaEngineDummy.cpp.o \
132 $(OBJDIR)/CarlaEngineGraph.cpp.o \
133 $(OBJDIR)/CarlaEngineInternal.cpp.o \
134 $(OBJDIR)/CarlaEngineNative.cpp.o \
135 $(OBJDIR)/CarlaEngineOscSend.cpp.o \
136 $(OBJDIR)/CarlaEnginePorts.cpp.o \
137 $(OBJDIR)/CarlaEngineRunner.cpp.o \
138 $(OBJDIR)/CarlaEngineJack.cpp.o \
139 $(OBJDIR)/CarlaEngineBridge.cpp.o \
140 $(OBJDIR)/CarlaPlugin.cpp.o \
141 $(OBJDIR)/CarlaPluginBridge.cpp.o \
142 $(OBJDIR)/CarlaPluginInternal.cpp.o \
143 $(OBJDIR)/CarlaPluginJack.cpp.o \
144 $(OBJDIR)/CarlaPluginNative.cpp.o \
145 $(OBJDIR)/CarlaPluginCLAP.cpp.o \
146 $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.o \
147 $(OBJDIR)/CarlaPluginLV2.cpp.o \
148 $(OBJDIR)/CarlaPluginVST2.cpp.o \
149 $(OBJDIR)/CarlaPluginVST3.cpp.o \
150 $(OBJDIR)/CarlaPluginAU.cpp.o \
151 $(OBJDIR)/CarlaPluginJSFX.cpp.o \
152 $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
153 $(OBJDIR)/CarlaPluginSFZero.cpp.o \
154 $(OBJDIR)/CarlaStandalone.cpp.o
156 OBJS_lv2 = $(OBJS_native) \
157 $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o
159 OBJS_arch = \
160 $(OBJDIR)/CarlaBridgePlugin.cpp.arch.o \
161 $(OBJDIR)/CarlaEngine.cpp.arch.o \
162 $(OBJDIR)/CarlaEngineClient.cpp.arch.o \
163 $(OBJDIR)/CarlaEngineData.cpp.arch.o \
164 $(OBJDIR)/CarlaEngineInternal.cpp.arch.o \
165 $(OBJDIR)/CarlaEnginePorts.cpp.arch.o \
166 $(OBJDIR)/CarlaEngineRunner.cpp.arch.o \
167 $(OBJDIR)/CarlaEngineJack.cpp.arch.o \
168 $(OBJDIR)/CarlaEngineBridge.cpp.arch.o \
169 $(OBJDIR)/CarlaPlugin.cpp.arch.o \
170 $(OBJDIR)/CarlaPluginBridge.cpp.arch.o \
171 $(OBJDIR)/CarlaPluginInternal.cpp.arch.o \
172 $(OBJDIR)/CarlaPluginCLAP.cpp.arch.o \
173 $(OBJDIR)/CarlaPluginLADSPADSSI.cpp.arch.o \
174 $(OBJDIR)/CarlaPluginLV2.cpp.arch.o \
175 $(OBJDIR)/CarlaPluginVST2.cpp.arch.o \
176 $(OBJDIR)/CarlaPluginVST3.cpp.arch.o \
177 $(OBJDIR)/CarlaPluginAU.cpp.arch.o \
178 $(OBJDIR)/CarlaStandalone.cpp.arch.o
180 OBJS_arm32 = $(OBJS_arch:%.arch.o=%.arm32.o)
181 OBJS_posix32 = $(OBJS_arch:%.arch.o=%.posix32.o)
182 OBJS_posix64 = $(OBJS_arch:%.arch.o=%.posix64.o)
183 OBJS_win32 = $(OBJS_arch:%.arch.o=%.win32.o)
184 OBJS_win64 = $(OBJS_arch:%.arch.o=%.win64.o)
186 # ---------------------------------------------------------------------------------------------------------------------
188 all: native
190 # ---------------------------------------------------------------------------------------------------------------------
192 clean:
193 rm -f $(OBJDIR)/*.o
194 rm -f $(BINDIR)/$(MODULENAME)-native$(APP_EXT)
195 rm -f $(BINDIR)/$(MODULENAME)-posix32
196 rm -f $(BINDIR)/$(MODULENAME)-posix64
197 rm -f $(BINDIR)/$(MODULENAME)-win*.exe
199 debug:
200 $(MAKE) DEBUG=true
202 # ---------------------------------------------------------------------------------------------------------------------
204 native: $(BINDIR)/$(MODULENAME)-native$(APP_EXT) $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT)
205 arm32: $(BINDIR)/$(MODULENAME)-arm32
206 posix32: $(BINDIR)/$(MODULENAME)-posix32
207 posix64: $(BINDIR)/$(MODULENAME)-posix64
208 win32: $(BINDIR)/$(MODULENAME)-win32.exe
209 win64: $(BINDIR)/$(MODULENAME)-win64.exe
211 # ---------------------------------------------------------------------------------------------------------------------
212 # linking
214 $(BINDIR)/$(MODULENAME)-native$(APP_EXT): $(OBJS_native) $(LIBS_native)
215 -@mkdir -p $(BINDIR)
216 @echo "Linking $(MODULENAME)-native$(APP_EXT)"
217 $(SILENT)$(CXX) $(OBJS_native) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
219 $(BINDIR)/$(MODULENAME)-lv2$(LIB_EXT): $(OBJS_lv2) $(LIBS_native)
220 -@mkdir -p $(BINDIR)
221 @echo "Linking $(MODULENAME)-lv2$(LIB_EXT)"
222 $(SILENT)$(CXX) $(OBJS_lv2) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_native) $(LIBS_END) $(SHARED) $(LINK_FLAGS) $(NATIVE_LINK_FLAGS) -o $@
224 $(BINDIR)/$(MODULENAME)-arm32: $(OBJS_arm32) $(LIBS_arm32)
225 -@mkdir -p $(BINDIR)
226 @echo "Linking $(MODULENAME)-arm32"
227 $(SILENT)$(CXX) $(OBJS_arm32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_arm32) $(LIBS_END) $(LINK_FLAGS) $(ARM32_FLAGS) -o $@
229 $(BINDIR)/$(MODULENAME)-posix32: $(OBJS_posix32) $(LIBS_posix32)
230 -@mkdir -p $(BINDIR)
231 @echo "Linking $(MODULENAME)-posix32"
232 $(SILENT)$(CXX) $(OBJS_posix32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix32) $(LIBS_END) $(LINK_FLAGS) $(32BIT_FLAGS) -o $@
234 $(BINDIR)/$(MODULENAME)-posix64: $(OBJS_posix64) $(LIBS_posix64)
235 -@mkdir -p $(BINDIR)
236 @echo "Linking $(MODULENAME)-posix64"
237 $(SILENT)$(CXX) $(OBJS_posix64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_posix64) $(LIBS_END) $(LINK_FLAGS) $(64BIT_FLAGS) -o $@
239 $(BINDIR)/$(MODULENAME)-win32.exe: $(OBJS_win32) $(LIBS_win32)
240 -@mkdir -p $(BINDIR)
241 @echo "Linking $(MODULENAME)-win32.exe"
242 $(SILENT)$(CXX) $(OBJS_win32) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win32) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(32BIT_FLAGS) -o $@
244 $(BINDIR)/$(MODULENAME)-win64.exe: $(OBJS_win64) $(LIBS_win64)
245 -@mkdir -p $(BINDIR)
246 @echo "Linking $(MODULENAME)-win64.exe"
247 $(SILENT)$(CXX) $(OBJS_win64) $(BUILD_CXX_FLAGS) $(LIBS_START) $(LIBS_win64) $(LIBS_END) $(LINK_FLAGS) $(EXTRA_LINK_FLAGS) $(64BIT_FLAGS) -o $@
249 # ---------------------------------------------------------------------------------------------------------------------
250 # native
252 $(OBJDIR)/CarlaBridgePlugin.cpp.o: CarlaBridgePlugin.cpp
253 -@mkdir -p $(OBJDIR)
254 @echo "Compiling $<"
255 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
257 $(OBJDIR)/CarlaBridgeSingleLV2.cpp.o: CarlaBridgeSingleLV2.cpp
258 -@mkdir -p $(OBJDIR)
259 @echo "Compiling $<"
260 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
262 $(OBJDIR)/CarlaStandalone.cpp.o: $(CWD)/backend/CarlaStandalone.cpp
263 -@mkdir -p $(OBJDIR)
264 @echo "Compiling CarlaStandalone.cpp (bridge)"
265 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
267 $(OBJDIR)/CarlaPlug%.cpp.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
268 -@mkdir -p $(OBJDIR)
269 @echo "Compiling CarlaPlug$*.cpp (bridge)"
270 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
272 $(OBJDIR)/CarlaEng%.cpp.o: $(CWD)/backend/engine/CarlaEng%.cpp
273 -@mkdir -p $(OBJDIR)
274 @echo "Compiling CarlaEng$*.cpp (bridge)"
275 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(NATIVE_BUILD_FLAGS) -c -o $@
277 $(OBJDIR)/CarlaPluginJSFX.cpp.o: BUILD_CXX_FLAGS += $(YSFX_FLAGS)
279 ifeq ($(MACOS),true)
280 $(OBJDIR)/CarlaPluginAU.cpp.o: BUILD_CXX_FLAGS += -ObjC++
282 $(OBJDIR)/CarlaPluginCLAP.cpp.o: BUILD_CXX_FLAGS += -ObjC++
284 $(OBJDIR)/CarlaPluginVST2.cpp.o: BUILD_CXX_FLAGS += -ObjC++
286 $(OBJDIR)/CarlaPluginVST3.cpp.o: BUILD_CXX_FLAGS += -ObjC++
288 $(OBJDIR)/CarlaStandalone.cpp.o: BUILD_CXX_FLAGS += -ObjC++
290 $(OBJDIR)/CarlaBridgePlugin.cpp.o: BUILD_CXX_FLAGS += -ObjC++
291 endif
293 # ---------------------------------------------------------------------------------------------------------------------
294 # arm32
296 $(OBJDIR)/CarlaBridgePlugin.cpp.arm32.o: CarlaBridgePlugin.cpp
297 -@mkdir -p $(OBJDIR)
298 @echo "Compiling $< (arm32 bridge)"
299 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
301 $(OBJDIR)/CarlaStandalone.cpp.arm32.o: $(CWD)/backend/CarlaStandalone.cpp
302 -@mkdir -p $(OBJDIR)
303 @echo "Compiling CarlaStandalone.cpp (arm32 bridge)"
304 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
306 $(OBJDIR)/CarlaEng%.cpp.arm32.o: $(CWD)/backend/engine/CarlaEng%.cpp
307 -@mkdir -p $(OBJDIR)
308 @echo "Compiling CarlaEng$*.cpp (arm32 bridge)"
309 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
311 $(OBJDIR)/CarlaPlug%.cpp.arm32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
312 -@mkdir -p $(OBJDIR)
313 @echo "Compiling CarlaPlug$*.cpp (arm32 bridge)"
314 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(ARM32_FLAGS) -c -o $@
316 # ----------------------------------------------------------------------------------------------------------------------
317 # posix32
319 ifeq ($(MACOS),true)
320 $(OBJDIR)/CarlaPluginVST2.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
321 -@mkdir -p $(OBJDIR)
322 @echo "Compiling CarlaPluginVST2.cpp (posix32 bridge)"
323 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
325 $(OBJDIR)/CarlaPluginVST3.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
326 -@mkdir -p $(OBJDIR)
327 @echo "Compiling CarlaPluginVST3.cpp (posix32 bridge)"
328 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
330 $(OBJDIR)/CarlaPluginCLAP.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
331 -@mkdir -p $(OBJDIR)
332 @echo "Compiling CarlaPluginCLAP.cpp (posix32 bridge)"
333 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
335 $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
336 -@mkdir -p $(OBJDIR)
337 @echo "Compiling $< (posix32 bridge)"
338 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
340 $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
341 -@mkdir -p $(OBJDIR)
342 @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
343 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -ObjC++ -c -o $@
344 else
345 $(OBJDIR)/CarlaBridgePlugin.cpp.posix32.o: CarlaBridgePlugin.cpp
346 -@mkdir -p $(OBJDIR)
347 @echo "Compiling $< (posix32 bridge)"
348 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
350 $(OBJDIR)/CarlaStandalone.cpp.posix32.o: $(CWD)/backend/CarlaStandalone.cpp
351 -@mkdir -p $(OBJDIR)
352 @echo "Compiling CarlaStandalone.cpp (posix32 bridge)"
353 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
354 endif
356 $(OBJDIR)/CarlaEng%.cpp.posix32.o: $(CWD)/backend/engine/CarlaEng%.cpp
357 -@mkdir -p $(OBJDIR)
358 @echo "Compiling CarlaEng$*.cpp (posix32 bridge)"
359 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
361 $(OBJDIR)/CarlaPlug%.cpp.posix32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
362 -@mkdir -p $(OBJDIR)
363 @echo "Compiling CarlaPlug$*.cpp (posix32 bridge)"
364 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
366 # ---------------------------------------------------------------------------------------------------------------------
367 # posix64
369 ifeq ($(MACOS),true)
370 $(OBJDIR)/CarlaPluginVST2.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST2.cpp
371 -@mkdir -p $(OBJDIR)
372 @echo "Compiling CarlaPluginVST2.cpp (posix64 bridge)"
373 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
375 $(OBJDIR)/CarlaPluginVST3.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginVST3.cpp
376 -@mkdir -p $(OBJDIR)
377 @echo "Compiling CarlaPluginVST3.cpp (posix64 bridge)"
378 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
380 $(OBJDIR)/CarlaPluginCLAP.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPluginCLAP.cpp
381 -@mkdir -p $(OBJDIR)
382 @echo "Compiling CarlaPluginCLAP.cpp (posix64 bridge)"
383 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
385 $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
386 -@mkdir -p $(OBJDIR)
387 @echo "Compiling $< (posix64 bridge)"
388 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
390 $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
391 -@mkdir -p $(OBJDIR)
392 @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
393 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -ObjC++ -c -o $@
394 else
395 $(OBJDIR)/CarlaBridgePlugin.cpp.posix64.o: CarlaBridgePlugin.cpp
396 -@mkdir -p $(OBJDIR)
397 @echo "Compiling $< (posix64 bridge)"
398 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
400 $(OBJDIR)/CarlaStandalone.cpp.posix64.o: $(CWD)/backend/CarlaStandalone.cpp
401 -@mkdir -p $(OBJDIR)
402 @echo "Compiling CarlaStandalone.cpp (posix64 bridge)"
403 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
404 endif
406 $(OBJDIR)/CarlaEng%.cpp.posix64.o: $(CWD)/backend/engine/CarlaEng%.cpp
407 -@mkdir -p $(OBJDIR)
408 @echo "Compiling CarlaEng$*.cpp (posix64 bridge)"
409 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
411 $(OBJDIR)/CarlaPlug%.cpp.posix64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
412 -@mkdir -p $(OBJDIR)
413 @echo "Compiling CarlaPlug$*.cpp (posix64 bridge)"
414 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
416 # ---------------------------------------------------------------------------------------------------------------------
417 # win32
419 $(OBJDIR)/CarlaBridgePlugin.cpp.win32.o: CarlaBridgePlugin.cpp
420 -@mkdir -p $(OBJDIR)
421 @echo "Compiling $< (win32 bridge)"
422 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
424 $(OBJDIR)/CarlaStandalone.cpp.win32.o: $(CWD)/backend/CarlaStandalone.cpp
425 -@mkdir -p $(OBJDIR)
426 @echo "Compiling CarlaStandalone.cpp (win32 bridge)"
427 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
429 $(OBJDIR)/CarlaEng%.cpp.win32.o: $(CWD)/backend/engine/CarlaEng%.cpp
430 -@mkdir -p $(OBJDIR)
431 @echo "Compiling CarlaEng$*.cpp (win32 bridge)"
432 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
434 $(OBJDIR)/CarlaPlug%.cpp.win32.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
435 -@mkdir -p $(OBJDIR)
436 @echo "Compiling CarlaPlug$*.cpp (win32 bridge)"
437 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(32BIT_FLAGS) -c -o $@
439 # ---------------------------------------------------------------------------------------------------------------------
440 # win64
442 $(OBJDIR)/CarlaBridgePlugin.cpp.win64.o: CarlaBridgePlugin.cpp
443 -@mkdir -p $(OBJDIR)
444 @echo "Compiling $< (win64 bridge)"
445 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
447 $(OBJDIR)/CarlaStandalone.cpp.win64.o: $(CWD)/backend/CarlaStandalone.cpp
448 -@mkdir -p $(OBJDIR)
449 @echo "Compiling CarlaStandalone.cpp (win64 bridge)"
450 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
452 $(OBJDIR)/CarlaEng%.cpp.win64.o: $(CWD)/backend/engine/CarlaEng%.cpp
453 -@mkdir -p $(OBJDIR)
454 @echo "Compiling CarlaEng$*.cpp (win64 bridge)"
455 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
457 $(OBJDIR)/CarlaPlug%.cpp.win64.o: $(CWD)/backend/plugin/CarlaPlug%.cpp
458 -@mkdir -p $(OBJDIR)
459 @echo "Compiling CarlaPlug$*.cpp (win64 bridge)"
460 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(64BIT_FLAGS) -c -o $@
462 # ---------------------------------------------------------------------------------------------------------------------
464 -include $(OBJS_lv2:%.o=%.d)
465 -include $(OBJS_arm32:%.o=%.d)
466 -include $(OBJS_posix32:%.o=%.d)
467 -include $(OBJS_posix64:%.o=%.d)
468 -include $(OBJS_win32:%.o=%.d)
469 -include $(OBJS_win64:%.o=%.d)
471 # ---------------------------------------------------------------------------------------------------------------------