blob: d004568450e4b25891436afafe2234a38d7cd7fb [file] [log] [blame]
Eric Anholtc4857422008-06-03 10:20:49 -07001# Copyright © 2008 Intel Corporation
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# the rights to use, copy, modify, merge, publish, distribute, sublicense,
7# and/or sell copies of the Software, and to permit persons to whom the
8# 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 NONINFRINGEMENT. IN NO EVENT SHALL
17# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20# IN THE SOFTWARE.
21#
22# Authors:
23# Eric Anholt <eric@anholt.net>
24
Emil Velikov4255d3d2014-08-24 19:26:14 +010025include Makefile.sources
26
Eric Anholtc4857422008-06-03 10:20:49 -070027AM_CFLAGS = \
28 $(WARN_CFLAGS) \
Kristian Høgsberg4f57abf2009-11-17 11:14:54 -050029 -I$(top_srcdir) \
Eric Anholt3169d962008-06-12 23:22:26 -070030 $(PTHREADSTUBS_CFLAGS) \
Chris Wilson9d776032011-06-04 12:47:19 +010031 $(PCIACCESS_CFLAGS) \
Chris Wilson90b23cc2012-02-09 10:23:10 +000032 $(VALGRIND_CFLAGS) \
Kristian Høgsberga66cf9c2009-11-17 09:46:39 -050033 -I$(top_srcdir)/include/drm
Eric Anholtc4857422008-06-03 10:20:49 -070034
Eric Anholt738e36a2008-09-05 10:35:32 +010035libdrm_intel_la_LTLIBRARIES = libdrm_intel.la
36libdrm_intel_ladir = $(libdir)
37libdrm_intel_la_LDFLAGS = -version-number 1:0:0 -no-undefined
Eric Anholt71066ab2011-12-20 13:06:16 -080038libdrm_intel_la_LIBADD = ../libdrm.la \
39 @PTHREADSTUBS_LIBS@ \
40 @PCIACCESS_LIBS@ \
Eric Anholt88cffcc2011-12-20 14:28:03 -080041 @CLOCK_LIB@
Eric Anholtc4857422008-06-03 10:20:49 -070042
Emil Velikov4255d3d2014-08-24 19:26:14 +010043libdrm_intel_la_SOURCES = $(LIBDRM_INTEL_FILES)
Eric Anholtc4857422008-06-03 10:20:49 -070044
Eric Anholtef36c9a2010-03-17 12:46:21 -070045libdrm_intelincludedir = ${includedir}/libdrm
Emil Velikov4255d3d2014-08-24 19:26:14 +010046libdrm_intelinclude_HEADERS = $(LIBDRM_INTEL_H_FILES)
Julien Cristau89cc98c2009-10-31 02:25:44 +010047
Eric Anholtccbc4032012-01-03 12:33:37 -080048# This may be interesting even outside of "make check", due to the -dump option.
49noinst_PROGRAMS = test_decode
50
Eric Anholt683855f2012-01-03 14:32:18 -080051BATCHES = \
52 tests/gen4-3d.batch \
53 tests/gm45-3d.batch \
54 tests/gen5-3d.batch \
55 tests/gen6-3d.batch \
Eric Anholtb5cb7f82012-01-04 11:52:32 -080056 tests/gen7-2d-copy.batch \
Eric Anholt683855f2012-01-03 14:32:18 -080057 tests/gen7-3d.batch
58
59TESTS = \
Emil Velikova418f2f2015-03-31 19:43:30 +010060 $(BATCHES:.batch=.batch.sh) \
61 intel-symbol-check
Eric Anholt683855f2012-01-03 14:32:18 -080062
63EXTRA_DIST = \
64 $(BATCHES) \
65 $(BATCHES:.batch=.batch.sh) \
66 $(BATCHES:.batch=.batch-ref.txt) \
67 $(BATCHES:.batch=.batch-ref.txt) \
Emil Velikov268dce42014-09-07 15:48:48 +010068 tests/test-batch.sh \
Emil Velikova418f2f2015-03-31 19:43:30 +010069 Android.mk \
70 $(TESTS)
Eric Anholt683855f2012-01-03 14:32:18 -080071
Rob Clarkfaf26b62012-07-20 10:26:11 -050072test_decode_LDADD = libdrm_intel.la ../libdrm.la
Eric Anholtccbc4032012-01-03 12:33:37 -080073
Julien Cristau89cc98c2009-10-31 02:25:44 +010074pkgconfig_DATA = libdrm_intel.pc