opus_ldflags := @opus_ldflags@
faad_ldflags := @faad_ldflags@
mad_ldflags := @mad_ldflags@
+flac_ldflags := @flac_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
$(vorbis_ldflags) \
$(speex_ldflags) \
$(opus_ldflags) \
- $(faad_ldflags)
+ $(faad_ldflags) \
+ $(flac_ldflags)
para_recv: $(recv_objs)
@[ -z "$(Q)" ] || echo 'LD $@'
AC_CHECK_LIB([FLAC], [FLAC__stream_decoder_init_file], [], have_flac=no, -logg -lm)
if test "$have_flac" = "yes"; then
AC_DEFINE(HAVE_FLAC, 1, define to 1 if you want to build the flacdec filter)
+ AC_SUBST(flac_cppflags)
+ flac_ldflags="$flac_libs -lFLAC"
+ AC_SUBST(flac_ldflags)
+
filter_errlist_objs="$filter_errlist_objs flacdec_filter"
audiod_errlist_objs="$audiod_errlist_objs flacdec_filter"
play_errlist_objs="$play_errlist_objs flacdec_filter flac_afh"
afh_errlist_objs="$afh_errlist_objs flac_afh"
server_errlist_objs="$server_errlist_objs flac_afh"
recv_errlist_objs="$recv_errlist_objs flac_afh"
- filter_ldflags="$filter_ldflags $flac_libs -lFLAC"
- audiod_ldflags="$audiod_ldflags $flac_libs -lFLAC"
- play_ldflags="$play_ldflags $flac_libs -lFLAC"
- server_ldflags="$server_ldflags $flac_libs -lFLAC"
- afh_ldflags="$afh_ldflags $flac_libs -lFLAC"
- recv_ldflags="$recv_ldflags $flac_libs -lFLAC"
filters="$filters flacdec"
audio_format_handlers="$audio_format_handlers flac"
audiod_audio_formats="$audiod_audio_formats flac"
- AC_SUBST(flac_cppflags)
else
AC_MSG_WARN([no flac support in para_audiod/para_filter/para_afh/para_server])
fi