executables := @executables@
audioc_objs := @audioc_objs@
-write_objs := @write_objs@
speex_cppflags := @speex_cppflags@
opus_cppflags := @opus_cppflags@
play_objs += resample_filter.o check_wav.o
endif
+write_objs := $(addsuffix .o, write write_common file_write time fd \
+ string sched stdin buffer_tree check_wav version)
+ifeq ($(NEED_AO_OBJECTS),yes)
+ write_objs += ao_write.o
+endif
+ifeq ($(HAVE_OSS),yes)
+ write_objs += oss_write.o
+endif
+ifeq ($(HAVE_ALSA),yes)
+ write_objs += alsa_write.o
+endif
+
+
# sort removes duplicate words, which is all we need here
all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
$(audiod_objs) $(audioc_objs) $(mixer_objs) $(server_objs) \
build_gui="yes"
executables="$executables gui"
fi
-######################################################################### write
-write_objs="
- write
- write_common
- file_write
- time
- fd
- string
- sched
- stdin
- buffer_tree
- check_wav
- version
-"
-
-if test $NEED_AO_OBJECTS = yes; then
- write_objs="$write_objs ao_write"
-fi
-if test $HAVE_OSS = yes; then
- write_objs="$write_objs oss_write"
-fi
-if test $HAVE_ALSA = yes; then
- write_objs="$write_objs alsa_write"
-fi
-AC_SUBST(write_objs, add_dot_o($write_objs))
######################################################################## audioc
audioc_objs="
audioc