Chris@0: ## Chris@0: ## libmad - MPEG audio decoder library Chris@0: ## Copyright (C) 2000-2004 Underbit Technologies, Inc. Chris@0: ## Chris@0: ## This program is free software; you can redistribute it and/or modify Chris@0: ## it under the terms of the GNU General Public License as published by Chris@0: ## the Free Software Foundation; either version 2 of the License, or Chris@0: ## (at your option) any later version. Chris@0: ## Chris@0: ## This program is distributed in the hope that it will be useful, Chris@0: ## but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@0: ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@0: ## GNU General Public License for more details. Chris@0: ## Chris@0: ## You should have received a copy of the GNU General Public License Chris@0: ## along with this program; if not, write to the Free Software Chris@0: ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Chris@0: ## Chris@0: ## $Id: Makefile.am,v 1.23 2004/02/17 02:02:03 rob Exp $ Chris@0: ## Chris@0: Chris@0: ## Process this file with automake to produce Makefile.in Chris@0: Chris@0: SUBDIRS = Chris@0: DIST_SUBDIRS = msvc++ Chris@0: Chris@0: lib_LTLIBRARIES = libmad.la Chris@0: include_HEADERS = mad.h Chris@0: Chris@0: EXTRA_PROGRAMS = minimad Chris@0: Chris@0: minimad_SOURCES = minimad.c Chris@0: minimad_INCLUDES = Chris@0: minimad_LDADD = libmad.la Chris@0: Chris@0: EXTRA_DIST = mad.h.sed \ Chris@0: CHANGES COPYRIGHT CREDITS README TODO VERSION Chris@0: Chris@0: exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \ Chris@0: synth.h decoder.h Chris@0: Chris@0: headers = $(exported_headers) \ Chris@0: global.h layer12.h layer3.h huffman.h Chris@0: Chris@0: data_includes = D.dat imdct_s.dat qc_table.dat rq_table.dat \ Chris@0: sf_table.dat Chris@0: Chris@0: libmad_la_SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c \ Chris@0: synth.c decoder.c layer12.c layer3.c huffman.c \ Chris@0: $(headers) $(data_includes) Chris@0: Chris@0: EXTRA_libmad_la_SOURCES = imdct_l_arm.S #synth_mmx.S Chris@0: Chris@0: libmad_la_DEPENDENCIES = @ASO_OBJS@ Chris@0: libmad_la_LIBADD = @ASO_OBJS@ Chris@0: Chris@0: INCLUDES = $(FPM) $(ASO) Chris@0: Chris@0: BUILT_SOURCES = mad.h Chris@0: CLEANFILES = mad.h Chris@0: Chris@0: ## From the libtool documentation on library versioning: Chris@0: ## Chris@0: ## CURRENT Chris@0: ## The most recent interface number that this library implements. Chris@0: ## Chris@0: ## REVISION Chris@0: ## The implementation number of the CURRENT interface. Chris@0: ## Chris@0: ## AGE Chris@0: ## The difference between the newest and oldest interfaces that this Chris@0: ## library implements. In other words, the library implements all the Chris@0: ## interface numbers in the range from number `CURRENT - AGE' to Chris@0: ## `CURRENT'. Chris@0: ## Chris@0: ## If two libraries have identical CURRENT and AGE numbers, then the Chris@0: ## dynamic linker chooses the library with the greater REVISION number. Chris@0: ## Chris@0: ## 1. Start with version information of `0:0:0' for each libtool library. Chris@0: ## Chris@0: ## 2. Update the version information only immediately before a public Chris@0: ## release of your software. More frequent updates are unnecessary, Chris@0: ## and only guarantee that the current interface number gets larger Chris@0: ## faster. Chris@0: ## Chris@0: ## 3. If the library source code has changed at all since the last Chris@0: ## update, then increment REVISION (`C:R:A' becomes `C:r+1:A'). Chris@0: ## Chris@0: ## 4. If any interfaces have been added, removed, or changed since the Chris@0: ## last update, increment CURRENT, and set REVISION to 0. Chris@0: ## Chris@0: ## 5. If any interfaces have been added since the last public release, Chris@0: ## then increment AGE. Chris@0: ## Chris@0: ## 6. If any interfaces have been removed since the last public release, Chris@0: ## then set AGE to 0. Chris@0: Chris@0: version_current = 2 Chris@0: version_revision = 1 Chris@0: version_age = 2 Chris@0: Chris@0: version_info = $(version_current):$(version_revision):$(version_age) Chris@0: Chris@0: libmad_la_LDFLAGS = -version-info $(version_info) Chris@0: Chris@0: mad.h: config.status config.h Makefile.am \ Chris@0: $(srcdir)/COPYRIGHT $(srcdir)/mad.h.sed $(exported_headers) Chris@0: (sed -e '1s|.*|/*|' -e '1b' -e '$$s|.*| */|' -e '$$b' \ Chris@0: -e 's/^.*/ *&/' $(srcdir)/COPYRIGHT; echo; \ Chris@0: echo "# ifdef __cplusplus"; \ Chris@0: echo 'extern "C" {'; \ Chris@0: echo "# endif"; echo; \ Chris@0: if [ ".$(FPM)" != "." ]; then \ Chris@0: echo ".$(FPM)" | sed -e 's|^\.-D|# define |'; echo; \ Chris@0: fi; \ Chris@0: sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \ Chris@0: config.h; echo; \ Chris@0: sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \ Chris@0: config.h; echo; \ Chris@0: sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \ Chris@0: config.h; echo; \ Chris@0: for header in $(exported_headers); do \ Chris@0: echo; \ Chris@0: sed -n -f $(srcdir)/mad.h.sed $(srcdir)/$$header; \ Chris@0: done; echo; \ Chris@0: echo "# ifdef __cplusplus"; \ Chris@0: echo '}'; \ Chris@0: echo "# endif") >$@ Chris@0: Chris@0: libtool: $(LIBTOOL_DEPS) Chris@0: $(SHELL) ./config.status --recheck Chris@0: Chris@0: .c.s: Chris@0: $(COMPILE) -S $< Chris@0: Chris@0: again: Chris@0: $(MAKE) clean Chris@0: $(MAKE) Chris@0: Chris@0: .PHONY: again