• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  Copyright 2005 Adam Jackson.
2#
3#  Permission is hereby granted, free of charge, to any person obtaining a
4#  copy of this software and associated documentation files (the "Software"),
5#  to deal in the Software without restriction, including without limitation
6#  on the rights to use, copy, modify, merge, publish, distribute, sub
7#  license, and/or sell copies of the Software, and to permit persons to whom
8#  the Software is furnished to do so, subject to the following conditions:
9#
10#  The above copyright notice and this permission notice (including the next
11#  paragraph) shall be included in all copies or substantial portions of the
12#  Software.
13#
14#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
17#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21include Makefile.sources
22
23ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
24
25AM_MAKEFLAGS = -s
26AM_DISTCHECK_CONFIGURE_FLAGS = \
27	--enable-udev \
28	--enable-libkms \
29	--enable-intel \
30	--enable-radeon \
31	--enable-amdgpu \
32	--enable-nouveau \
33	--enable-vc4 \
34	--enable-vmwgfx \
35	--enable-omap-experimental-api \
36	--enable-exynos-experimental-api \
37	--enable-freedreno \
38	--enable-freedreno-kgsl\
39	--enable-tegra-experimental-api \
40	--enable-etnaviv-experimental-api \
41	--enable-install-test-programs \
42	--enable-cairo-tests \
43	--enable-manpages \
44	--enable-valgrind
45
46pkgconfigdir = @pkgconfigdir@
47pkgconfig_DATA = libdrm.pc
48
49if HAVE_LIBKMS
50LIBKMS_SUBDIR = libkms
51endif
52
53if HAVE_INTEL
54INTEL_SUBDIR = intel
55endif
56
57if HAVE_NOUVEAU
58NOUVEAU_SUBDIR = nouveau
59endif
60
61if HAVE_RADEON
62RADEON_SUBDIR = radeon
63endif
64
65if HAVE_AMDGPU
66AMDGPU_SUBDIR = amdgpu
67endif
68
69if HAVE_OMAP
70OMAP_SUBDIR = omap
71endif
72
73if HAVE_EXYNOS
74EXYNOS_SUBDIR = exynos
75endif
76
77if HAVE_FREEDRENO
78FREEDRENO_SUBDIR = freedreno
79endif
80
81if HAVE_TEGRA
82TEGRA_SUBDIR = tegra
83endif
84
85if HAVE_VC4
86VC4_SUBDIR = vc4
87endif
88
89if HAVE_ETNAVIV
90ETNAVIV_SUBDIR = etnaviv
91endif
92
93if BUILD_MANPAGES
94if HAVE_MANPAGES_STYLESHEET
95MAN_SUBDIR = man
96endif
97endif
98
99SUBDIRS = \
100	. \
101	$(LIBKMS_SUBDIR) \
102	$(INTEL_SUBDIR) \
103	$(NOUVEAU_SUBDIR) \
104	$(RADEON_SUBDIR) \
105	$(AMDGPU_SUBDIR) \
106	$(OMAP_SUBDIR) \
107	$(EXYNOS_SUBDIR) \
108	$(FREEDRENO_SUBDIR) \
109	$(TEGRA_SUBDIR) \
110	$(VC4_SUBDIR) \
111	$(ETNAVIV_SUBDIR) \
112	data \
113	tests \
114	$(MAN_SUBDIR)
115
116libdrm_la_LTLIBRARIES = libdrm.la
117libdrm_ladir = $(libdir)
118libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined
119libdrm_la_LIBADD = @CLOCK_LIB@ -lm
120
121libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm
122AM_CFLAGS = \
123	$(WARN_CFLAGS) \
124	-fvisibility=hidden \
125	$(VALGRIND_CFLAGS)
126
127libdrm_la_SOURCES = $(LIBDRM_FILES)
128
129libdrmincludedir = ${includedir}
130libdrminclude_HEADERS = $(LIBDRM_H_FILES)
131
132klibdrmincludedir = ${includedir}/libdrm
133klibdrminclude_HEADERS = $(LIBDRM_INCLUDE_H_FILES)
134
135if HAVE_VMWGFX
136klibdrminclude_HEADERS += $(LIBDRM_INCLUDE_VMWGFX_H_FILES)
137endif
138
139EXTRA_DIST = \
140	include/drm/README \
141	amdgpu/meson.build \
142	data/meson.build \
143	etnaviv/meson.build \
144	exynos/meson.build \
145	freedreno/meson.build \
146	intel/meson.build \
147	libkms/meson.build \
148	man/meson.build \
149	nouveau/meson.build \
150	omap/meson.build \
151	radeon/meson.build \
152	tegra/meson.build \
153	tests/amdgpu/meson.build \
154	tests/etnaviv/meson.build \
155	tests/exynos/meson.build \
156	tests/kms/meson.build \
157	tests/kmstest/meson.build \
158	tests/meson.build \
159	tests/modeprint/meson.build \
160	tests/modetest/meson.build \
161	tests/nouveau/meson.build \
162	tests/proptest/meson.build \
163	tests/radeon/meson.build \
164	tests/tegra/meson.build \
165	tests/util/meson.build \
166	tests/vbltest/meson.build \
167	vc4/meson.build \
168	meson.build \
169	meson_options.txt
170
171copy-headers :
172	cp -r $(kernel_source)/include/uapi/drm/*.h $(top_srcdir)/include/drm/
173
174commit-headers : copy-headers
175	git add include/drm/*.h
176	git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)"
177