2 # Makefile for carla-plugin #
3 # ------------------------- #
10 BUILD_CXX_FLAGS
+= $(MAGIC_FLAGS
)
14 BUILD_CXX_FLAGS
+= -pthread
18 # ---------------------------------------------------------------------------------------------------------------------
21 $(OBJDIR
)/CarlaPlugin.
cpp.o \
22 $(OBJDIR
)/CarlaPluginInternal.
cpp.o \
23 $(OBJDIR
)/CarlaPluginNative.
cpp.o \
24 $(OBJDIR
)/CarlaPluginCLAP.
cpp.o \
25 $(OBJDIR
)/CarlaPluginLADSPADSSI.
cpp.o \
26 $(OBJDIR
)/CarlaPluginLV2.
cpp.o \
27 $(OBJDIR
)/CarlaPluginVST2.
cpp.o \
28 $(OBJDIR
)/CarlaPluginVST3.
cpp.o \
29 $(OBJDIR
)/CarlaPluginAU.
cpp.o \
30 $(OBJDIR
)/CarlaPluginJSFX.
cpp.o \
31 $(OBJDIR
)/CarlaPluginFluidSynth.
cpp.o \
32 $(OBJDIR
)/CarlaPluginSFZero.
cpp.o
34 ifeq ($(HAVE_JACK
),true
)
35 OBJS
+= $(OBJDIR
)/CarlaPluginJack.
cpp.o
39 OBJS
+= $(OBJDIR
)/CarlaPluginBridge.
cpp.o
43 $(MODULEDIR
)/carla_plugin.a
45 # ---------------------------------------------------------------------------------------------------------------------
49 # ---------------------------------------------------------------------------------------------------------------------
52 rm -f
$(OBJS
) $(TARGETS
)
57 # ---------------------------------------------------------------------------------------------------------------------
59 $(MODULEDIR
)/carla_plugin.a
: $(OBJS
)
60 -@mkdir
-p
$(MODULEDIR
)
61 @echo
"Creating carla_plugin.a"
63 $(SILENT
)$(AR
) crs
$@
$^
65 # ---------------------------------------------------------------------------------------------------------------------
67 $(OBJDIR
)/CarlaPluginFluidSynth.
cpp.o
: CarlaPluginFluidSynth.
cpp
70 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) $(FLUIDSYNTH_FLAGS
) -c
-o
$@
72 $(OBJDIR
)/CarlaPluginJSFX.
cpp.o
: CarlaPluginJSFX.
cpp
75 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) $(YSFX_FLAGS
) -c
-o
$@
78 $(OBJDIR
)/CarlaPluginVST2.
cpp.o
: CarlaPluginVST2.
cpp
81 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -ObjC
++ -c
-o
$@
83 $(OBJDIR
)/CarlaPluginVST3.
cpp.o
: CarlaPluginVST3.
cpp
86 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -ObjC
++ -c
-o
$@
88 $(OBJDIR
)/CarlaPluginCLAP.
cpp.o
: CarlaPluginCLAP.
cpp
91 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -ObjC
++ -c
-o
$@
94 $(OBJDIR
)/%.
cpp.o
: %.
cpp
97 $(SILENT
)$(CXX
) $< $(BUILD_CXX_FLAGS
) -c
-o
$@
99 -include $(OBJS
:%.o
=%.d
)
101 # ---------------------------------------------------------------------------------------------------------------------