1
# Copyright (C) 2005-2009 Fons Adriaensen <fons@kokkinizita.net>
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License as published by
5
# the Free Software Foundation; either version 2 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU General Public License for more details.
13
# You should have received a copy of the GNU General Public License
14
# along with this program; if not, write to the Free Software
15
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
21
DISTDIR = jconvolver-$(VERSION)
23
LDFLAGS += -L$(PREFIX)/$(LIBDIR)
24
CPPFLAGS += -O3 -Wall -MMD -MP -DVERSION=\"$(VERSION)\"
25
#CPPFLAGS += -march=i686 -mtune=pentium4 -msse -msse2 -m3dnow -O3 -ffast-math
28
# Uncomment if you use a libsndfile version without support for
29
# setting/getting the Ambisonic flags. This should not be necessary
30
# unless you are using a *very old* version of libsndfile.
32
#CPPFLAGS += -DNOAMBIS=1
35
all: jconvolver fconvolver makemulti
38
JCONVOLVER_O = jconvolver.o config.o jconfig.o audiofile.o jclient.o
39
jconvolver: LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lclthreads -ljack -lpthread -lrt
40
jconvolver: $(JCONVOLVER_O)
41
g++ $(LDFLAGS) -o $@ $(JCONVOLVER_O) $(LDLIBS)
43
-include $(JCONVOLVER_O:%.o=%.d)
47
FCONVOLVER_O = fconvolver.o config.o fconfig.o audiofile.o
48
fconvolver: LDLIBS += -lzita-convolver -lfftw3f -lsndfile -lpthread -lrt
49
fconvolver: $(FCONVOLVER_O)
50
g++ $(LDFLAGS) -o $@ $(FCONVOLVER_O) $(LDLIBS)
52
-include $(FCONVOLVER_O:%.o=%.d)
56
MAKEMULTI_O = makemulti.o audiofile.o
57
makemulti : LDLIBS += -lsndfile -lrt
58
makemulti: $(MAKEMULTI_O)
59
g++ $(LDFLAGS) -o $@ $(MAKEMULTI_O) $(LDLIBS)
63
/usr/bin/install -m 755 jconvolver $(PREFIX)/bin
64
/usr/bin/install -m 755 fconvolver $(PREFIX)/bin
65
/usr/bin/install -m 755 makemulti $(PREFIX)/bin
69
/bin/rm -f *~ *.o *.a *.d *.so jconvolver fconvolver makemulti