1if UNITTESTS
2SUBDIRS= . xi1 xi2
3check_PROGRAMS = xkb input xtest
4check_LTLIBRARIES = libxservertest.la
5
6TESTS=$(check_PROGRAMS)
7
8AM_CFLAGS = $(DIX_CFLAGS) $(GLIB_CFLAGS) @XORG_CFLAGS@
9INCLUDES = @XORG_INCS@
10TEST_LDADD=libxservertest.la $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS) $(GLIB_LIBS)
11
12if SPECIAL_DTRACE_OBJECTS
13TEST_LDADD += $(OS_LIB) $(DIX_LIB)
14endif
15
16xkb_LDADD=$(TEST_LDADD)
17input_LDADD=$(TEST_LDADD)
18xtest_LDADD=$(TEST_LDADD)
19
20libxservertest_la_LIBADD = \
21            $(XSERVER_LIBS) \
22            $(top_builddir)/hw/xfree86/loader/libloader.la \
23            $(top_builddir)/hw/xfree86/os-support/libxorgos.la \
24            $(top_builddir)/hw/xfree86/common/libcommon.la \
25            $(top_builddir)/hw/xfree86/parser/libxf86config_internal.la \
26            $(top_builddir)/hw/xfree86/dixmods/libdixmods.la \
27            $(top_builddir)/hw/xfree86/modes/libxf86modes.la \
28            $(top_builddir)/hw/xfree86/ramdac/libramdac.la \
29            $(top_builddir)/hw/xfree86/ddc/libddc.la \
30            $(top_builddir)/hw/xfree86/i2c/libi2c.la \
31            $(top_builddir)/hw/xfree86/dixmods/libxorgxkb.la \
32            $(top_builddir)/hw/xfree86/libxorg.la \
33            $(top_builddir)/mi/libmi.la \
34            $(top_builddir)/os/libos.la \
35            @XORG_LIBS@
36endif
37
38CLEANFILES=libxservertest.c
39
40libxservertest.c:
41	touch $@
42