summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-24 17:10:52 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-24 22:22:07 +0200
commitdd429ea2a7d98ba3a6b5806734db347a1bed1924 (patch)
tree1e3f7aa57f1faef63247d5fc3361b9fe860fda61 /src/Makefile.am
parentfc199a7284c5f3a5a84631583ea704748d50b28e (diff)
downloaddabmod-dd429ea2a7d98ba3a6b5806734db347a1bed1924.tar.gz
dabmod-dd429ea2a7d98ba3a6b5806734db347a1bed1924.tar.bz2
dabmod-dd429ea2a7d98ba3a6b5806734db347a1bed1924.zip
Make KISS entirely optional
The Resampler block can also use fftw, and the Makefile only does the kiss fft compilation when --enable-fftw is not given.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index b7095c8..3d1eefc 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -42,6 +42,7 @@ endif
bin_PROGRAMS = odr-dabmod
+if USE_KISS_FFT
FFT_DIR=$(top_builddir)/lib/kiss_fft129
FFT_INC=-I$(FFT_DIR) -I$(FFT_DIR)/tools
FFT_SRC=$(FFT_DIR)/kiss_fft.c $(FFT_DIR)/kiss_fft.h $(FFT_DIR)/tools/kiss_fftr.c $(FFT_DIR)/tools/kiss_fftr.h kiss_fftsimd.c kiss_fftsimd.h
@@ -53,10 +54,13 @@ DabModulator.cpp: $(FFT_DIR)
BUILT_SOURCES: $(FFT_DIR)
-if USE_KISS_FFT
FFT_LDADD=
else
FFT_LDADD=-lfftw3f -lm
+FFT_DIR=
+FFT_INC=
+FFT_SRC=
+FFT_FLG=
endif
$(FFT_DIR):
@@ -116,8 +120,11 @@ nodist_odr_dabmod_SOURCES =$(FFT_SRC)
dist_bin_SCRIPTS =crc-dwap.py
+if USE_KISS_FFT
EXTRA_DIST =kiss_fftsimd.c kiss_fftsimd.h
clean-local:
rm -rf $(FFT_DIR)
+endif
+