2 ## libmad - MPEG audio decoder library
3 ## Copyright (C) 2000-2004 Underbit Technologies, Inc.
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.
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.23 2004/02/17 02:02:03 rob Exp $
22 ## Process this file with automake to produce Makefile.in
27 lib_LTLIBRARIES = libmad.la
28 include_HEADERS = mad.h
30 EXTRA_PROGRAMS = minimad
32 minimad_SOURCES = minimad.c
34 minimad_LDADD = libmad.la
36 EXTRA_DIST = mad.h.sed \
37 CHANGES COPYRIGHT CREDITS README TODO VERSION
39 exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
42 headers = $(exported_headers) \
43 global.h layer12.h layer3.h huffman.h
45 data_includes = D.dat imdct_s.dat qc_table.dat rq_table.dat \
48 libmad_la_SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c \
49 synth.c decoder.c layer12.c layer3.c huffman.c \
50 $(headers) $(data_includes)
52 EXTRA_libmad_la_SOURCES = imdct_l_arm.S #synth_mmx.S
54 libmad_la_DEPENDENCIES = @ASO_OBJS@
55 libmad_la_LIBADD = @ASO_OBJS@
57 INCLUDES = $(FPM) $(ASO)
62 ## From the libtool documentation on library versioning:
65 ## The most recent interface number that this library implements.
68 ## The implementation number of the CURRENT interface.
71 ## The difference between the newest and oldest interfaces that this
72 ## library implements. In other words, the library implements all the
73 ## interface numbers in the range from number `CURRENT - AGE' to
76 ## If two libraries have identical CURRENT and AGE numbers, then the
77 ## dynamic linker chooses the library with the greater REVISION number.
79 ## 1. Start with version information of `0:0:0' for each libtool library.
81 ## 2. Update the version information only immediately before a public
82 ## release of your software. More frequent updates are unnecessary,
83 ## and only guarantee that the current interface number gets larger
86 ## 3. If the library source code has changed at all since the last
87 ## update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
89 ## 4. If any interfaces have been added, removed, or changed since the
90 ## last update, increment CURRENT, and set REVISION to 0.
92 ## 5. If any interfaces have been added since the last public release,
93 ## then increment AGE.
95 ## 6. If any interfaces have been removed since the last public release,
102 version_info = $(version_current):$(version_revision):$(version_age)
104 libmad_la_LDFLAGS = -version-info $(version_info)
106 mad.h: config.status config.h Makefile.am \
107 $(srcdir)/COPYRIGHT $(srcdir)/mad.h.sed $(exported_headers)
108 (sed -e '1s|.*|/*|' -e '1b' -e '$$s|.*| */|' -e '$$b' \
109 -e 's/^.*/ *&/' $(srcdir)/COPYRIGHT; echo; \
110 echo "# ifdef __cplusplus"; \
111 echo 'extern "C" {'; \
112 echo "# endif"; echo; \
113 if [ ".$(FPM)" != "." ]; then \
114 echo ".$(FPM)" | sed -e 's|^\.-D|# define |'; echo; \
116 sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \
118 sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \
120 sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \
122 for header in $(exported_headers); do \
124 sed -n -f $(srcdir)/mad.h.sed $(srcdir)/$$header; \
126 echo "# ifdef __cplusplus"; \
130 libtool: $(LIBTOOL_DEPS)
131 $(SHELL) ./config.status --recheck