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 21 include Makefile.sources 22 23 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} 24 25 AM_MAKEFLAGS = -s 26 AM_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 46 pkgconfigdir = @pkgconfigdir@ 47 pkgconfig_DATA = libdrm.pc 48 49 if HAVE_LIBKMS 50 LIBKMS_SUBDIR = libkms 51 endif 52 53 if HAVE_INTEL 54 INTEL_SUBDIR = intel 55 endif 56 57 if HAVE_NOUVEAU 58 NOUVEAU_SUBDIR = nouveau 59 endif 60 61 if HAVE_RADEON 62 RADEON_SUBDIR = radeon 63 endif 64 65 if HAVE_AMDGPU 66 AMDGPU_SUBDIR = amdgpu 67 endif 68 69 if HAVE_OMAP 70 OMAP_SUBDIR = omap 71 endif 72 73 if HAVE_EXYNOS 74 EXYNOS_SUBDIR = exynos 75 endif 76 77 if HAVE_FREEDRENO 78 FREEDRENO_SUBDIR = freedreno 79 endif 80 81 if HAVE_TEGRA 82 TEGRA_SUBDIR = tegra 83 endif 84 85 if HAVE_VC4 86 VC4_SUBDIR = vc4 87 endif 88 89 if HAVE_ETNAVIV 90 ETNAVIV_SUBDIR = etnaviv 91 endif 92 93 if BUILD_MANPAGES 94 if HAVE_MANPAGES_STYLESHEET 95 MAN_SUBDIR = man 96 endif 97 endif 98 99 if HAVE_ROCKCHIP 100 ROCKCHIP_SUBDIR = rockchip 101 endif 102 103 SUBDIRS = \ 104 . \ 105 $(LIBKMS_SUBDIR) \ 106 $(INTEL_SUBDIR) \ 107 $(NOUVEAU_SUBDIR) \ 108 $(RADEON_SUBDIR) \ 109 $(AMDGPU_SUBDIR) \ 110 $(OMAP_SUBDIR) \ 111 $(EXYNOS_SUBDIR) \ 112 $(FREEDRENO_SUBDIR) \ 113 $(TEGRA_SUBDIR) \ 114 $(VC4_SUBDIR) \ 115 $(ETNAVIV_SUBDIR) \ 116 data \ 117 tests \ 118 $(MAN_SUBDIR) \ 119 $(ROCKCHIP_SUBDIR) 120 121 libdrm_la_LTLIBRARIES = libdrm.la 122 libdrm_ladir = $(libdir) 123 libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined 124 libdrm_la_LIBADD = @CLOCK_LIB@ -lm 125 126 libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm 127 AM_CFLAGS = \ 128 $(WARN_CFLAGS) \ 129 $(VALGRIND_CFLAGS) 130 131 libdrm_la_SOURCES = $(LIBDRM_FILES) 132 133 libdrmincludedir = ${includedir} 134 libdrminclude_HEADERS = $(LIBDRM_H_FILES) 135 136 klibdrmincludedir = ${includedir}/libdrm 137 klibdrminclude_HEADERS = $(LIBDRM_INCLUDE_H_FILES) 138 139 if HAVE_VMWGFX 140 klibdrminclude_HEADERS += $(LIBDRM_INCLUDE_VMWGFX_H_FILES) 141 endif 142 143 EXTRA_DIST = \ 144 include/drm/README \ 145 amdgpu/meson.build \ 146 data/meson.build \ 147 etnaviv/meson.build \ 148 exynos/meson.build \ 149 freedreno/meson.build \ 150 intel/meson.build \ 151 libkms/meson.build \ 152 man/meson.build \ 153 nouveau/meson.build \ 154 omap/meson.build \ 155 radeon/meson.build \ 156 tegra/meson.build \ 157 tests/amdgpu/meson.build \ 158 tests/etnaviv/meson.build \ 159 tests/exynos/meson.build \ 160 tests/kms/meson.build \ 161 tests/kmstest/meson.build \ 162 tests/meson.build \ 163 tests/modeprint/meson.build \ 164 tests/modetest/meson.build \ 165 tests/nouveau/meson.build \ 166 tests/proptest/meson.build \ 167 tests/radeon/meson.build \ 168 tests/tegra/meson.build \ 169 tests/util/meson.build \ 170 tests/vbltest/meson.build \ 171 vc4/meson.build \ 172 meson.build \ 173 meson_options.txt 174 175 copy-headers : 176 cp -r $(kernel_source)/include/uapi/drm/*.h $(top_srcdir)/include/drm/ 177 178 commit-headers : copy-headers 179 git add include/drm/*.h 180 git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)" 181