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