]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
build: Construct audioc object list in Makefile.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 24 Jun 2023 17:34:56 +0000 (19:34 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Mar 2024 11:34:49 +0000 (12:34 +0100)
This removes the last caller of add_dot_o() in configure.ac, so remove
this function.

Makefile.in
Makefile.real
configure.ac

index 5ee52deba6a54f216759515e505caa7fd34872cd..6e73250013529eda8494f86f31caabf0431a711c 100644 (file)
@@ -35,8 +35,6 @@ HAVE_CURSES := @HAVE_CURSES@
 
 executables := @executables@
 
-audioc_objs := @audioc_objs@
-
 speex_cppflags := @speex_cppflags@
 opus_cppflags := @opus_cppflags@
 vorbis_cppflags := @vorbis_cppflags@
index 67107744e3234e5cad3a0f3dbfc8ec2a2a9777c1..1d671dbefd515b268489a439e5f39e9817d9cc63 100644 (file)
@@ -277,6 +277,10 @@ ifeq ($(HAVE_ALSA),yes)
        write_objs += alsa_write.o
 endif
 
+audioc_objs := $(addsuffix .o, audioc string lsu net fd time version)
+ifeq ($(HAVE_READLINE),yes)
+       audioc_objs += buffer_tree.o interactive.o sched.o
+endif
 
 # sort removes duplicate words, which is all we need here
 all_objs := $(sort $(recv_objs) $(filter_objs) $(client_objs) $(gui_objs) \
index 5906f69eff569f8dce5b773c2b7b1f99f1857923..97fcafc664a5efb7bebed31dd93b7016b41c81f2 100644 (file)
@@ -5,7 +5,6 @@ AC_INIT([paraslash], [m4_esyscmd_s(./GIT-VERSION-GEN)],
 AC_CONFIG_HEADERS([config.h])
 
 AC_CONFIG_FILES([Makefile])
-AC_DEFUN([add_dot_o],[$(for i in $@; do printf "$i.o "; done)])
 AC_DEFUN([LIB_ARG_WITH], [
        AC_ARG_WITH($1-headers, [AS_HELP_STRING(--with-$1-headers=dir,
                [look for $1 headers in dir])])
@@ -416,24 +415,6 @@ if test $HAVE_CURSES = yes; then
        executables="$executables gui"
 fi
 ######################################################################## audioc
-audioc_objs="
-       audioc
-       string
-       lsu
-       net
-       fd
-       time
-       version
-"
-if test $HAVE_READLINE = yes; then
-       audioc_objs="$audioc_objs
-               buffer_tree
-               interactive
-               sched
-       "
-fi
-AC_SUBST(audioc_objs, add_dot_o($audioc_objs))
-
 AC_SUBST(executables)
 
 AC_OUTPUT