usbmodeswitch: Updated to v.1.2.6 from shibby's branch.
[tomato.git] / release / src / router / libid3tag / Makefile.am
blob3ee9aa69f826a6382998b5b17e89ac717c1cf91f
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.
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
19 ## $Id: Makefile.am,v 1.26 2004/02/17 02:11:28 rob Exp $
22 ## Process this file with automake to produce Makefile.in
24 SUBDIRS =               
25 DIST_SUBDIRS =          msvc++
27 lib_LTLIBRARIES =       libid3tag.la
28 include_HEADERS =       id3tag.h
30 ## From the libtool documentation on library versioning:
32 ## CURRENT
33 ##      The most recent interface number that this library implements.
35 ## REVISION
36 ##      The implementation number of the CURRENT interface.
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'.
44 ##    If two libraries have identical CURRENT and AGE numbers, then the
45 ## dynamic linker chooses the library with the greater REVISION number.
47 ##   1. Start with version information of `0:0:0' for each libtool library.
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.
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').
57 ##   4. If any interfaces have been added, removed, or changed since the
58 ##      last update, increment CURRENT, and set REVISION to 0.
60 ##   5. If any interfaces have been added since the last public release,
61 ##      then increment AGE.
63 ##   6. If any interfaces have been removed since the last public release,
64 ##      then set AGE to 0.
66 version_current =       3
67 version_revision =      0
68 version_age =           3
70 version_info =          $(version_current):$(version_revision):$(version_age)
72 EXTRA_DIST =            genre.dat.sed  \
73                         CHANGES COPYRIGHT CREDITS README TODO VERSION
75 if DEBUG
76 debug = debug.c debug.h
77 else
78 debug =
79 endif
81 libid3tag_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)
89 EXTRA_libid3tag_la_SOURCES =  \
90                         frametype.gperf compat.gperf genre.dat.in  \
91                         debug.c debug.h
93 libid3tag_la_LDFLAGS =  -version-info $(version_info)
95 BUILT_SOURCES =         frametype.c compat.c genre.dat
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
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
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
116 libtool: $(LIBTOOL_DEPS)
117         $(SHELL) ./config.status --recheck
119 again:
120         $(MAKE) clean
121         $(MAKE)
123 .PHONY: again