tests: implicitly link *_util.c into every test
This commit is contained in:
parent
25d169b649
commit
875051669a
1 changed files with 3 additions and 15 deletions
|
@ -14,29 +14,17 @@ check_PROGRAMS = runtests \
|
||||||
AM_CFLAGS=$(WARNFLAGS)
|
AM_CFLAGS=$(WARNFLAGS)
|
||||||
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
|
AM_CPPFLAGS = $(DEFAULT_INCLUDES) -I../librb/include -I..
|
||||||
AM_LDFLAGS = -no-install
|
AM_LDFLAGS = -no-install
|
||||||
LDADD = tap/libtap.a ../librb/src/librb.la ../ircd/libircd.la -ldl
|
LDADD = libutil.a tap/libtap.a ../librb/src/librb.la ../ircd/libircd.la -ldl
|
||||||
|
|
||||||
# Override -rpath or programs will be linked to installed libraries
|
# Override -rpath or programs will be linked to installed libraries
|
||||||
libdir=$(abs_top_builddir)
|
libdir=$(abs_top_builddir)
|
||||||
|
|
||||||
runtests_CPPFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
|
runtests_CPPFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
|
||||||
-DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
|
-DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
|
||||||
check_LIBRARIES = tap/libtap.a
|
check_LIBRARIES = tap/libtap.a libutil.a
|
||||||
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
|
tap_libtap_a_SOURCES = tap/basic.c tap/basic.h \
|
||||||
tap/float.c tap/float.h tap/macros.h
|
tap/float.c tap/float.h tap/macros.h
|
||||||
|
libutil_a_SOURCES = ircd_util.c client_util.c
|
||||||
chmode1_SOURCES = chmode1.c ircd_util.c client_util.c
|
|
||||||
match1_SOURCES = match1.c
|
|
||||||
msgbuf_parse1_SOURCES = msgbuf_parse1.c
|
|
||||||
msgbuf_unparse1_SOURCES = msgbuf_unparse1.c
|
|
||||||
hostmask1_SOURCES = hostmask1.c
|
|
||||||
rb_dictionary1_SOURCES = rb_dictionary1.c
|
|
||||||
rb_snprintf_append1_SOURCES = rb_snprintf_append1.c
|
|
||||||
rb_snprintf_try_append1_SOURCES = rb_snprintf_try_append1.c
|
|
||||||
sasl_abort1_SOURCES = sasl_abort1.c ircd_util.c client_util.c
|
|
||||||
send1_SOURCES = send1.c ircd_util.c client_util.c
|
|
||||||
serv_connect1_SOURCES = serv_connect1.c ircd_util.c client_util.c
|
|
||||||
substitution1_SOURCES = substitution1.c
|
|
||||||
|
|
||||||
check-local: $(check_PROGRAMS) \
|
check-local: $(check_PROGRAMS) \
|
||||||
../authd/authd \
|
../authd/authd \
|
||||||
|
|
Loading…
Reference in a new issue