Makefile.am 3.75 KB
Newer Older
1
AUTOMAKE_OPTIONS=nostdinc
2 3

# Required for automake < 1.14
4
ACLOCAL_AMFLAGS = -I m4
Daniel Stone's avatar
Daniel Stone committed
5 6 7 8

if COMPOSITE
COMPOSITE_DIR=composite
endif
9

10
if GLX
11
GLX_DIR=glx
12
endif
Daniel Stone's avatar
Daniel Stone committed
13

14 15 16 17
if DBE
DBE_DIR=dbe
endif

18 19 20 21
if RECORD
RECORD_DIR=record
endif

Keith Packard's avatar
Keith Packard committed
22 23 24 25
if DRI3
DRI3_DIR=dri3
endif

26 27 28 29
if PRESENT
PRESENT_DIR=present
endif

30 31 32 33
if PSEUDORAMIX
PSEUDORAMIX_DIR=pseudoramiX
endif

34 35 36 37
if GLAMOR
GLAMOR_DIR=glamor
endif

38 39
SUBDIRS = \
	doc \
40
	man \
41 42 43 44 45 46 47 48
	include \
	dix  \
	fb \
	mi \
	Xext \
	miext \
	os \
	randr \
Daniel Stone's avatar
Daniel Stone committed
49
	render  \
Daniel Stone's avatar
Daniel Stone committed
50
	Xi \
51
	xkb \
52
	$(PSEUDORAMIX_DIR) \
53
	$(DBE_DIR) \
54
	$(RECORD_DIR) \
55
	xfixes \
Daniel Stone's avatar
Daniel Stone committed
56
	damageext \
57
	$(COMPOSITE_DIR) \
58
	$(GLX_DIR) \
59
	$(PRESENT_DIR) \
Keith Packard's avatar
Keith Packard committed
60
	$(DRI3_DIR) \
61
	exa \
62
	$(GLAMOR_DIR) \
63
	config \
64 65
	hw \
	test
Daniel Stone's avatar
Daniel Stone committed
66

67
if XORG
68 69 70
aclocaldir = $(datadir)/aclocal
aclocal_DATA = xorg-server.m4

Daniel Stone's avatar
Daniel Stone committed
71 72
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = xorg-server.pc
73
endif
74

75
EXTRA_DIST = xorg-server.pc.in xorg-server.m4 autogen.sh README.md
76

77 78 79 80 81
DISTCHECK_CONFIGURE_FLAGS=\
	--with-xkb-path=$(XKB_BASE_DIRECTORY) \
	--with-xkb-bin-directory=$(XKB_BIN_DIRECTORY) \
	--with-xkb-output='$${datadir}/X11/xkb/compiled'

82 83 84 85
.PHONY: ChangeLog INSTALL

INSTALL:
	$(INSTALL_CMD)
86 87

ChangeLog:
88
	$(CHANGELOG_CMD)
89

90
dist-hook: ChangeLog INSTALL
91 92 93

DIST_SUBDIRS = \
	doc \
94
	man \
95 96 97 98 99 100 101
	include \
	dix  \
	fb \
	mi \
	Xext \
	miext \
	os \
102
	pseudoramiX \
103 104 105 106 107 108 109 110 111
	randr \
	render  \
	Xi \
	xkb \
	dbe \
	record \
	xfixes \
	damageext \
	composite \
112
	glx \
113
	exa \
114
	glamor \
115
	config \
116 117
	dri3 \
	present \
Aaron Plattner's avatar
Aaron Plattner committed
118 119
	hw \
	test
120 121 122

# gross hack
relink: all
123
	$(AM_V_at)$(MAKE) -C hw relink
124 125 126 127 128 129 130

install-headers: Makefile
	+find . -name Makefile | while read m; do			\
		if grep -q install-sdkHEADERS $$m; then			\
			(cd `dirname "$$m"` && make install-sdkHEADERS)	\
		fi							\
	done
131

132
distcheck-hook:
133 134 135 136 137 138
	cd $(srcdir) && \
	meson setup _distcheck_build && \
	meson configure _distcheck_build && \
	ninja -C _distcheck_build && \
	rm -rf _distcheck_build && \
	cd -
139

140 141 142
EXTRA_DIST += \
	meson_options.txt \
	include/xorg-config.h.meson.in \
Olivier Fourdan's avatar
Olivier Fourdan committed
143
	include/xwin-config.h.meson.in \
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184
	hw/xfree86/loader/symbol-test.c \
	composite/meson.build \
	config/meson.build \
	damageext/meson.build \
	dbe/meson.build \
	dix/meson.build \
	dri3/meson.build \
	exa/meson.build \
	fb/meson.build \
	glamor/meson.build \
	glx/meson.build \
	hw/dmx/config/meson.build \
	hw/dmx/examples/meson.build \
	hw/dmx/glxProxy/meson.build \
	hw/dmx/input/meson.build \
	hw/dmx/meson.build \
	hw/kdrive/ephyr/meson.build \
	hw/kdrive/meson.build \
	hw/kdrive/src/meson.build \
	hw/meson.build \
	hw/vfb/meson.build \
	hw/xfree86/common/meson.build \
	hw/xfree86/ddc/meson.build \
	hw/xfree86/dixmods/meson.build \
	hw/xfree86/dri2/meson.build \
	hw/xfree86/dri/meson.build \
	hw/xfree86/drivers/modesetting/meson.build \
	hw/xfree86/exa/meson.build \
	hw/xfree86/fbdevhw/meson.build \
	hw/xfree86/glamor_egl/meson.build \
	hw/xfree86/i2c/meson.build \
	hw/xfree86/int10/meson.build \
	hw/xfree86/loader/meson.build \
	hw/xfree86/meson.build \
	hw/xfree86/modes/meson.build \
	hw/xfree86/os-support/meson.build \
	hw/xfree86/parser/meson.build \
	hw/xfree86/ramdac/meson.build \
	hw/xfree86/shadowfb/meson.build \
	hw/xfree86/vgahw/meson.build \
	hw/xfree86/x86emu/meson.build \
185
	hw/xfree86/xkb/meson.build \
186 187 188
	hw/xnest/meson.build \
	hw/xquartz/meson.build \
	hw/xwayland/meson.build \
189 190 191 192
	hw/xwin/dri/meson.build \
	hw/xwin/glx/meson.build \
	hw/xwin/meson.build \
	hw/xwin/winclipboard/meson.build \
193 194 195 196 197 198 199 200 201 202 203 204
	include/meson.build \
	meson.build \
	miext/damage/meson.build \
	miext/shadow/meson.build \
	miext/sync/meson.build \
	mi/meson.build \
	os/meson.build \
	present/meson.build \
	pseudoramiX/meson.build \
	randr/meson.build \
	record/meson.build \
	render/meson.build \
205
	test/bigreq/meson.build \
Olivier Fourdan's avatar
Olivier Fourdan committed
206
	test/bigreq/request-length.c \
207 208
	test/meson.build \
	test/sync/meson.build \
Olivier Fourdan's avatar
Olivier Fourdan committed
209
	test/sync/sync.c \
210 211 212 213
	Xext/meson.build \
	xfixes/meson.build \
	Xi/meson.build \
	xkb/meson.build
214 215

DISTCLEANFILES = buildDateTime.h