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