diff options
author | falkTX <falktx@gmail.com> | 2018-09-27 21:03:07 +0200 |
---|---|---|
committer | falkTX <falktx@gmail.com> | 2018-09-27 21:03:07 +0200 |
commit | dd1e050ad0ba751be373cbe27c89ee3b2052f9b2 (patch) | |
tree | d8241a487aa50c02b73bd2091271e64b657e148a /plugins/ZamHeadX2/Makefile | |
parent | 95895d9b5dc193fe45904bf6c7ff8a77ba89406f (diff) |
Simplify makefiles, use rules directly from dpf
Diffstat (limited to 'plugins/ZamHeadX2/Makefile')
-rw-r--r-- | plugins/ZamHeadX2/Makefile | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/plugins/ZamHeadX2/Makefile b/plugins/ZamHeadX2/Makefile index 28e6931..07ceedf 100644 --- a/plugins/ZamHeadX2/Makefile +++ b/plugins/ZamHeadX2/Makefile @@ -12,22 +12,44 @@ NAME = ZamHeadX2 # -------------------------------------------------------------- # Files to build +FILES_DSP += \ + convolution.cpp \ + ZamHeadX2Plugin.cpp \ + zita-convolver.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_DSP += \ - convolution.cpp.o \ - ZamHeadX2Plugin.cpp.o - -OBJS_UI = \ - ZamHeadX2Artwork.cpp.o \ - ZamHeadX2UI.cpp.o +FILES_UI = \ + ZamHeadX2Artwork.cpp \ + ZamHeadX2UI.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 # -------------------------------------------------------------- @@ -41,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) |