cannam@85
|
1 ##
|
cannam@85
|
2 ## libmad - MPEG audio decoder 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.23 2004/02/17 02:02:03 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 = libmad.la
|
cannam@85
|
28 include_HEADERS = mad.h
|
cannam@85
|
29
|
cannam@85
|
30 EXTRA_PROGRAMS = minimad
|
cannam@85
|
31
|
cannam@85
|
32 minimad_SOURCES = minimad.c
|
cannam@85
|
33 minimad_INCLUDES =
|
cannam@85
|
34 minimad_LDADD = libmad.la
|
cannam@85
|
35
|
cannam@85
|
36 EXTRA_DIST = mad.h.sed \
|
cannam@85
|
37 CHANGES COPYRIGHT CREDITS README TODO VERSION
|
cannam@85
|
38
|
cannam@85
|
39 exported_headers = version.h fixed.h bit.h timer.h stream.h frame.h \
|
cannam@85
|
40 synth.h decoder.h
|
cannam@85
|
41
|
cannam@85
|
42 headers = $(exported_headers) \
|
cannam@85
|
43 global.h layer12.h layer3.h huffman.h
|
cannam@85
|
44
|
cannam@85
|
45 data_includes = D.dat imdct_s.dat qc_table.dat rq_table.dat \
|
cannam@85
|
46 sf_table.dat
|
cannam@85
|
47
|
cannam@85
|
48 libmad_la_SOURCES = version.c fixed.c bit.c timer.c stream.c frame.c \
|
cannam@85
|
49 synth.c decoder.c layer12.c layer3.c huffman.c \
|
cannam@85
|
50 $(headers) $(data_includes)
|
cannam@85
|
51
|
cannam@85
|
52 EXTRA_libmad_la_SOURCES = imdct_l_arm.S #synth_mmx.S
|
cannam@85
|
53
|
cannam@85
|
54 libmad_la_DEPENDENCIES = @ASO_OBJS@
|
cannam@85
|
55 libmad_la_LIBADD = @ASO_OBJS@
|
cannam@85
|
56
|
cannam@85
|
57 INCLUDES = $(FPM) $(ASO)
|
cannam@85
|
58
|
cannam@85
|
59 BUILT_SOURCES = mad.h
|
cannam@85
|
60 CLEANFILES = mad.h
|
cannam@85
|
61
|
cannam@85
|
62 ## From the libtool documentation on library versioning:
|
cannam@85
|
63 ##
|
cannam@85
|
64 ## CURRENT
|
cannam@85
|
65 ## The most recent interface number that this library implements.
|
cannam@85
|
66 ##
|
cannam@85
|
67 ## REVISION
|
cannam@85
|
68 ## The implementation number of the CURRENT interface.
|
cannam@85
|
69 ##
|
cannam@85
|
70 ## AGE
|
cannam@85
|
71 ## The difference between the newest and oldest interfaces that this
|
cannam@85
|
72 ## library implements. In other words, the library implements all the
|
cannam@85
|
73 ## interface numbers in the range from number `CURRENT - AGE' to
|
cannam@85
|
74 ## `CURRENT'.
|
cannam@85
|
75 ##
|
cannam@85
|
76 ## If two libraries have identical CURRENT and AGE numbers, then the
|
cannam@85
|
77 ## dynamic linker chooses the library with the greater REVISION number.
|
cannam@85
|
78 ##
|
cannam@85
|
79 ## 1. Start with version information of `0:0:0' for each libtool library.
|
cannam@85
|
80 ##
|
cannam@85
|
81 ## 2. Update the version information only immediately before a public
|
cannam@85
|
82 ## release of your software. More frequent updates are unnecessary,
|
cannam@85
|
83 ## and only guarantee that the current interface number gets larger
|
cannam@85
|
84 ## faster.
|
cannam@85
|
85 ##
|
cannam@85
|
86 ## 3. If the library source code has changed at all since the last
|
cannam@85
|
87 ## update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
|
cannam@85
|
88 ##
|
cannam@85
|
89 ## 4. If any interfaces have been added, removed, or changed since the
|
cannam@85
|
90 ## last update, increment CURRENT, and set REVISION to 0.
|
cannam@85
|
91 ##
|
cannam@85
|
92 ## 5. If any interfaces have been added since the last public release,
|
cannam@85
|
93 ## then increment AGE.
|
cannam@85
|
94 ##
|
cannam@85
|
95 ## 6. If any interfaces have been removed since the last public release,
|
cannam@85
|
96 ## then set AGE to 0.
|
cannam@85
|
97
|
cannam@85
|
98 version_current = 2
|
cannam@85
|
99 version_revision = 1
|
cannam@85
|
100 version_age = 2
|
cannam@85
|
101
|
cannam@85
|
102 version_info = $(version_current):$(version_revision):$(version_age)
|
cannam@85
|
103
|
cannam@85
|
104 libmad_la_LDFLAGS = -version-info $(version_info)
|
cannam@85
|
105
|
cannam@85
|
106 mad.h: config.status config.h Makefile.am \
|
cannam@85
|
107 $(srcdir)/COPYRIGHT $(srcdir)/mad.h.sed $(exported_headers)
|
cannam@85
|
108 (sed -e '1s|.*|/*|' -e '1b' -e '$$s|.*| */|' -e '$$b' \
|
cannam@85
|
109 -e 's/^.*/ *&/' $(srcdir)/COPYRIGHT; echo; \
|
cannam@85
|
110 echo "# ifdef __cplusplus"; \
|
cannam@85
|
111 echo 'extern "C" {'; \
|
cannam@85
|
112 echo "# endif"; echo; \
|
cannam@85
|
113 if [ ".$(FPM)" != "." ]; then \
|
cannam@85
|
114 echo ".$(FPM)" | sed -e 's|^\.-D|# define |'; echo; \
|
cannam@85
|
115 fi; \
|
cannam@85
|
116 sed -ne 's/^# *define *\(HAVE_.*_ASM\).*/# define \1/p' \
|
cannam@85
|
117 config.h; echo; \
|
cannam@85
|
118 sed -ne 's/^# *define *OPT_\(SPEED\|ACCURACY\).*/# define OPT_\1/p' \
|
cannam@85
|
119 config.h; echo; \
|
cannam@85
|
120 sed -ne 's/^# *define *\(SIZEOF_.*\)/# define \1/p' \
|
cannam@85
|
121 config.h; echo; \
|
cannam@85
|
122 for header in $(exported_headers); do \
|
cannam@85
|
123 echo; \
|
cannam@85
|
124 sed -n -f $(srcdir)/mad.h.sed $(srcdir)/$$header; \
|
cannam@85
|
125 done; echo; \
|
cannam@85
|
126 echo "# ifdef __cplusplus"; \
|
cannam@85
|
127 echo '}'; \
|
cannam@85
|
128 echo "# endif") >$@
|
cannam@85
|
129
|
cannam@85
|
130 libtool: $(LIBTOOL_DEPS)
|
cannam@85
|
131 $(SHELL) ./config.status --recheck
|
cannam@85
|
132
|
cannam@85
|
133 .c.s:
|
cannam@85
|
134 $(COMPILE) -S $<
|
cannam@85
|
135
|
cannam@85
|
136 again:
|
cannam@85
|
137 $(MAKE) clean
|
cannam@85
|
138 $(MAKE)
|
cannam@85
|
139
|
cannam@85
|
140 .PHONY: again
|