|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- #!/usr/bin/make -f
- # Makefile for carla-plugin #
- # ------------------------- #
- # Created by falkTX
- #
-
- CWD=../..
- include ../Makefile.mk
-
- # Workaround GCC bug
- ifeq ($(TESTBUILD),true)
- ifeq ($(USING_JUCE),true)
- BUILD_CXX_FLAGS += -Wno-undef
- endif
- endif
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- OBJS = \
- $(OBJDIR)/CarlaPlugin.cpp.o \
- $(OBJDIR)/CarlaPluginInternal.cpp.o \
- $(OBJDIR)/CarlaPluginNative.cpp.o \
- $(OBJDIR)/CarlaPluginBridge.cpp.o \
- $(OBJDIR)/CarlaPluginLADSPA.cpp.o \
- $(OBJDIR)/CarlaPluginDSSI.cpp.o \
- $(OBJDIR)/CarlaPluginLV2.cpp.o \
- $(OBJDIR)/CarlaPluginVST2.cpp.o \
- $(OBJDIR)/CarlaPluginVST3.cpp.o \
- $(OBJDIR)/CarlaPluginAU.cpp.o \
- $(OBJDIR)/CarlaPluginJuce.cpp.o \
- $(OBJDIR)/CarlaPluginFluidSynth.cpp.o \
- $(OBJDIR)/CarlaPluginSFZero.cpp.o \
- $(OBJDIR)/CarlaPluginJack.cpp.o
-
- TARGETS = \
- $(MODULEDIR)/carla_plugin.a
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- all: $(TARGETS)
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- clean:
- rm -f $(OBJS) $(TARGETS)
-
- debug:
- $(MAKE) DEBUG=true
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(MODULEDIR)/carla_plugin.a: $(OBJS)
- -@mkdir -p $(MODULEDIR)
- @echo "Creating carla_plugin.a"
- @rm -f $@
- @$(AR) crs $@ $^
-
- # ----------------------------------------------------------------------------------------------------------------------------
-
- $(OBJDIR)/CarlaPluginFluidSynth.cpp.o: CarlaPluginFluidSynth.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) $(FLUIDSYNTH_FLAGS) -c -o $@
-
- ifeq ($(MACOS),true)
- $(OBJDIR)/CarlaPluginVST2.cpp.o: CarlaPluginVST2.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
-
- $(OBJDIR)/CarlaPluginJuce.cpp.o: CarlaPluginJuce.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -ObjC++ -c -o $@
- endif
-
- $(OBJDIR)/%.cpp.o: %.cpp
- -@mkdir -p $(OBJDIR)
- @echo "Compiling $<"
- @$(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- -include $(OBJS:%.o=%.d)
-
- # ----------------------------------------------------------------------------------------------------------------------------
|