1AUTOMAKE_OPTIONS=nostdinc
2ACLOCAL_AMFLAGS = -I m4
3
4if COMPOSITE
5COMPOSITE_DIR=composite
6endif
7
8if GLX
9GLX_DIR=glx
10endif
11
12if DBE
13DBE_DIR=dbe
14endif
15
16if RECORD
17RECORD_DIR=record
18endif
19
20SUBDIRS = \
21	doc \
22	include \
23	dix  \
24	fb \
25	mi \
26	Xext \
27	miext \
28	os \
29	randr \
30	render  \
31	Xi \
32	xkb \
33	$(DBE_DIR) \
34	$(RECORD_DIR) \
35	xfixes \
36	damageext \
37	$(COMPOSITE_DIR) \
38	$(GLX_DIR) \
39	exa \
40	config \
41	hw \
42	test
43
44if XORG
45aclocaldir = $(datadir)/aclocal
46aclocal_DATA = xorg-server.m4
47
48pkgconfigdir = $(libdir)/pkgconfig
49pkgconfig_DATA = xorg-server.pc
50endif
51
52EXTRA_DIST = xorg-server.pc.in xorg-server.m4 autogen.sh
53
54DISTCHECK_CONFIGURE_FLAGS=\
55	--with-xkb-path=$(XKB_BASE_DIRECTORY) \
56	--with-xkb-bin-directory=$(XKB_BIN_DIRECTORY) \
57	--with-xkb-output='$${datadir}/X11/xkb/compiled'
58
59.PHONY: ChangeLog INSTALL
60
61INSTALL:
62	$(INSTALL_CMD)
63
64ChangeLog:
65	$(CHANGELOG_CMD)
66
67dist-hook: ChangeLog INSTALL
68
69DIST_SUBDIRS = \
70	doc \
71	include \
72	dix  \
73	fb \
74	mi \
75	Xext \
76	miext \
77	os \
78	randr \
79	render  \
80	Xi \
81	xkb \
82	dbe \
83	record \
84	xfixes \
85	damageext \
86	composite \
87	glx \
88	exa \
89	config \
90	hw \
91	test
92
93# gross hack
94relink: all
95	$(AM_V_at)$(MAKE) -C hw relink
96