build: sort building of tools, ensure that cross-pkg-config works.

Without this change, cross-pkg-config could bring up the wrong paths to
$includedir/xorg, but also fixes linkage to not use LDFLAGS where LDADD
should have been used.

Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com>
Signed-off-by: Christoph Brill <egore911@egore911.de>
This commit is contained in:
Diego Elio Pettenò
2011-05-14 03:00:02 +02:00
committed by Christoph Brill
parent 4d4c4d0ff5
commit 4005df6607

View File

@@ -20,13 +20,13 @@
bin_PROGRAMS = synclient syndaemon
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(sdkdir)
AM_CFLAGS = $(XI_CFLAGS)
AM_LDFLAGS = $(XI_LIBS)
AM_CPPFLAGS = -I$(top_srcdir)/include $(XORG_CFLAGS)
synclient_SOURCES = synclient.c
synclient_CFLAGS = $(XI_CFLAGS)
synclient_LDADD = $(XI_LIBS)
syndaemon_SOURCES = syndaemon.c
syndaemon_CFLAGS = $(AM_CFLAGS) $(XTST_CFLAGS)
syndaemon_LDFLAGS = $(AM_LDFLAGS) $(XTST_LIBS)
syndaemon_CFLAGS = $(XI_CFLAGS) $(XTST_CFLAGS)
syndaemon_LDADD = $(XI_LIBS) $(XTST_LIBS)