summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-02-16 09:07:32 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-02-16 09:07:32 -0500
commitdbd8ac5d40391c105a9e6acee5ee0b4a31c649b3 (patch)
tree3cf86cc6d793b80b0efa2b4ce717825d626cb2dd
parent7ae3b2be3c4f77f023f79f67430cf45fb97cab8d (diff)
parent22ff0a5176ac039cc5351873e5d8a1f68cd3e212 (diff)
downloadjack1-dbd8ac5d40391c105a9e6acee5ee0b4a31c649b3.tar.gz
Merge pull request #31 from erikd/master
Autotool fixes
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am2
-rwxr-xr-xautogen.sh5
-rw-r--r--configure.ac160
-rw-r--r--drivers/alsa/Makefile.am5
-rw-r--r--drivers/netjack/Makefile.am5
-rw-r--r--jackd/Makefile.am17
-rw-r--r--libjack/Makefile.am58
8 files changed, 147 insertions, 107 deletions
diff --git a/.gitignore b/.gitignore
index a1955bd..9946dcc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,6 +50,7 @@ jack/version.h
jackd/jack_md5.h
jackd/jackd
jackd/jackd.1
+m4
tags
tools/alsa_in
tools/alsa_out
@@ -66,3 +67,4 @@ tools/jack_thread_wait
tools/jack_transport
tools/jack_unload
tools/jackrec
+libjack/.dirstamp
diff --git a/Makefile.am b/Makefile.am
index b4c4c63..1b638b9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,8 @@
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure config.h.in \
stamp-h.in config.log config.cache config.status
+ACLOCAL_AMFLAGS = -I m4
+
if HAVE_DOXYGEN
DOC_DIR = doc
dist-check-doxygen:
diff --git a/autogen.sh b/autogen.sh
index 27c2011..457839a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
-# on OS X, which(1) returns 0 even when it can't find a program
+# on OS X, which(1) returns 0 even when it can't find a program
#
if type libtoolize >/dev/null 2>&1
@@ -18,11 +18,12 @@ else
fi
fi
-$LIBTOOLIZE --force 2>&1 | sed '/^You should/d' || {
+$LIBTOOLIZE --force --automake 2>&1 | sed '/^You should/d' || {
echo "libtool failed, exiting..."
exit 1
}
+ACLOCAL_FLAGS="-I m4"
aclocal $ACLOCAL_FLAGS || {
echo "aclocal \$ACLOCAL_FLAGS where \$ACLOCAL_FLAGS= failed, exiting..."
exit 1
diff --git a/configure.ac b/configure.ac
index a71f60f..562967b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,12 +1,18 @@
dnl Process this file with autoconf to produce a configure script.
dnl $Id$
-AC_INIT(jackd/jackd.c)
+AC_INIT([jack-audio-connection-kit],[0.124.2],
+ [jack-devel@lists.jackaudio.org],[],[http://www.jackaudio.org/])
+AC_CONFIG_SRCDIR([jackd/jackd.c])
+
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_AUX_DIR(config)
+AC_LANG([C])
dnl
dnl Check for existing JACK installs
-dnl
+dnl
AC_ARG_ENABLE(force-install,
AC_HELP_STRING([--enable-force-install],
@@ -23,18 +29,18 @@ for dir in /usr/lib /usr/local/lib /opt/lib ; do
not_overwriting=$(expr $not_overwriting + 1)
fi
installs="$installs $dir"
- fi
+ fi
fi
done
if test "x$FORCE_INSTALL" != "xyes" -a $not_overwriting -gt 0 ; then
- echo
+ AC_MSG_RESULT(yes)
echo
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
echo "You appear to have at least one existing installation of JACK."
echo
echo "Complete or partial JACK installs exist in:$installs"
- echo
+ echo
echo "Installing this version will leave at least one of these"
echo "existing installations installed and this will probably break"
echo "JACK on your machine. "
@@ -54,6 +60,7 @@ if test "x$FORCE_INSTALL" != "xyes" -a $not_overwriting -gt 0 ; then
exit 1
fi
fi
+AC_MSG_RESULT(no)
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_BUILD
@@ -67,9 +74,17 @@ dnl interfaces are changed
dnl micro version = incremented when implementation-only
dnl changes are made
dnl ---
-JACK_MAJOR_VERSION=0
-JACK_MINOR_VERSION=124
-JACK_MICRO_VERSION=3
+
+JACK_MAJOR_VERSION=$(echo $PACKAGE_VERSION | sed "s/\..*//")
+JACK_MINOR_VERSION=$(echo $PACKAGE_VERSION | sed "s/${JACK_MAJOR_VERSION}\.//;s/\..*//")
+JACK_MICRO_VERSION=$(echo $PACKAGE_VERSION | sed "s/.*\.//g")
+
+if test "${JACK_MAJOR_VERSION}.${JACK_MINOR_VERSION}.${JACK_MICRO_VERSION}" != "${PACKAGE_VERSION}" ; then
+ echo "ooops"
+ echo "Found : ${JACK_MAJOR_VERSION}.${JACK_MINOR_VERSION}.${JACK_MICRO_VERSION}"
+ echo "Expected : ${PACKAGE_VERSION}"
+ exit 1
+ fi
dnl ---
dnl HOWTO: updating the jack protocol version
@@ -85,7 +100,7 @@ JACK_PROTOCOL_VERSION=25
dnl ---
dnl HOWTO: updating the libjack interface version
dnl
-dnl current = incremented whenever the public libjack API is changed
+dnl current = incremented whenever the public libjack API is changed
dnl revision = incremented when the libjack implementation is changed
dnl age = current libjack is both source and binary compatible with
dnl libjack interfaces current,current-1,...,current-age
@@ -100,10 +115,6 @@ JACK_API_CURRENT=0
JACK_API_REVISION=28
JACK_API_AGE=0
-AC_SUBST(JACK_MAJOR_VERSION)
-AC_SUBST(JACK_MINOR_VERSION)
-AC_SUBST(JACK_MICRO_VERSION)
-
AC_SUBST(JACK_PROTOCOL_VERSION)
AC_DEFINE_UNQUOTED(PROTOCOL_VERSION, "$JACK_PROTOCOL_VERSION", [Protocol version])
@@ -116,16 +127,17 @@ JACK_SO_VERSION=${JACK_API_CURRENT}:${JACK_API_REVISION}:${JACK_API_AGE}
JACK_VERSION=$JACK_MAJOR_VERSION.$JACK_MINOR_VERSION.${JACK_MICRO_VERSION}${BETA}
JACK_RELEASE=$JACK_MAJOR_VERSION-$JACK_MINOR_VERSION-${JACK_MICRO_VERSION}${BETA}
+
AC_SUBST(JACK_SO_VERSION)
-AC_SUBST(JACK_VERSION)
AC_SUBST(JACK_RELEASE)
-AM_INIT_AUTOMAKE(jack-audio-connection-kit,${JACK_VERSION})
+AM_INIT_AUTOMAKE
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
dnl
dnl save any user-provided CFLAGS so we can forget
dnl about any nonsense that configure generates
-dnl
+dnl
ORIGINAL_CFLAGS="$CFLAGS"
@@ -189,7 +201,7 @@ case "${host_os}" in
;;
solaris*)
## libnn=lib/sparcv9 ## on 64-bit only, but that's compiler-specific
- ;;
+ ;;
esac
## take care not to override the command-line setting
@@ -230,7 +242,7 @@ AC_CHECK_FUNC(getopt_long, [],
AC_CHECK_FUNC(gethostent, [], AC_CHECK_LIB(nsl, gethostent))
AC_CHECK_FUNC(setsockopt, [], AC_CHECK_LIB(socket, setsockopt))
AC_CHECK_FUNC(connect, [], AC_CHECK_LIB(inet, connect))
-AC_CHECK_FUNC(dlopen, [],
+AC_CHECK_FUNC(dlopen, [],
AC_CHECK_LIB(dl, dlopen, [],
AC_MSG_ERROR([*** JACK requires dynamic load support])))
AC_CHECK_FUNC(pthread_create, [],
@@ -255,21 +267,21 @@ AC_EGREP_CPP( ppoll,
echo "no"
] )
-
-AC_CHECK_FUNC(clock_gettime,
+
+AC_CHECK_FUNC(clock_gettime,
[
AC_DEFINE(HAVE_CLOCK_GETTIME,0,"Whether or not clock_gettime can be found in system libraries")
- ],
+ ],
#
# if not found, check librt specifically
#
- AC_CHECK_LIB(rt, clock_gettime,
+ AC_CHECK_LIB(rt, clock_gettime,
[
AC_DEFINE(HAVE_CLOCK_GETTIME,1,"Whether or not clock_gettime can be found in system libraries")
OS_LDFLAGS="$OS_LDFLAGS -lrt"
])
-)
+)
# should we use mlockall() on this platform?
if test "x$JACK_DO_NOT_MLOCK" = "x"; then
@@ -313,13 +325,13 @@ AC_ARG_ENABLE(ancient_libc,
JACK_LIBC_HELPER_FLAGS="-D_XOPEN_SOURCE=600 -D_BSD_SOURCE",
JACK_LIBC_HELPER_FLAGS=""
)
-
-JACK_CORE_CFLAGS="$JACK_CORE_CFLAGS $JACK_LIBC_HELPER_FLAGS"
+
+JACK_CORE_CFLAGS="$JACK_CORE_CFLAGS $JACK_LIBC_HELPER_FLAGS"
case $build_os in
# we need weak linkage which appeared in 10.2, but lets ask for 10.4 anyway
darwin*) JACK_CORE_CFLAGS="$JACK_CORE_CFLAGS -mmacosx-version-min=10.4" ;;
-esac
+esac
AC_ARG_WITH(cpu-target,
[ --with-cpu-target=cpu-type explicit, overriding argument for gcc -march= flag])
@@ -347,7 +359,7 @@ fi
if test "build_cpu" = "powerpc" -o "$build_cpu" = "powerpc64" ; then
AC_DEFINE(POWERPC, 1, "Are we running a ppc CPU?")
-
+
############################
# Check for Altivec assembly
############################
@@ -355,12 +367,12 @@ if test "build_cpu" = "powerpc" -o "$build_cpu" = "powerpc64" ; then
AC_ARG_ENABLE(altivec,
AC_HELP_STRING([--enable-altivec],[enable Altivec support (default=auto)]),,
[ enable_altivec=yes ])
-
+
if test "x$enable_altivec" = xyes; then
-
+
AC_MSG_CHECKING(whether we can compile Altivec code)
-
- AC_COMPILE_IFELSE([asm ("vand %v0, %v0, %v0");],
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([asm ("vand %v0, %v0, %v0");])],
AC_DEFINE(USE_ALTIVEC, 1, [Define to 1 if Altivec assembly is available.])
AC_DEFINE(HAVE_ALTIVEC_LINUX, 1, "Is there Altivec Support ?")
ALTIVEC_OPT_FLAGS="-maltivec -mabi=altivec"
@@ -370,21 +382,21 @@ if test "build_cpu" = "powerpc" -o "$build_cpu" = "powerpc64" ; then
AC_MSG_RESULT(no)
AC_MSG_WARN([The assembler does not support the Altivec command set.])
)
-
+
fi
dnl -mcpu=7450 does not reliably work with gcc 3.*
-
+
JACK_OPT_CFLAGS="-O2 -mcpu=7400 $ALTIVEC_OPT_FLAGS -mhard-float -mpowerpc-gfxopt"
if test "$build_cpu" = "powerpc64"; then
- JACK_OPT_CFLAGS="-O2 -mcpu=powerpc64 $ALTIVEC_OPT_FLAGS -mhard-float"
+ JACK_OPT_CFLAGS="-O2 -mcpu=powerpc64 $ALTIVEC_OPT_FLAGS -mhard-float"
fi
elif echo $build_cpu | egrep '(i.86|x86_64)' >/dev/null; then
dnl Check for SSE usability
-
+
if test -r /proc/cpuinfo ; then
procflags=`grep '^flags' /proc/cpuinfo`
if echo $procflags | grep -s sse ; then
@@ -396,56 +408,56 @@ elif echo $build_cpu | egrep '(i.86|x86_64)' >/dev/null; then
cpu_supports_sse=yes
AC_MSG_WARN([Assuming your x86/x86_64 system can support SSE. Use --disable-sse if this is not the case])
fi
-
+
AC_ARG_ENABLE(optimization-by-compiler,
AC_HELP_STRING([--enable-optimization-by-compiler],[use compiler (NOT processor) capabilities to determine optimization flags (default=no)]),
optimization_by_compiler=yes,
optimization_by_compiler=no
)
-
+
AC_ARG_ENABLE(optimization-by-cpu,
AC_HELP_STRING([--enable-optimization-by-cpu],[use processor capabilities to determine optimization flags (default=yes)]),,
optimization_by_cpu=yes
)
-
+
AC_ARG_ENABLE(sse,
AC_HELP_STRING([--enable-sse],[enable SSE support (default=auto)]),,
enable_sse=yes)
-
+
if test "x$enable_sse" = xyes; then
-
+
AC_MSG_CHECKING(whether we can compile SSE code)
-
- AC_COMPILE_IFELSE([asm ("movntps %xmm0, 0");],
+
+ AC_COMPILE_IFELSE([AC_LANG_SOURCE([asm ("movntps %xmm0, 0");])],
[
if test x$optimization_by_cpu = xyes ; then
if test x$cpu_supports_sse = xyes ; then
SSE_FLAGS="-msse -mfpmath=sse"
fi
- else
+ else
SSE_FLAGS="-msse -mfpmath=sse"
fi
-
+
AC_MSG_RESULT(yes)
],
[
enable_sse=no
AC_MSG_RESULT(no)
- AC_MSG_WARN([The assembler does not support the SSE command set.])
+ AC_MSG_WARN([The assembler does not support the SSE command set.])
])
fi
-
+
AC_DEFINE(x86, 1, "Nope it's intel")
COMMON_X86_OPT_FLAGS="-O3 -fomit-frame-pointer -ffast-math -funroll-loops"
dnl
-dnl its a little sad that OS X doesn't make it possible to identify
+dnl its a little sad that OS X doesn't make it possible to identify
dnl the build_cpu a little more precisely. on os x we always get "i386"
-dnl as the CPU type. we miss out on some possible optimizations as
+dnl as the CPU type. we miss out on some possible optimizations as
dnl a result. oh well.
-dnl
-
+dnl
+
if test x$with_cpu_target != x ; then
JACK_OPT_CFLAGS="-march=$with_cpu_target -mtune=$with_cpu_target"
else
@@ -460,7 +472,7 @@ dnl
dnl
dnl do not add h/w specific flags if asked to let compiler
dnl to the optimization
-dnl
+dnl
if test x$optimization_by_compiler != xyes ; then
JACK_OPT_CFLAGS="$COMMON_X86_OPT_FLAGS $JACK_OPT_CFLAGS $SSE_FLAGS"
@@ -490,7 +502,7 @@ AC_ARG_ENABLE(optimize,
# no optimization, so lets get debugging symbols instead
JACK_OPT_CFLAGS="-g"
AC_MSG_WARN([no optimization.........................])
- fi
+ fi
],
[
# no optimization, so lets get debugging symbols instead
@@ -510,7 +522,7 @@ AC_SUBST(JACK_CORE_CFLAGS)
dnl
dnl use JACK_CFLAGS for jackd compilation
-dnl
+dnl
CFLAGS="$CFLAGS $JACK_CFLAGS"
@@ -518,20 +530,20 @@ CFLAGS="$CFLAGS $JACK_CFLAGS"
buffer_resizing=yes
AC_ARG_ENABLE(resize,
AC_HELP_STRING([--enable-resize], [enable buffer resizing feature (default=yes)]),
- [
+ [
if test x$enable_resize = xno ; then
buffer_resizing=no
fi
]
)
-if test x$buffer_resizing != xno; then
+if test x$buffer_resizing != xno; then
AC_DEFINE(DO_BUFFER_RESIZE,,[Enable buffer resizing])
fi
AC_ARG_ENABLE(valgrind-clean,
AC_HELP_STRING([--enable-valgrind-clean],[spend a few extra CPU cycles avoiding unnecessary valgrind warnings (default=no)]),
- [
+ [
if test x$enable_valgrind_clean != xno ; then
AC_DEFINE(VALGRIND_CLEAN,,[clean up for valgrind])
fi
@@ -541,7 +553,7 @@ AC_ARG_ENABLE(valgrind-clean,
AC_ARG_ENABLE(debug,
AC_HELP_STRING([--enable-debug],
[enable debugging messages in jackd and libjack (default=no)]),
- [
+ [
if test x$enable_debug != xno ; then
AC_DEFINE(DEBUG_ENABLED,,[Enable debugging messages])
fi
@@ -551,11 +563,11 @@ AC_ARG_ENABLE(debug,
AC_ARG_ENABLE(timestamps,
AC_HELP_STRING([--enable-timestamps],
[allow clients to use the JACK timestamp API (JACK developers only) (default=no)]),
- [
+ [
if test x$enable_timestamps != xno ; then
AC_DEFINE(WITH_TIMESTAMPS,,[Enable JACK timestamp API])
fi
- ]
+ ]
)
AC_ARG_ENABLE(preemption-check,
@@ -603,7 +615,7 @@ AC_ARG_ENABLE(oldtrans,
AC_HELP_STRING([--disable-oldtrans],[remove old transport interfaces (default=yes)]),
[ if test "x$enable_oldtrans" = "xno" ; then
with_oldtrans=no
- fi
+ fi
]
)
if test "x$with_oldtrans" != "xno" ; then
@@ -613,12 +625,12 @@ fi
STRIPPED_JACKD=false
AC_ARG_ENABLE(stripped-jackd,
AC_HELP_STRING([--enable-stripped-jackd],[strip jack before computing its md5 sum (useful only with Linux 2.4 kernel)]),
- [ if test "x$USE_CAPABILITIES" != "xtrue" ; then
+ [ if test "x$USE_CAPABILITIES" != "xtrue" ; then
AC_MSG_WARN([*** capabilities not enabled, stripped jackd has no effect])
elif test "x$enable_stripped_jackd" != "xno"; then
- STRIPPED_JACKD=true
- fi
- ]
+ STRIPPED_JACKD=true
+ fi
+ ]
)
# plugins go in the addon dir.
@@ -690,7 +702,7 @@ fi
HAVE_ZITA_BRIDGE_DEPS=false
HAVE_ZITA_RESAMPLE=false
HAVE_ZITA_ALSA_PCMI=false
-
+
case $build_os in
linux*)
AC_CHECK_LIB(zita-resampler, _Z28zita_resampler_major_versionv,
@@ -717,7 +729,7 @@ case $build_os in
AC_DEFINE(HAVE_ZITA_BRIDGE_DEPS,1,"Whether we have the libs needed for Zita ALSA bridge support")
HAVE_ZITA_BRIDGE_DEPS=true
fi
- ]
+ ]
)
;;
esac
@@ -806,7 +818,7 @@ fi
AM_CONDITIONAL(HAVE_COREAUDIO, $HAVE_COREAUDIO)
AC_ARG_ENABLE(oss, AC_HELP_STRING([--disable-oss],[ignore OSS driver ]),
- TRY_OSS=$enableval , TRY_OSS=yes )
+ TRY_OSS=$enableval , TRY_OSS=yes )
HAVE_OSS="false"
if test "x$TRY_OSS" = "xyes"
then
@@ -818,7 +830,7 @@ fi
AM_CONDITIONAL(HAVE_OSS, $HAVE_OSS)
AC_ARG_ENABLE(sun, AC_HELP_STRING([--disable-sun],[ignore Sun driver ]),
- TRY_SUN=$enableval , TRY_SUN=yes )
+ TRY_SUN=$enableval , TRY_SUN=yes )
HAVE_SUN="false"
if test "x$TRY_SUN" = "xyes"
then
@@ -830,7 +842,7 @@ fi
AM_CONDITIONAL(HAVE_SUN, $HAVE_SUN)
AC_ARG_ENABLE(freebob, AC_HELP_STRING([--disable-freebob],[ignore FreeBob driver ]),
- TRY_FREEBOB=$enableval , TRY_FREEBOB=yes )
+ TRY_FREEBOB=$enableval , TRY_FREEBOB=yes )
HAVE_FREEBOB="false"
if test "x$TRY_FREEBOB" = "xyes"
then
@@ -847,7 +859,7 @@ fi
AM_CONDITIONAL(HAVE_FREEBOB,$HAVE_FREEBOB)
AC_ARG_ENABLE(firewire, AC_HELP_STRING([--disable-firewire],[ignore FireWire driver (FFADO)]),
- TRY_FIREWIRE=$enableval , TRY_FIREWIRE=yes )
+ TRY_FIREWIRE=$enableval , TRY_FIREWIRE=yes )
HAVE_FIREWIRE="false"
if test "x$TRY_FIREWIRE" = "xyes"
then
@@ -864,7 +876,7 @@ fi
AM_CONDITIONAL(HAVE_FIREWIRE,$HAVE_FIREWIRE)
AC_ARG_ENABLE(alsa, AC_HELP_STRING([--disable-alsa],[ignore ALSA driver ]),
- TRY_ALSA=$enableval , TRY_ALSA=yes )
+ TRY_ALSA=$enableval , TRY_ALSA=yes )
HAVE_ALSA="false"
if test "x$TRY_ALSA" = "xyes"
then
@@ -897,7 +909,7 @@ AC_SUBST(JACK_SEMAPHORE_KEY)
# On some systems, readline depends on termcap or ncurses. But, the
# MacOSX linker complains bitterly if these libraries are explicitly
-# referenced.
+# referenced.
#
# AC_CHECK_LIB() foolishly assumes that checking a library for an entry
# point always returns the same result regardless of any dependent
@@ -985,7 +997,7 @@ dnl Output summary message
dnl
echo
-echo $PACKAGE $VERSION :
+echo $PACKAGE_NAME $PACKAGE_VERSION :
echo
echo \| Build with ALSA support............................... : $HAVE_ALSA
echo \| Build with old FireWire \(FreeBob\) support............. : $HAVE_FREEBOB
@@ -1009,4 +1021,4 @@ echo \| Default tmp dir....................................... : $DEFAULT_TMP_DI
echo
-
+
diff --git a/drivers/alsa/Makefile.am b/drivers/alsa/Makefile.am
index 04b6284..93c8b17 100644
--- a/drivers/alsa/Makefile.am
+++ b/drivers/alsa/Makefile.am
@@ -18,3 +18,8 @@ noinst_HEADERS = alsa_driver.h \
usx2y.h
jack_alsa_la_LIBADD = $(ALSA_LIBS) $(top_builddir)/jackd/libjackserver.la
+
+
+noinst_LTLIBRARIES = libmemops.la
+
+libmemops_la_SOURCES = memops.c
diff --git a/drivers/netjack/Makefile.am b/drivers/netjack/Makefile.am
index 20fdd27..ccde901 100644
--- a/drivers/netjack/Makefile.am
+++ b/drivers/netjack/Makefile.am
@@ -1,6 +1,6 @@
MAINTAINCLEANFILES = Makefile.in
-AM_CFLAGS = $(JACK_CFLAGS)
+AM_CFLAGS = $(JACK_CFLAGS)
plugindir = $(ADDON_DIR)
@@ -14,3 +14,6 @@ jack_net_la_LIBADD = $(top_builddir)/libjack/libjack.la $(top_builddir)/jackd/li
noinst_HEADERS = netjack.h net_driver.h netjack_packet.h
+noinst_LTLIBRARIES = libnetjack_packet.la
+
+libnetjack_packet_la_SOURCES = netjack_packet.c
diff --git a/jackd/Makefile.am b/jackd/Makefile.am
index 30d0ac2..eb03ca3 100644
--- a/jackd/Makefile.am
+++ b/jackd/Makefile.am
@@ -1,4 +1,6 @@
-MAINTAINERCLEANFILES = Makefile.in jackd.1 jack_md5.h
+AUTOMAKE_OPTIONS = subdir-objects
+
+MAINTAINERCLEANFILES = Makefile.in jackd.1 jack_md5.h
if USE_CAPABILITIES
CAP_PROGS = jackstart
@@ -44,19 +46,10 @@ lib_LTLIBRARIES = libjackserver.la
libjackserver_la_CFLAGS = $(AM_CFLAGS)
-libjackserver_la_SOURCES = engine.c clientengine.c transengine.c controlapi.c \
- ../libjack/systemtest.c ../libjack/sanitycheck.c \
- ../libjack/client.c ../libjack/driver.c ../libjack/intclient.c \
- ../libjack/messagebuffer.c ../libjack/pool.c ../libjack/port.c \
- ../libjack/midiport.c ../libjack/ringbuffer.c ../libjack/shm.c \
- ../libjack/thread.c ../libjack/time.c ../libjack/transclient.c \
- ../libjack/unlock.c ../libjack/uuid.c ../libjack/metadata.c
-libjackserver_la_LIBADD = simd.lo -ldb @OS_LDFLAGS@
+libjackserver_la_SOURCES = engine.c clientengine.c transengine.c controlapi.c
+libjackserver_la_LIBADD = $(top_builddir)/libjack/simd.lo $(top_builddir)/libjack/libjackcommon.la $(top_builddir)/libjack/libjackdaemon.la -ldb @OS_LDFLAGS@
libjackserver_la_LDFLAGS = -export-dynamic -version-info @JACK_SO_VERSION@
-simd.lo: $(srcdir)/../libjack/simd.c
- $(LIBTOOL) --mode=compile $(CC) -I$(top_builddir) $(JACK_CORE_CFLAGS) $(SIMD_CFLAGS) -c -o simd.lo $(srcdir)/../libjack/simd.c
-
man_MANS = jackd.1 jackstart.1
EXTRA_DIST = $(man_MANS)
diff --git a/libjack/Makefile.am b/libjack/Makefile.am
index 8d248e6..cda2e9d 100644
--- a/libjack/Makefile.am
+++ b/libjack/Makefile.am
@@ -10,20 +10,20 @@ install-exec-hook:
endif
SOURCE_FILES = \
- client.c \
- intclient.c \
- messagebuffer.c \
- pool.c \
- port.c \
- metadata.c \
- midiport.c \
- ringbuffer.c \
- shm.c \
- thread.c \
- time.c \
- transclient.c \
- unlock.c \
- uuid.c
+ client.c \
+ intclient.c \
+ messagebuffer.c \
+ metadata.c \
+ midiport.c \
+ pool.c \
+ port.c \
+ ringbuffer.c \
+ shm.c \
+ thread.c \
+ time.c \
+ transclient.c \
+ unlock.c \
+ uuid.c
simd.lo: $(srcdir)/simd.c
$(LIBTOOL) --mode=compile $(CC) -I$(top_builddir) $(JACK_CORE_CFLAGS) $(SIMD_CFLAGS) -c -o simd.lo $(srcdir)/simd.c
@@ -35,9 +35,31 @@ noinst_HEADERS = local.h
AM_CFLAGS = $(JACK_CFLAGS) -DJACK_LOCATION=\"$(bindir)\"
AM_CXXFLAGS = $(JACK_CFLAGS)
-libjack_la_CFLAGS = $(AM_CFLAGS)
-
-libjack_la_SOURCES = $(SOURCE_FILES)
-libjack_la_LIBADD = simd.lo -ldb @OS_LDFLAGS@
+libjack_la_SOURCES =
+libjack_la_LIBADD = libjackcommon.la simd.lo -ldb @OS_LDFLAGS@
libjack_la_LDFLAGS = -export-dynamic -version-info @JACK_SO_VERSION@
+noinst_LTLIBRARIES = libjackcommon.la libjackdaemon.la
+
+libjackcommon_la_CFLAGS = $(AM_CFLAGS)
+libjackcommon_la_SOURCES = \
+ client.c \
+ intclient.c \
+ messagebuffer.c \
+ metadata.c \
+ midiport.c \
+ pool.c \
+ port.c \
+ ringbuffer.c \
+ shm.c \
+ thread.c \
+ time.c \
+ transclient.c \
+ unlock.c \
+ uuid.c
+
+libjackdaemon_la_CFLAGS = $(AM_CFLAGS)
+libjackdaemon_la_SOURCES = \
+ driver.c \
+ systemtest.c \
+ sanitycheck.c