|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #!/usr/bin/make -f
- # Makefile for carla-plugin #
- # ------------------------- #
- # Created by falkTX
- #
-
- include ../Makefile.mk
-
- # --------------------------------------------------------------
-
- BUILD_CXX_FLAGS += $(shell pkg-config --cflags liblo) -I../engine
-
- ifeq ($(HAVE_QT5),true)
- BUILD_CXX_FLAGS += $(shell pkg-config --cflags Qt5Core Qt5Xml Qt5Widgets)
- else
- BUILD_CXX_FLAGS += $(shell pkg-config --cflags QtCore QtGui QtXml)
- endif
-
- # --------------------------------------------------------------
-
- ifeq ($(HAVE_FLUIDSYNTH),true)
- BUILD_CXX_FLAGS += $(shell pkg-config --cflags fluidsynth)
- endif
-
- ifeq ($(HAVE_LINUXSAMPLER),true)
- BUILD_CXX_FLAGS += $(shell pkg-config --cflags linuxsampler)
- endif
-
- # --------------------------------------------------------------
-
- OBJS = \
- CarlaPlugin.cpp.o \
- CarlaPluginGui.cpp.o \
- CarlaPluginThread.cpp.o \
- BridgePlugin.cpp.o \
- NativePlugin.cpp.o \
- LadspaPlugin.cpp.o \
- DssiPlugin.cpp.o \
- Lv2Plugin.cpp.o \
- VstPlugin.cpp.o \
- Vst3Plugin.cpp.o \
- FluidSynthPlugin.cpp.o \
- LinuxSamplerPlugin.cpp.o
-
- FILES = \
- moc_CarlaPluginGui.cpp
-
- TARGET = ../libcarla_plugin.a
-
- # --------------------------------------------------------------
-
- all: $(TARGET)
-
- clean:
- rm -f $(OBJS) $(FILES) $(TARGET)
-
- debug:
- $(MAKE) DEBUG=true
-
- # --------------------------------------------------------------
-
- %.cpp.o: %.cpp moc_CarlaPluginGui.cpp ../CarlaBackend.hpp ../CarlaEngine.hpp ../CarlaPlugin.hpp CarlaPluginGui.hpp CarlaPluginInternal.hpp CarlaPluginThread.hpp
- $(CXX) $< $(BUILD_CXX_FLAGS) -c -o $@
-
- moc_%.cpp: %.hpp
- $(MOC) $< -DMOC_PARSING -o $@
-
- $(TARGET): $(OBJS)
- $(AR) rs $@ $^
|