~ubuntu-branches/debian/stretch/clalsadrv/stretch

« back to all changes in this revision

Viewing changes to apps/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-04-17 12:25:13 UTC
  • mfrom: (1.1.4 upstream) (2.1.4 experimental)
  • Revision ID: james.westby@ubuntu.com-20100417122513-vsy32s4vwo8vgzvs
Tags: 2.0.0-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#  Copyright (C) 2003-2010 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
LDFLAGS += -L$(PREFIX)/$(LIBDIR)
 
22
CPPFLAGS += -O2 -Wall -MMD -MP -DVERSION=\"$(VERSION)\"
 
23
 
 
24
 
 
25
all:    alsa-loopback alsa-latency
 
26
 
 
27
 
 
28
LOOPBACK_O =    loopback.o
 
29
alsa-loopback:  LDLIBS += -lclthreads -lclalsadrv -lpthread -lrt
 
30
alsa-loopback:  $(LOOPBACK_O)
 
31
        g++ $(LDFLAGS) -o $@ $(LOOPBACK_O) $(LDLIBS)
 
32
$(LOOPBACK_O):
 
33
-include $(LOOPBACK_O:%.o=%.d)
 
34
 
 
35
 
 
36
LATENCY_O =     latency.o
 
37
alsa-latency:   LDLIBS += -lclthreads -lclalsadrv -lpthread -lrt
 
38
alsa-latency:   $(LATENCY_O)
 
39
        g++ $(LDFLAGS) -o $@ $(LATENCY_O) $(LDLIBS)
 
40
$(LATENCY_O):
 
41
-include $(LATENCY_O:%.o=%.d)
 
42
 
 
43
 
 
44
install:        all
 
45
        install -Dm 755 alsa-loopback $(DESTDIR)$(PREFIX)/bin/alsa-loopback
 
46
        install -Dm 755 alsa-latency  $(DESTDIR)$(PREFIX)/bin/alsa-latency
 
47
 
 
48
 
 
49
clean:
 
50
        /bin/rm -f *~ *.o *.a *.d *.so alsa-loopback alsa-latency
 
51