Eric Anholt | c485742 | 2008-06-03 10:20:49 -0700 | [diff] [blame] | 1 | # 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 Velikov | 4255d3d | 2014-08-24 19:26:14 +0100 | [diff] [blame] | 25 | include Makefile.sources |
| 26 | |
Eric Anholt | c485742 | 2008-06-03 10:20:49 -0700 | [diff] [blame] | 27 | AM_CFLAGS = \ |
| 28 | $(WARN_CFLAGS) \ |
Kristian Høgsberg | 4f57abf | 2009-11-17 11:14:54 -0500 | [diff] [blame] | 29 | -I$(top_srcdir) \ |
Eric Anholt | 3169d96 | 2008-06-12 23:22:26 -0700 | [diff] [blame] | 30 | $(PTHREADSTUBS_CFLAGS) \ |
Chris Wilson | 9d77603 | 2011-06-04 12:47:19 +0100 | [diff] [blame] | 31 | $(PCIACCESS_CFLAGS) \ |
Chris Wilson | 90b23cc | 2012-02-09 10:23:10 +0000 | [diff] [blame] | 32 | $(VALGRIND_CFLAGS) \ |
Kristian Høgsberg | a66cf9c | 2009-11-17 09:46:39 -0500 | [diff] [blame] | 33 | -I$(top_srcdir)/include/drm |
Eric Anholt | c485742 | 2008-06-03 10:20:49 -0700 | [diff] [blame] | 34 | |
Eric Anholt | 738e36a | 2008-09-05 10:35:32 +0100 | [diff] [blame] | 35 | libdrm_intel_la_LTLIBRARIES = libdrm_intel.la |
| 36 | libdrm_intel_ladir = $(libdir) |
| 37 | libdrm_intel_la_LDFLAGS = -version-number 1:0:0 -no-undefined |
Eric Anholt | 71066ab | 2011-12-20 13:06:16 -0800 | [diff] [blame] | 38 | libdrm_intel_la_LIBADD = ../libdrm.la \ |
| 39 | @PTHREADSTUBS_LIBS@ \ |
| 40 | @PCIACCESS_LIBS@ \ |
Eric Anholt | 88cffcc | 2011-12-20 14:28:03 -0800 | [diff] [blame] | 41 | @CLOCK_LIB@ |
Eric Anholt | c485742 | 2008-06-03 10:20:49 -0700 | [diff] [blame] | 42 | |
Emil Velikov | 4255d3d | 2014-08-24 19:26:14 +0100 | [diff] [blame] | 43 | libdrm_intel_la_SOURCES = $(LIBDRM_INTEL_FILES) |
Eric Anholt | c485742 | 2008-06-03 10:20:49 -0700 | [diff] [blame] | 44 | |
Eric Anholt | ef36c9a | 2010-03-17 12:46:21 -0700 | [diff] [blame] | 45 | libdrm_intelincludedir = ${includedir}/libdrm |
Emil Velikov | 4255d3d | 2014-08-24 19:26:14 +0100 | [diff] [blame] | 46 | libdrm_intelinclude_HEADERS = $(LIBDRM_INTEL_H_FILES) |
Julien Cristau | 89cc98c | 2009-10-31 02:25:44 +0100 | [diff] [blame] | 47 | |
Eric Anholt | ccbc403 | 2012-01-03 12:33:37 -0800 | [diff] [blame] | 48 | # This may be interesting even outside of "make check", due to the -dump option. |
| 49 | noinst_PROGRAMS = test_decode |
| 50 | |
Eric Anholt | 683855f | 2012-01-03 14:32:18 -0800 | [diff] [blame] | 51 | BATCHES = \ |
| 52 | tests/gen4-3d.batch \ |
| 53 | tests/gm45-3d.batch \ |
| 54 | tests/gen5-3d.batch \ |
| 55 | tests/gen6-3d.batch \ |
Eric Anholt | b5cb7f8 | 2012-01-04 11:52:32 -0800 | [diff] [blame] | 56 | tests/gen7-2d-copy.batch \ |
Eric Anholt | 683855f | 2012-01-03 14:32:18 -0800 | [diff] [blame] | 57 | tests/gen7-3d.batch |
| 58 | |
| 59 | TESTS = \ |
Emil Velikov | a418f2f | 2015-03-31 19:43:30 +0100 | [diff] [blame] | 60 | $(BATCHES:.batch=.batch.sh) \ |
| 61 | intel-symbol-check |
Eric Anholt | 683855f | 2012-01-03 14:32:18 -0800 | [diff] [blame] | 62 | |
| 63 | EXTRA_DIST = \ |
| 64 | $(BATCHES) \ |
| 65 | $(BATCHES:.batch=.batch.sh) \ |
| 66 | $(BATCHES:.batch=.batch-ref.txt) \ |
| 67 | $(BATCHES:.batch=.batch-ref.txt) \ |
Emil Velikov | 268dce4 | 2014-09-07 15:48:48 +0100 | [diff] [blame] | 68 | tests/test-batch.sh \ |
Emil Velikov | a418f2f | 2015-03-31 19:43:30 +0100 | [diff] [blame] | 69 | $(TESTS) |
Eric Anholt | 683855f | 2012-01-03 14:32:18 -0800 | [diff] [blame] | 70 | |
Rob Clark | faf26b6 | 2012-07-20 10:26:11 -0500 | [diff] [blame] | 71 | test_decode_LDADD = libdrm_intel.la ../libdrm.la |
Eric Anholt | ccbc403 | 2012-01-03 12:33:37 -0800 | [diff] [blame] | 72 | |
Julien Cristau | 89cc98c | 2009-10-31 02:25:44 +0100 | [diff] [blame] | 73 | pkgconfig_DATA = libdrm_intel.pc |