+libutil_a_SOURCES = ircd_util.c client_util.c
+
+TESTS: Makefile
+ printf '%s\n' $(check_PROGRAMS) | sed '/^runtests$$/d' > TESTS
+
+check-local: $(check_PROGRAMS) \
+ TESTS \
+ ../authd/authd \
+ ../bandb/bandb \
+ ../ssld/ssld \
+ ../wsockd/wsockd \
+ $(patsubst ../modules/%.c,../modules/.libs/%.so,$(wildcard ../modules/*.c)) \
+ $(patsubst ../modules/core/%.c,../modules/core/.libs/%.so,$(wildcard ../modules/core/*.c))
+
+ rm -rf runtime/modules && mkdir -p runtime/modules/autoload
+ for f in ../modules/core/.libs/*.so; do ln -s "../../../modules/core/.libs/$${f##*/}" "runtime/modules/$${f##*/}"; done
+ for f in ../modules/.libs/*.so; do ln -s "../../../../modules/.libs/$${f##*/}" "runtime/modules/autoload/$${f##*/}"; done