diff options
Diffstat (limited to 'plugins/ZamVerb/Makefile')
-rw-r--r-- | plugins/ZamVerb/Makefile | 44 |
1 files changed, 30 insertions, 14 deletions
diff --git a/plugins/ZamVerb/Makefile b/plugins/ZamVerb/Makefile index a08e334..d60b1df 100644 --- a/plugins/ZamVerb/Makefile +++ b/plugins/ZamVerb/Makefile @@ -12,23 +12,44 @@ NAME = ZamVerb # -------------------------------------------------------------- # Files to build -OBJS_DSP = \ - ZamVerbPlugin.cpp.o \ - ZamVerbImpulses.cpp.o \ - convolution.cpp.o +FILES_DSP = \ + ZamVerbPlugin.cpp \ + ZamVerbImpulses.cpp \ + convolution.cpp ifneq ($(HAVE_ZITA_CONVOLVER),true) -OBJS_DSP += ../../lib/zita-convolver-4.0.0/zita-convolver.cpp.o +FILES_DSP += \ + zita-convolver.cpp endif -OBJS_UI = \ - ZamVerbArtwork.cpp.o \ - ZamVerbUI.cpp.o +FILES_UI = \ + ZamVerbArtwork.cpp \ + ZamVerbUI.cpp # -------------------------------------------------------------- # Do some magic -include ../Makefile.mk +include ../../dpf/Makefile.plugins.mk + +ifeq ($(HAVE_ZITA_CONVOLVER),true) +BASE_FLAGS += -DHAVE_ZITA_CONVOLVER +LINK_FLAGS += $(ZITA_CONVOLVER_LIBS) +else +include ../zita-convolver.mk +endif + +# -------------------------------------------------------------- +# Extra flags + +ifeq ($(LINUX),true) +BASE_FLAGS += $(shell pkg-config --cflags samplerate fftw3f) +LINK_FLAGS += $(shell pkg-config --libs fftw3f samplerate) +else +BASE_FLAGS += $(shell pkg-config --static --cflags samplerate fftw3f) +LINK_FLAGS += $(shell pkg-config --static --libs fftw3f samplerate) +endif + +LINK_FLAGS += -lpthread # -------------------------------------------------------------- @@ -42,11 +63,6 @@ else TARGETS += lv2_dsp endif -ifeq ($(HAVE_ZITA_CONVOLVER),true) -BASE_FLAGS += -DHAVE_ZITA_CONVOLVER -LINK_FLAGS += $(ZITA_CONVOLVER_LIBS) -endif - TARGETS += vst all: $(TARGETS) |