Remove juce completely, cleanup
[carla.git] / source / backend / plugin / Makefile
blobdf7437be705c4f1a4d55991dbfb4c10a3e8d7c1b
1 #!/usr/bin/make -f
2 # Makefile for carla-plugin #
3 # ------------------------- #
4 # Created by falkTX
7 CWD=../..
8 include ../Makefile.mk
10 BUILD_CXX_FLAGS += $(MAGIC_FLAGS)
12 ifneq ($(HAIKU),true)
13 ifneq ($(WASM),true)
14 BUILD_CXX_FLAGS += -pthread
15 endif
16 endif
18 # ---------------------------------------------------------------------------------------------------------------------
20 OBJS = \
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
36 endif
38 ifneq ($(WASM),true)
39 OBJS += $(OBJDIR)/CarlaPluginBridge.cpp.o
40 endif
42 TARGETS = \
43 $(MODULEDIR)/carla_plugin.a
45 # ---------------------------------------------------------------------------------------------------------------------
47 all: $(TARGETS)
49 # ---------------------------------------------------------------------------------------------------------------------
51 clean:
52 rm -f $(OBJS) $(TARGETS)
54 debug:
55 $(MAKE) DEBUG=true
57 # ---------------------------------------------------------------------------------------------------------------------
59 $(MODULEDIR)/carla_plugin.a: $(OBJS)
60 -@mkdir -p $(MODULEDIR)
61 @echo "Creating carla_plugin.a"
62 $(SILENT)rm -f $@
63 $(SILENT)$(AR) crs $@ $^
65 # ---------------------------------------------------------------------------------------------------------------------
67 $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
68 -@mkdir -p $(OBJDIR)
69 @echo "Compiling $<"
70 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
72 $(OBJDIR)/CarlaPluginJSFX.cpp.o: CarlaPluginJSFX.cpp
73 -@mkdir -p $(OBJDIR)
74 @echo "Compiling $<"
75 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) $(YSFX_FLAGS) -c -o $@
77 ifeq ($(MACOS),true)
78 $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
79 -@mkdir -p $(OBJDIR)
80 @echo "Compiling $<"
81 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
83 $(OBJDIR)/CarlaPluginVST3.cpp.o: CarlaPluginVST3.cpp
84 -@mkdir -p $(OBJDIR)
85 @echo "Compiling $<"
86 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
88 $(OBJDIR)/CarlaPluginCLAP.cpp.o: CarlaPluginCLAP.cpp
89 -@mkdir -p $(OBJDIR)
90 @echo "Compiling $<"
91 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
92 endif
94 $(OBJDIR)/%.cpp.o: %.cpp
95 -@mkdir -p $(OBJDIR)
96 @echo "Compiling $<"
97 $(SILENT)$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
99 -include $(OBJS:%.o=%.d)
101 # ---------------------------------------------------------------------------------------------------------------------