build-sys: fix make distcheck

- Do not refer to .c files managed by another makefile (this will fail
  make distclean)
- Do not refer to files by relative path (should use $top_srcdir for ex)
- Use LDADD for object linking instead of LDFLAGS, for linker flags
This commit is contained in:
Marc-André Lureau 2012-03-01 12:16:15 +01:00
parent 22ee470d4e
commit 534b71dfaa

View File

@ -13,12 +13,12 @@ if SUPPORT_AUTOMATED_TESTS
INCLUDES += -DAUTOMATED_TESTS
endif
AM_LDFLAGS = \
LDADD = \
$(top_builddir)/common/libspice-common.la \
$(top_builddir)/server/libspice-server.la \
$(NULL)
COMMON_BASE = \
../../common/backtrace.c \
basic_event_loop.c \
basic_event_loop.h \
test_util.h \