cannam@85: ## cannam@85: ## libid3tag - ID3 tag manipulation 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.26 2004/02/17 02:11:28 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 = libid3tag.la cannam@85: include_HEADERS = id3tag.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 = 3 cannam@85: version_revision = 0 cannam@85: version_age = 3 cannam@85: cannam@85: version_info = $(version_current):$(version_revision):$(version_age) cannam@85: cannam@85: EXTRA_DIST = genre.dat.sed \ cannam@85: CHANGES COPYRIGHT CREDITS README TODO VERSION cannam@85: cannam@85: if DEBUG cannam@85: debug = debug.c debug.h cannam@85: else cannam@85: debug = cannam@85: endif cannam@85: cannam@85: libid3tag_la_SOURCES = version.c ucs4.c latin1.c utf16.c utf8.c \ cannam@85: parse.c render.c field.c frametype.c compat.c \ cannam@85: genre.c frame.c crc.c util.c tag.c file.c \ cannam@85: version.h ucs4.h latin1.h utf16.h utf8.h \ cannam@85: parse.h render.h field.h frametype.h compat.h \ cannam@85: genre.h frame.h crc.h util.h tag.h file.h \ cannam@85: id3tag.h global.h genre.dat $(debug) cannam@85: cannam@85: EXTRA_libid3tag_la_SOURCES = \ cannam@85: frametype.gperf compat.gperf genre.dat.in \ cannam@85: debug.c debug.h cannam@85: cannam@85: libid3tag_la_LDFLAGS = -version-info $(version_info) cannam@85: cannam@85: BUILT_SOURCES = frametype.c compat.c genre.dat cannam@85: cannam@85: $(srcdir)/frametype.c: $(srcdir)/frametype.gperf Makefile.am cannam@85: cd $(srcdir) && \ cannam@85: gperf -tCcTonD -K id -N id3_frametype_lookup -s -3 -k '*' \ cannam@85: frametype.gperf | \ cannam@85: sed -e 's/\(struct id3_frametype\);/\1/' | \ cannam@85: sed -e '/\$$''Id: /s/\$$//g' >frametype.c cannam@85: cannam@85: $(srcdir)/compat.c: $(srcdir)/compat.gperf Makefile.am cannam@85: cd $(srcdir) && \ cannam@85: gperf -tCcTonD -K id -N id3_compat_lookup -s -3 -k '*' \ cannam@85: compat.gperf | \ cannam@85: sed -e 's/\(struct id3_compat\);/\1/' | \ cannam@85: sed -e '/\$$''Id: /s/\$$//g' >compat.c cannam@85: cannam@85: $(srcdir)/genre.dat: $(srcdir)/genre.dat.in $(srcdir)/genre.dat.sed Makefile.am cannam@85: cd $(srcdir) && \ cannam@85: sed -n -f genre.dat.sed genre.dat.in | \ cannam@85: sed -e '/\$$''Id: /s/\$$//g' >genre.dat cannam@85: cannam@85: libtool: $(LIBTOOL_DEPS) cannam@85: $(SHELL) ./config.status --recheck cannam@85: cannam@85: again: cannam@85: $(MAKE) clean cannam@85: $(MAKE) cannam@85: cannam@85: .PHONY: again