1
## Makefile for the program src directory of normalize
2
## Copyright (C) 1999--2001 Chris Vaill
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)
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.
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.
18
## Process this file with automake to produce Makefile.in
20
bin_PROGRAMS = normalize
21
bin_SCRIPTS = normalize-mp3
26
AUDIOFILESOURCES = wiener_af.c wiener_af.h riff.c riff.h
29
MADSOURCES = mpegvolume.c
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)
38
EXTRA_normalize_SOURCES = wiener_af.c wiener_af.h riff.c riff.h mpegvolume.c
40
normalize_LDADD = -L$(top_builddir)/nid3lib -lnid3 \
41
@MADLIBS@ @AUDIOFILE_LIBS@ @LIBINTL@
43
normalize_DEPENDENCIES = $(top_builddir)/nid3lib/libnid3.a
45
normalize_CFLAGS = @AUDIOFILE_CFLAGS@ $(AM_CFLAGS)
47
localedir = $(datadir)/locale
49
INCLUDES = -I$(top_srcdir)/nid3lib \
50
-I$(top_builddir)/intl -DLOCALEDIR=\"$(localedir)\"
52
EXTRA_DIST = normalize-mp3.in mktestwav.c
54
CLEANFILES = mktestwav riffwalk wavread test-wiener-af test-real-af mp3adjust
57
(cd $(DESTDIR)$(bindir); \
58
$(LN_S) normalize-mp3 normalize-ogg; \
61
# test program targets follow
63
mktestwav: mktestwav.o riff.o version.o getopt.o getopt1.o
66
mktestwav.o: mktestwav.c riff.h
71
$(COMPILE) -DBUILD_RIFFWALK -c -o $@ $^
76
$(COMPILE) -DBUILD_WAVREAD -c -o $@ $^
78
test-wiener-af: test-wiener-af.o wav.o riff.o version.o
81
test-wiener-af.o: testaf.c
82
$(COMPILE) -DFORCE_NOAUDIOFILE -c -o $@ $^
84
test-real-af: test-real-af.o
85
$(LINK) $^ -L/usr/local/lib -lm -laudiofile
87
test-real-af.o: testaf.c
88
$(COMPILE) -DFORCE_AUDIOFILE -c -o $@ $^