Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 1 | # libFLAC - Free Lossless Audio Codec library |
Josh Coalson | a78fac6 | 2005-01-25 04:17:55 +0000 | [diff] [blame] | 2 | # Copyright (C) 2001,2002,2003,2004,2005 Josh Coalson |
Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 3 | # |
Josh Coalson | afd8107 | 2003-01-31 23:34:56 +0000 | [diff] [blame] | 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions |
| 6 | # are met: |
Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 7 | # |
Josh Coalson | afd8107 | 2003-01-31 23:34:56 +0000 | [diff] [blame] | 8 | # - Redistributions of source code must retain the above copyright |
| 9 | # notice, this list of conditions and the following disclaimer. |
Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 10 | # |
Josh Coalson | afd8107 | 2003-01-31 23:34:56 +0000 | [diff] [blame] | 11 | # - Redistributions in binary form must reproduce the above copyright |
| 12 | # notice, this list of conditions and the following disclaimer in the |
| 13 | # documentation and/or other materials provided with the distribution. |
| 14 | # |
| 15 | # - Neither the name of the Xiph.org Foundation nor the names of its |
| 16 | # contributors may be used to endorse or promote products derived from |
| 17 | # this software without specific prior written permission. |
| 18 | # |
| 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 | # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 22 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR |
| 23 | # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| 24 | # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 25 | # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 26 | # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
| 27 | # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 28 | # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 29 | # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Josh Coalson | 6b05bc5 | 2001-06-08 00:13:21 +0000 | [diff] [blame] | 30 | |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 31 | lib_LTLIBRARIES = libFLAC.la |
| 32 | if DEBUG |
Josh Coalson | 4e003c6 | 2001-10-19 18:24:33 +0000 | [diff] [blame] | 33 | DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 34 | endif |
Josh Coalson | 663c599 | 2005-01-21 01:53:02 +0000 | [diff] [blame] | 35 | if FLaC__CPU_PPC |
| 36 | # The -force_cpusubtype_ALL is needed to insert a ppc64 instruction |
| 37 | # into cpu.c with an asm(). |
| 38 | if FLaC__SYS_DARWIN |
Josh Coalson | 63d489a | 2005-01-29 06:10:58 +0000 | [diff] [blame^] | 39 | #@@@@@@ PPC optimizations temporarily disabled |
| 40 | CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM |
Josh Coalson | 663c599 | 2005-01-21 01:53:02 +0000 | [diff] [blame] | 41 | else |
Josh Coalson | 63d489a | 2005-01-29 06:10:58 +0000 | [diff] [blame^] | 42 | #@@@@@@ PPC optimizations temporarily disabled |
| 43 | CPUCFLAGS = -maltivec -mabi=altivec -force_cpusubtype_ALL -DFLAC__NO_ASM |
Josh Coalson | 663c599 | 2005-01-21 01:53:02 +0000 | [diff] [blame] | 44 | endif |
| 45 | endif |
| 46 | CFLAGS = @CFLAGS@ $(DEBUGCFLAGS) $(CPUCFLAGS) |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 47 | |
Josh Coalson | c8ef835 | 2001-05-25 00:06:33 +0000 | [diff] [blame] | 48 | if FLaC__NO_ASM |
| 49 | else |
Josh Coalson | cd66fc0 | 2001-06-18 02:34:09 +0000 | [diff] [blame] | 50 | if FLaC__CPU_IA32 |
Josh Coalson | e02e8ba | 2001-05-23 20:58:14 +0000 | [diff] [blame] | 51 | if FLaC__HAS_NASM |
Josh Coalson | 4c8f73a | 2001-07-22 07:27:45 +0000 | [diff] [blame] | 52 | ARCH_SUBDIRS = ia32 |
Matt Zimmerman | 04027ad | 2004-04-16 22:20:07 +0000 | [diff] [blame] | 53 | libFLAC_la_LIBADD = ia32/libFLAC-asm.la |
Josh Coalson | c8ef835 | 2001-05-25 00:06:33 +0000 | [diff] [blame] | 54 | endif |
| 55 | endif |
Josh Coalson | 31bdd70 | 2004-07-25 20:34:40 +0000 | [diff] [blame] | 56 | if FLaC__CPU_PPC |
| 57 | ARCH_SUBDIRS = ppc |
Josh Coalson | b990022 | 2004-12-30 01:13:03 +0000 | [diff] [blame] | 58 | if FLaC__HAS_AS |
Josh Coalson | 47faab8 | 2004-11-09 01:50:35 +0000 | [diff] [blame] | 59 | libFLAC_la_LIBADD = ppc/as/libFLAC-asm.la |
Josh Coalson | b990022 | 2004-12-30 01:13:03 +0000 | [diff] [blame] | 60 | else |
| 61 | if FLaC__HAS_GAS |
| 62 | libFLAC_la_LIBADD = ppc/gas/libFLAC-asm.la |
| 63 | endif |
| 64 | endif |
Josh Coalson | c257065 | 2004-07-29 06:43:23 +0000 | [diff] [blame] | 65 | LOCAL_EXTRA_LDFLAGS = "-Wl,-read_only_relocs,warning" |
Josh Coalson | 31bdd70 | 2004-07-25 20:34:40 +0000 | [diff] [blame] | 66 | endif |
Josh Coalson | c8ef835 | 2001-05-25 00:06:33 +0000 | [diff] [blame] | 67 | endif |
| 68 | |
Josh Coalson | 4c8f73a | 2001-07-22 07:27:45 +0000 | [diff] [blame] | 69 | SUBDIRS = $(ARCH_SUBDIRS) include . |
| 70 | |
Josh Coalson | bfeec74 | 2002-06-28 23:45:53 +0000 | [diff] [blame] | 71 | m4datadir = $(datadir)/aclocal |
| 72 | m4data_DATA = libFLAC.m4 |
| 73 | |
Josh Coalson | cd443f6 | 2002-07-09 06:27:07 +0000 | [diff] [blame] | 74 | EXTRA_DIST = \ |
| 75 | Makefile.lite \ |
Josh Coalson | bfc8e31 | 2002-11-21 09:00:25 +0000 | [diff] [blame] | 76 | libFLAC_dynamic.dsp \ |
| 77 | libFLAC_static.dsp \ |
Josh Coalson | cd443f6 | 2002-07-09 06:27:07 +0000 | [diff] [blame] | 78 | libFLAC.m4 |
Josh Coalson | bfeec74 | 2002-06-28 23:45:53 +0000 | [diff] [blame] | 79 | |
Josh Coalson | 9b32217 | 2004-07-30 00:03:52 +0000 | [diff] [blame] | 80 | # see 'http://www.gnu.org/software/libtool/manual.html#SEC35' for numbering convention |
Josh Coalson | 3fbf64c | 2004-09-10 00:20:59 +0000 | [diff] [blame] | 81 | libFLAC_la_LDFLAGS = -version-info 6:1:0 -lm $(LOCAL_EXTRA_LDFLAGS) |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 82 | libFLAC_la_SOURCES = \ |
| 83 | bitbuffer.c \ |
Josh Coalson | 673976d | 2001-03-30 00:45:52 +0000 | [diff] [blame] | 84 | bitmath.c \ |
Josh Coalson | e02e8ba | 2001-05-23 20:58:14 +0000 | [diff] [blame] | 85 | cpu.c \ |
Josh Coalson | c8ef835 | 2001-05-25 00:06:33 +0000 | [diff] [blame] | 86 | crc.c \ |
Josh Coalson | e02e8ba | 2001-05-23 20:58:14 +0000 | [diff] [blame] | 87 | file_decoder.c \ |
Josh Coalson | f1eff45 | 2002-07-31 07:05:33 +0000 | [diff] [blame] | 88 | file_encoder.c \ |
Josh Coalson | e02e8ba | 2001-05-23 20:58:14 +0000 | [diff] [blame] | 89 | fixed.c \ |
Josh Coalson | 29a6a9d | 2004-11-09 01:25:44 +0000 | [diff] [blame] | 90 | float.c \ |
Josh Coalson | e02e8ba | 2001-05-23 20:58:14 +0000 | [diff] [blame] | 91 | format.c \ |
| 92 | lpc.c \ |
| 93 | md5.c \ |
Josh Coalson | c8ef835 | 2001-05-25 00:06:33 +0000 | [diff] [blame] | 94 | memory.c \ |
Josh Coalson | 90ced91 | 2002-05-30 05:23:38 +0000 | [diff] [blame] | 95 | metadata_iterators.c \ |
| 96 | metadata_object.c \ |
Josh Coalson | dbd84c4 | 2001-11-08 23:59:22 +0000 | [diff] [blame] | 97 | seekable_stream_decoder.c \ |
Josh Coalson | f1eff45 | 2002-07-31 07:05:33 +0000 | [diff] [blame] | 98 | seekable_stream_encoder.c \ |
Josh Coalson | 0a15c14 | 2001-06-13 17:59:57 +0000 | [diff] [blame] | 99 | stream_decoder.c \ |
| 100 | stream_encoder.c \ |
Josh Coalson | 036f903 | 2002-05-04 17:36:13 +0000 | [diff] [blame] | 101 | stream_encoder_framing.c |