HELP2MAN := @help2man@
MKDIR_P := mkdir -p
+speex_cppflags := @speex_cppflags@
+
id3tag_ldflags := @id3tag_ldflags@
ogg_ldflags := @ogg_ldflags@
vorbis_ldflags := @vorbis_ldflags@
+speex_ldflags := @speex_ldflags@
build_date := $(shell date)
uname_s := $(shell uname -s 2>/dev/null || echo "UNKNOWN_OS")
$(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @openssl_cppflags@ $<
$(object_dir)/spx_common.o: spx_common.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
- $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ogg_cppflags@ $<
+ $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) @ogg_cppflags@ $<
$(object_dir)/spxdec_filter.o: spxdec_filter.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
- $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ogg_cppflags@ $<
+ $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) @ogg_cppflags@ $<
$(object_dir)/spx_afh.o: spx_afh.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
- $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) @ogg_cppflags@ $<
+ $(Q) $(CC) -c -o $@ $(CPPFLAGS) $(DEBUG_CPPFLAGS) $(speex_cppflags) @ogg_cppflags@ $<
$(object_dir)/oggdec_filter.o: oggdec_filter.c | $(object_dir)
@[ -z "$(Q)" ] || echo 'CC $<'
para_play \
para_afh \
para_recv \
-: LDFLAGS += $(ogg_ldflags) $(vorbis_ldflags)
+: LDFLAGS += $(ogg_ldflags) $(vorbis_ldflags) $(speex_ldflags)
para_recv: $(recv_objs)
fi
if test "$have_speex" = "yes"; then
AC_DEFINE(HAVE_SPEEX, 1, define to 1 to turn on ogg/speex support)
+ AC_SUBST(speex_cppflags)
+ speex_ldflags="$speex_libs -lspeex"
+ AC_SUBST(speex_ldflags)
+
filters="$filters spxdec"
- speex_libs="-lspeex"
- server_ldflags="$server_ldflags $speex_libs"
- filter_ldflags="$filter_ldflags $speex_libs"
- audiod_ldflags="$audiod_ldflags $speex_libs"
- play_ldflags="$play_ldflags $speex_libs"
- afh_ldflags="$afh_ldflags $speex_libs"
- recv_ldflags="$recv_ldflags $speex_libs"
server_errlist_objs="$server_errlist_objs spx_afh spx_common"
filter_errlist_objs="$filter_errlist_objs spxdec_filter spx_common"