~ubuntu-branches/ubuntu/utopic/jconvolver/utopic-proposed

« back to all changes in this revision

Viewing changes to source/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-01-17 17:43:09 UTC
  • Revision ID: james.westby@ubuntu.com-20100117174309-hc5fbqk31xwi1aok
Tags: upstream-0.8.4
ImportĀ upstreamĀ versionĀ 0.8.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  Copyright (C) 2005-2009 Fons Adriaensen <fons@kokkinizita.net>
 
2
#
 
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.
 
7
#
 
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.
 
12
 
 
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.
 
16
 
 
17
 
 
18
PREFIX = /usr/local
 
19
SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/')
 
20
LIBDIR = lib$(SUFFIX)
 
21
DISTDIR = jconvolver-$(VERSION)
 
22
VERSION = 0.8.4
 
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
 
26
 
 
27
 
 
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.
 
31
#
 
32
#CPPFLAGS += -DNOAMBIS=1
 
33
 
 
34
 
 
35
all:    jconvolver fconvolver makemulti
 
36
 
 
37
 
 
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)
 
42
$(JCONVOLVER_O):
 
43
-include $(JCONVOLVER_O:%.o=%.d)
 
44
 
 
45
 
 
46
 
 
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)
 
51
$(FCONVOLVER_O):
 
52
-include $(FCONVOLVER_O:%.o=%.d)
 
53
 
 
54
 
 
55
 
 
56
MAKEMULTI_O =   makemulti.o audiofile.o
 
57
makemulti : LDLIBS += -lsndfile -lrt
 
58
makemulti:      $(MAKEMULTI_O)
 
59
        g++ $(LDFLAGS) -o $@ $(MAKEMULTI_O) $(LDLIBS)
 
60
 
 
61
 
 
62
install:        all
 
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
 
66
 
 
67
 
 
68
clean:
 
69
        /bin/rm -f *~ *.o *.a *.d *.so jconvolver fconvolver makemulti
 
70