~ubuntu-branches/ubuntu/saucy/flac/saucy-proposed

« back to all changes in this revision

Viewing changes to src/libFLAC/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Fabian Greffrath
  • Date: 2013-06-07 10:24:30 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20130607102430-x7e7zt462c0tuetp
Tags: 1.3.0-1
* Imported Upstream version 1.3.0 (Closes: #527542, #705601).
* Update debian/watch file, thanks Ulrich Klauer (Closes: #710062).
* Revert "Remove manpages from master branch."
* Imported Upstream version 1.3.0
* Convert package to "3.0 (quilt)" source format.
* Remove all patches, they have either been merged upstream or do not
  apply anymore (tested).
* Explicitly enable static libraries.
* Simplify debian/libflac-doc.install.
* Bump shlibs for added symbols.
* Remove needless Build-Depends: libid3-3.8.3-dev.
* Update Homepage field.
* Repair upstream manpage regeneration rule.
* Bump Build-Depends: debhelper (>= 9).
* Fix vcs-field-not-canonical.
* Import two patches from upstream GIT:
  + Add missing config.h includes.
  + Fix local_strcat() to terminate string correctly.
* Disable 3DNow! optimizations, enable SSE only on amd64, enable Altivec
  only on ppc64, disable ASM optimizations elsewhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#  libFLAC - Free Lossless Audio Codec library
2
 
#  Copyright (C) 2001,2002,2003,2004,2005,2006,2007  Josh Coalson
 
2
#  Copyright (C) 2001-2009  Josh Coalson
 
3
#  Copyright (C) 2011-2013  Xiph.Org Foundation
3
4
#
4
5
#  Redistribution and use in source and binary forms, with or without
5
6
#  modification, are permitted provided that the following conditions
28
29
#  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
30
#  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
31
 
 
32
AM_CPPFLAGS = -I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include
31
33
lib_LTLIBRARIES = libFLAC.la
 
34
noinst_LTLIBRARIES = libFLAC-static.la
32
35
if DEBUG
33
36
DEBUGCFLAGS = -DFLAC__OVERFLOW_DETECT
34
37
endif
 
38
 
 
39
# FIXME: The following logic should be part of configure, not of Makefile.am
 
40
 
35
41
if FLaC__CPU_PPC
36
42
# The -force_cpusubtype_ALL is needed to insert a ppc64 instruction
37
43
# into cpu.c with an asm().
40
46
CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
41
47
else
42
48
# Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
 
49
CPUCFLAGS =
 
50
if FLaC__CPU_PPC_SPE
 
51
else
 
52
CPUCFLAGS += -maltivec -mabi=altivec
 
53
endif
43
54
#@@@ PPC optimizations temporarily disabled
44
 
CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
 
55
CPUCFLAGS += -DFLAC__NO_ASM
45
56
endif
46
57
endif
47
58
 
58
69
if FLaC__CPU_PPC
59
70
ARCH_SUBDIRS = ppc
60
71
if FLaC__HAS_AS__TEMPORARILY_DISABLED
 
72
if FLaC__CPU_PPC_SPE
 
73
else
61
74
LOCAL_EXTRA_LIBADD = ppc/as/libFLAC-asm.la
62
75
LOCAL_EXTRA_LDFLAGS = "-Wl,-read_only_relocs,warning"
63
76
else
68
81
endif
69
82
endif
70
83
endif
71
 
 
72
 
libFLAC_la_LIBADD = $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@
 
84
endif
 
85
 
 
86
if OS_IS_WINDOWS
 
87
win_utf8_lib = $(top_builddir)/src/share/win_utf8_io/libwin_utf8_io.la
 
88
endif
 
89
 
 
90
libFLAC_la_LIBADD = $(win_utf8_lib) $(LOCAL_EXTRA_LIBADD) @OGG_LIBS@ -lm
73
91
 
74
92
SUBDIRS = $(ARCH_SUBDIRS) include .
75
93
 
82
100
EXTRA_DIST = \
83
101
        Makefile.lite \
84
102
        flac.pc.in \
85
 
        libFLAC_dynamic.dsp \
86
103
        libFLAC_dynamic.vcproj \
87
 
        libFLAC_static.dsp \
88
104
        libFLAC_static.vcproj \
89
105
        libFLAC.m4
90
106
 
95
111
        ogg_helper.c \
96
112
        ogg_mapping.c
97
113
endif
98
 
# see 'http://www.gnu.org/software/libtool/manual.html#Libtool-versioning' for numbering convention
99
 
libFLAC_la_LDFLAGS = -version-info 10:0:2 -lm $(LOCAL_EXTRA_LDFLAGS)
100
 
libFLAC_la_SOURCES = \
 
114
 
 
115
# see 'http://www.gnu.org/software/libtool/manual/libtool.html#Libtool-versioning' for numbering convention
 
116
libFLAC_la_LDFLAGS = $(AM_LDFLAGS) -version-info 11:0:3 $(LOCAL_EXTRA_LDFLAGS) @LT_NO_UNDEFINED@
 
117
 
 
118
libFLAC_sources = \
101
119
        bitmath.c \
102
120
        bitreader.c \
103
121
        bitwriter.c \
116
134
        stream_encoder_framing.c \
117
135
        window.c \
118
136
        $(extra_ogg_sources)
 
137
 
 
138
libFLAC_la_SOURCES = $(libFLAC_sources)
 
139
 
 
140
# needed for test_libFLAC
 
141
libFLAC_static_la_LIBADD = $(LOCAL_EXTRA_LIBADD)
 
142
libFLAC_static_la_SOURCES = $(libFLAC_sources)