1## 2## madplay - MPEG audio decoder and player 3## Copyright (C) 2000-2004 Robert Leslie 4## 5## This program is free software; you can redistribute it and/or modify 6## it under the terms of the GNU General Public License as published by 7## the Free Software Foundation; either version 2 of the License, or 8## (at your option) any later version. 9## 10## This program is distributed in the hope that it will be useful, 11## but WITHOUT ANY WARRANTY; without even the implied warranty of 12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13## GNU General Public License for more details. 14## 15## You should have received a copy of the GNU General Public License 16## along with this program; if not, write to the Free Software 17## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18## 19## If you would like to negotiate alternate licensing terms, you may do 20## so by contacting the author: Robert Leslie <rob@mars.org> 21## 22## $Id: Makefile.am,v 1.36 2004/02/23 21:34:53 rob Exp $ 23## 24 25## Process this file with automake to produce Makefile.in 26 27SUBDIRS = intl po 28DIST_SUBDIRS = intl po m4 msvc++ 29 30ACLOCAL_AMFLAGS = -I m4 31 32bin_PROGRAMS = madplay 33bin_SCRIPTS = abxtest 34EXTRA_PROGRAMS = madtime madmix mad123 madtag 35 36man_MANS = madplay.1 abxtest.1 37EXTRA_MANS = madtag.1 38 39EXTRA_DIST = config.rpath \ 40 $(man_MANS) $(EXTRA_MANS) $(bin_SCRIPTS) \ 41 CHANGES COPYRIGHT CREDITS README TODO VERSION 42 43default_audio = audio.c audio.h \ 44 audio_aiff.c audio_cdda.c audio_hex.c audio_null.c \ 45 audio_raw.c audio_snd.c audio_wave.c 46extra_audio = audio_alsa.c audio_carbon.c audio_empeg.c \ 47 audio_esd.c audio_jaguar.c audio_nas.c audio_oss.c \ 48 audio_qnx.c audio_sun.c audio_win32.c 49 50getopt_sources = getopt.c getopt.h getopt1.c 51 52madplay_SOURCES = global.h madplay.c $(getopt_sources) gettext.h \ 53 version.c resample.c filter.c tag.c crc.c rgain.c \ 54 player.c \ 55 version.h resample.h filter.h tag.h crc.h rgain.h \ 56 player.h \ 57 $(default_audio) 58EXTRA_madplay_SOURCES = $(extra_audio) 59madplay_DEPENDENCIES = $(depend_audio) $(DEPENDENCIES) 60madplay_LDADD = $(ldadd_audio) $(LDADD) $(ldadd_libid3tag) 61 62madtime_SOURCES = global.h madtime.c gettext.h 63 64mad123_SOURCES = global.h mad123.c $(getopt_sources) 65 66madmix_SOURCES = global.h madmix.c gettext.h $(default_audio) 67EXTRA_madmix_SOURCES = $(extra_audio) 68madmix_DEPENDENCIES = $(depend_audio) $(DEPENDENCIES) 69madmix_LDADD = $(ldadd_audio) $(LDADD) 70 71madtag_SOURCES = global.h madtag.c $(getopt_sources) gettext.h \ 72 tagger.c \ 73 tagger.h 74madtag_DEPENDENCIES = $(depend) 75madtag_LDADD = $(ldadd) $(ldadd_libid3tag) 76 77localedir = $(datadir)/locale 78INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" 79 80depend_audio = @depend_audio@ 81ldadd_audio = $(depend_audio) @ldadd_audio@ 82 83ldadd_libmad = -lmad 84ldadd_libid3tag = -lid3tag 85 86depend = @LIBOBJS@ 87ldadd = $(depend) @LTLIBINTL@ 88 89DEPENDENCIES = $(depend) 90LDADD = $(ldadd) $(ldadd_libmad) 91 92CLEANFILES = $(EXTRA_PROGRAMS) *.exe gmon.out 93 94libtool: $(LIBTOOL_DEPS) 95 $(SHELL) ./config.status --recheck 96 97profile: madplay gmon.out 98 gprof madplay | less 99 100gmon.out: madplay test/profile.mpg 101 ./madplay -vo pcm:/dev/null test/profile.mpg || rm -f gmon.out 102 103.c.s: 104 $(COMPILE) -S $< 105 106again: 107 $(MAKE) clean 108 $(MAKE) 109 110.PHONY: profile again 111