Imported Upstream version 1.15.1
[deb_xorg-server.git] / config / Makefile.am
1 AM_CFLAGS = $(DIX_CFLAGS)
2
3 noinst_LTLIBRARIES = libconfig.la
4 libconfig_la_SOURCES = config.c config-backends.h
5
6 if CONFIG_UDEV
7
8 AM_CFLAGS += $(UDEV_CFLAGS)
9 libconfig_la_SOURCES += udev.c
10 libconfig_la_LIBADD = $(UDEV_LIBS)
11
12 if XORG
13 xorgconfddir = $(datadir)/X11/$(XF86CONFIGDIR)
14 xorgconfd_DATA = 10-evdev.conf 10-quirks.conf
15 endif
16
17 else
18
19 if CONFIG_NEED_DBUS
20 AM_CFLAGS += $(DBUS_CFLAGS)
21 libconfig_la_SOURCES += dbus-core.c
22 libconfig_la_LIBADD = $(DBUS_LIBS)
23
24 if CONFIG_DBUS_API
25 dbusconfigdir = $(sysconfdir)/dbus-1/system.d
26 dbusconfig_DATA = xorg-server.conf
27
28 libconfig_la_SOURCES += dbus.c
29 endif
30
31 if CONFIG_HAL
32 AM_CFLAGS += $(HAL_CFLAGS)
33 libconfig_la_SOURCES += hal.c
34 libconfig_la_LIBADD += $(HAL_LIBS)
35 endif
36
37 else
38
39 if CONFIG_WSCONS
40 libconfig_la_SOURCES += wscons.c
41 endif # CONFIG_WSCONS
42
43 endif # CONFIG_NEED_DBUS
44
45 endif # !CONFIG_UDEV
46
47 EXTRA_DIST = xorg-server.conf x11-input.fdi 10-evdev.conf non-seat0.conf.multi-seat fdi2iclass.py 10-quirks.conf