1##
2## libid3tag - ID3 tag manipulation library
3## Copyright (C) 2000-2004 Underbit Technologies, Inc.
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## $Id: Makefile.am,v 1.26 2004/02/17 02:11:28 rob Exp $
20##
21
22## Process this file with automake to produce Makefile.in
23
24SUBDIRS =
25DIST_SUBDIRS =		msvc++
26
27lib_LTLIBRARIES =	libid3tag.la
28include_HEADERS =	id3tag.h
29
30## From the libtool documentation on library versioning:
31##
32## CURRENT
33##      The most recent interface number that this library implements.
34##
35## REVISION
36##      The implementation number of the CURRENT interface.
37##
38## AGE
39##      The difference between the newest and oldest interfaces that this
40##      library implements.  In other words, the library implements all the
41##      interface numbers in the range from number `CURRENT - AGE' to
42##      `CURRENT'.
43##
44##    If two libraries have identical CURRENT and AGE numbers, then the
45## dynamic linker chooses the library with the greater REVISION number.
46##
47##   1. Start with version information of `0:0:0' for each libtool library.
48##
49##   2. Update the version information only immediately before a public
50##      release of your software.  More frequent updates are unnecessary,
51##      and only guarantee that the current interface number gets larger
52##      faster.
53##
54##   3. If the library source code has changed at all since the last
55##      update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
56##
57##   4. If any interfaces have been added, removed, or changed since the
58##      last update, increment CURRENT, and set REVISION to 0.
59##
60##   5. If any interfaces have been added since the last public release,
61##      then increment AGE.
62##
63##   6. If any interfaces have been removed since the last public release,
64##      then set AGE to 0.
65
66version_current =	3
67version_revision =	0
68version_age =		3
69
70version_info =		$(version_current):$(version_revision):$(version_age)
71
72EXTRA_DIST =		genre.dat.sed  \
73			CHANGES COPYRIGHT CREDITS README TODO VERSION
74
75if DEBUG
76debug = debug.c debug.h
77else
78debug =
79endif
80
81libid3tag_la_SOURCES =	version.c ucs4.c latin1.c utf16.c utf8.c  \
82			parse.c render.c field.c frametype.c compat.c  \
83			genre.c frame.c crc.c util.c tag.c file.c  \
84			version.h ucs4.h latin1.h utf16.h utf8.h  \
85			parse.h render.h field.h frametype.h compat.h  \
86			genre.h frame.h crc.h util.h tag.h file.h  \
87			id3tag.h global.h genre.dat $(debug)
88
89EXTRA_libid3tag_la_SOURCES =  \
90			frametype.gperf compat.gperf genre.dat.in  \
91			debug.c debug.h
92
93libid3tag_la_LDFLAGS =	-version-info $(version_info)
94
95BUILT_SOURCES =		frametype.c compat.c genre.dat
96
97$(srcdir)/frametype.c: $(srcdir)/frametype.gperf Makefile.am
98	cd $(srcdir) &&  \
99	gperf -tCcTonD -K id -N id3_frametype_lookup -s -3 -k '*'  \
100		frametype.gperf |  \
101	sed -e 's/\(struct id3_frametype\);/\1/' |  \
102	sed -e '/\$$''Id: /s/\$$//g' >frametype.c
103
104$(srcdir)/compat.c: $(srcdir)/compat.gperf Makefile.am
105	cd $(srcdir) &&  \
106	gperf -tCcTonD -K id -N id3_compat_lookup -s -3 -k '*'  \
107		compat.gperf |  \
108	sed -e 's/\(struct id3_compat\);/\1/' |  \
109	sed -e '/\$$''Id: /s/\$$//g' >compat.c
110
111$(srcdir)/genre.dat: $(srcdir)/genre.dat.in $(srcdir)/genre.dat.sed Makefile.am
112	cd $(srcdir) &&  \
113	sed -n -f genre.dat.sed genre.dat.in |  \
114	sed -e '/\$$''Id: /s/\$$//g' >genre.dat
115
116libtool: $(LIBTOOL_DEPS)
117	$(SHELL) ./config.status --recheck
118
119again:
120	$(MAKE) clean
121	$(MAKE)
122
123.PHONY: again
124