# Module for non-recursive mpg123 build system. EXTRA_PROGRAMS += src/libmpg123/testcpu src_libmpg123_testcpu_DEPENDENCIES = src/libmpg123/getcpuflags.$(OBJEXT) src_libmpg123_testcpu_SOURCES = src/libmpg123/testcpu.c src_libmpg123_testcpu_LDADD = \ src/compat/libcompat.la \ src/libmpg123/getcpuflags.$(OBJEXT) EXTRA_PROGRAMS += src/libmpg123/calctables src_libmpg123_calctables_SOURCES = src/libmpg123/calctables.c \ src/libmpg123/init_costabs.h \ src/libmpg123/init_layer12.h \ src/libmpg123/init_layer3.h src_libmpg123_calctables_LDADD = @LIBM@ # Necessary? #CLEANFILES += src/libmpg123/*.a if BUILD_LIBMPG123 lib_LTLIBRARIES += src/libmpg123/libmpg123.la include_HEADERS += src/include/mpg123.h endif src_libmpg123_libmpg123_la_CFLAGS = @LIB_CFLAGS@ src_libmpg123_libmpg123_la_LDFLAGS = \ -no-undefined \ -version-info @LIBMPG123_VERSION@ \ -export-symbols-regex '^mpg123_' src_libmpg123_libmpg123_la_LIBADD = \ src/compat/libcompat.la \ @LIBMPG123_LIBS@ src_libmpg123_libmpg123_la_DEPENDENCIES = \ src/compat/libcompat.la src_libmpg123_libmpg123_la_SOURCES = \ src/libmpg123/mpeghead.h \ src/libmpg123/parse.c \ src/libmpg123/parse.h \ src/libmpg123/frame.c \ src/libmpg123/format.c \ src/libmpg123/frame.h \ src/libmpg123/reader.h \ src/libmpg123/decode.h \ src/libmpg123/dct64.c \ src/libmpg123/synth.h \ src/libmpg123/synth_mono.h \ src/libmpg123/synth_ntom.h \ src/libmpg123/synth_8bit.h \ src/libmpg123/synths.h \ src/libmpg123/huffman.h \ src/libmpg123/newhuffman.h \ src/libmpg123/icy.h \ src/libmpg123/icy2utf8.h \ src/libmpg123/id3.h \ src/libmpg123/id3.c \ src/libmpg123/getbits.h \ src/libmpg123/optimize.h \ src/libmpg123/optimize.c \ src/libmpg123/readers.c \ src/libmpg123/lfs_wrap.h \ src/libmpg123/costabs.h \ src/libmpg123/tabinit.c \ src/libmpg123/libmpg123.c \ src/libmpg123/gapless.h \ src/libmpg123/mpg123lib_intern.h \ src/libmpg123/mangle.h \ src/libmpg123/getcpuflags.h \ src/libmpg123/index.h \ src/libmpg123/index.c # All the optional sources leading to objects need to be explicitly # handled so that libtool builds the objects in a consistent manner, # with the same flags etal. #while read cond src #do # for c in $(echo $cond | tr '+' ' ') # do # neg= # case "$c" in # !*) # neg='!' # c=$(echo "$c"|cut -f 2 -d '!') # ;; # esac # printf "\nif ${neg}HAVE_$c" # done # printf "\nsrc_libmpg123_libmpg123_la_SOURCES +=" # for s in $src # do # printf " src/libmpg123/$s" # done # for c in $(echo $cond | tr '+' ' '); do printf "\nendif"; done # echo #done <$@ @echo "pic_object='`basename $<`'" >>$@ @echo "non_pic_object='`basename $<`'" >>$@ endif