view decoders/libmpg123/Makefile.am-original @ 584:2e5e01679f32

Minor changes to mpg123.c to compile with Visual Studio and modern mpg123.c instead of bundled version.
author Eric Wing <ewing@anscamobile.com>
date Wed, 27 Apr 2011 19:13:29 -0700
parents 7e08477b0fc1
children
line wrap: on
line source

## Makefile.am: produce Makefile.in from this

## copyright by the mpg123 project - free software under the terms of the LGPL 2.1
## see COPYING and AUTHORS files in distribution or http://mpg123.org
## initially written by Nicholas J. Humfrey

#AM_CFLAGS = @AUDIO_CFLAGS@
#AM_LDFLAGS = 
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/libmpg123

EXTRA_DIST = mpg123.h.in dnoise.sh dnoise.dat

EXTRA_PROGRAMS = testcpu
testcpu_dependencies = getcpuflags.$(OBJEXT)
testcpu_sources = testcpu.c
testcpu_LDADD = getcpuflags.$(OBJEXT)


CLEANFILES = *.a


#lib_LIBRARIES = libmpg123.a
lib_LTLIBRARIES = libmpg123.la
nodist_include_HEADERS = mpg123.h

#libmpg123_a_LIBADD = @DECODER_OBJ@
#libmpg123_a_DEPENDENCIES = @DECODER_OBJ@

libmpg123_la_LDFLAGS = -no-undefined -version-info @LIBMPG123_VERSION@ -export-symbols $(top_srcdir)/src/libmpg123/libmpg123.sym
libmpg123_la_LIBADD = @DECODER_LOBJ@
libmpg123_la_DEPENDENCIES = @DECODER_LOBJ@ $(top_srcdir)/src/libmpg123/libmpg123.sym

libmpg123_la_SOURCES = \
	compat.c \
	compat.h \
	parse.c \
	parse.h \
	frame.c \
	format.c \
	frame.h \
	reader.h \
	debug.h \
	decode.h \
	decode_2to1.c \
	decode_4to1.c \
	decode_ntom.c \
	equalizer.c \
	huffman.h \
	icy.c \
	icy.h \
	icy2utf8.c \
	icy2utf8.h \
	id3.c \
	id3.h \
	true.h \
	l2tables.h \
	layer1.c \
	layer2.c \
	layer3.c \
	getbits.h \
	optimize.h \
	optimize.c \
	readers.c \
	tabinit.c \
	stringbuf.c \
	libmpg123.c \
	mpg123lib_intern.h \
	mangle.h \
	getcpuflags.h \
	index.h \
	index.c \
	libmpg123.sym

EXTRA_libmpg123_la_SOURCES = \
	dct36_3dnowext.S \
	dct36_3dnow.S \
	dct64_3dnowext.S \
	dct64_3dnow.S \
	dct64_altivec.c \
	dct64.c \
	dct64_i386.c \
	dct64_i486.c \
	dct64_mmx.S \
	dct64_sse.S \
	decode_3dnowext.S \
	decode_3dnow.S \
	decode_altivec.c \
	decode.c \
	decode_i386.c \
	decode_i486.c \
	decode_i586_dither.S \
	decode_i586.S \
	decode_mmx.S \
	decode_sse3d.h \
	decode_sse.S \
	equalizer_3dnow.S \
	tabinit_mmx.S \
	getcpuflags.S

# explicit preprocessing since mingw32 does not honor the big .S
.S.o:
	$(CPP) $(AM_CPPFLAGS) $(DEFAULT_INCLUDES) $(CPPFLAGS) $< > $<.s
	$(CCAS) $(CCASFLAGS) -c -o $@ $<.s && rm $<.s

.S.lo:
	$(LTCCASCOMPILE) $(DEFAULT_INCLUDES) -c -o $@ $<

dnoise.c: dnoise.dat dnoise.sh
	sh dnoise.sh "$<" > "$@"