~ubuntu-branches/ubuntu/trusty/normalize-audio/trusty-proposed

« back to all changes in this revision

Viewing changes to src/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Eduardo Marcel Macan
  • Date: 2004-06-28 23:01:43 UTC
  • Revision ID: james.westby@ubuntu.com-20040628230143-59fd3lt4hqbc7ay4
Tags: upstream-0.7.6
ImportĀ upstreamĀ versionĀ 0.7.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Makefile for the program src directory of normalize
 
2
## Copyright (C) 1999--2001 Chris Vaill
 
3
##
 
4
## This program is free software; you can redistribute it and/or modify
 
5
## it under the terms of the GNU General Public License as published by
 
6
## the Free Software Foundation; either version 2, or (at your option)
 
7
## any later version.
 
8
##
 
9
## This program is distributed in the hope that it will be useful,
 
10
## but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
## GNU General Public License for more details.
 
13
##
 
14
## You should have received a copy of the GNU General Public License
 
15
## along with this program; if not, write to the Free Software
 
16
## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 
 
18
## Process this file with automake to produce Makefile.in
 
19
 
 
20
bin_PROGRAMS = normalize
 
21
bin_SCRIPTS = normalize-mp3
 
22
 
 
23
if AUDIOFILE
 
24
AUDIOFILESOURCES =
 
25
else
 
26
AUDIOFILESOURCES = wiener_af.c wiener_af.h riff.c riff.h
 
27
endif
 
28
if MAD
 
29
MADSOURCES = mpegvolume.c
 
30
else
 
31
MADSOURCES =
 
32
endif
 
33
 
 
34
normalize_SOURCES = normalize.c volume.c adjust.c mpegadjust.c \
 
35
        common.h version.c getopt.c getopt1.c getopt.h \
 
36
        $(AUDIOFILESOURCES) $(MADSOURCES)
 
37
 
 
38
EXTRA_normalize_SOURCES = wiener_af.c wiener_af.h riff.c riff.h mpegvolume.c
 
39
 
 
40
normalize_LDADD = -L$(top_builddir)/nid3lib -lnid3 \
 
41
        @MADLIBS@ @AUDIOFILE_LIBS@ @LIBINTL@
 
42
 
 
43
normalize_DEPENDENCIES = $(top_builddir)/nid3lib/libnid3.a
 
44
 
 
45
normalize_CFLAGS = @AUDIOFILE_CFLAGS@ $(AM_CFLAGS)
 
46
 
 
47
localedir = $(datadir)/locale
 
48
 
 
49
INCLUDES = -I$(top_srcdir)/nid3lib \
 
50
        -I$(top_builddir)/intl -DLOCALEDIR=\"$(localedir)\"
 
51
 
 
52
EXTRA_DIST = normalize-mp3.in mktestwav.c
 
53
 
 
54
CLEANFILES = mktestwav riffwalk wavread test-wiener-af test-real-af mp3adjust
 
55
 
 
56
install-exec-hook:
 
57
        (cd $(DESTDIR)$(bindir); \
 
58
        $(LN_S) normalize-mp3 normalize-ogg; \
 
59
        exit 0)
 
60
 
 
61
# test program targets follow
 
62
 
 
63
mktestwav: mktestwav.o riff.o version.o getopt.o getopt1.o
 
64
        $(LINK) $^ -lm
 
65
 
 
66
mktestwav.o: mktestwav.c riff.h
 
67
 
 
68
riffwalk: riffwalk.o
 
69
 
 
70
riffwalk.o: riff.c
 
71
        $(COMPILE) -DBUILD_RIFFWALK -c -o $@ $^
 
72
 
 
73
wavread: wavread.o
 
74
 
 
75
wavread.o: riff.c
 
76
        $(COMPILE) -DBUILD_WAVREAD -c -o $@ $^
 
77
 
 
78
test-wiener-af: test-wiener-af.o wav.o riff.o version.o
 
79
        $(LINK) $^ -lm
 
80
 
 
81
test-wiener-af.o: testaf.c
 
82
        $(COMPILE) -DFORCE_NOAUDIOFILE -c -o $@ $^
 
83
 
 
84
test-real-af: test-real-af.o
 
85
        $(LINK) $^ -L/usr/local/lib -lm -laudiofile
 
86
 
 
87
test-real-af.o: testaf.c
 
88
        $(COMPILE) -DFORCE_AUDIOFILE -c -o $@ $^