From 71066abe1e32d906f65141c34ecfd9ffbf89ebde Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 20 Dec 2011 13:06:16 -0800 Subject: intel: Get intel_decode.c minimally building. My plan is to use this drm_intel_dump_batchbuffer() interface for the current GPU tools, and the current Mesa batch dumping usage, while eventually building more interesting interfaces for other uses. Warnings are currently suppressed by using a helper lib with CFLAGS set manually, because the code is totally not ready for libdrm's warnings setup. Acked-by: Daniel Vetter Acked-by: Eugeni Dodonov --- intel/Makefile.am | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'intel/Makefile.am') diff --git a/intel/Makefile.am b/intel/Makefile.am index 7a44aaf9..1af0187d 100644 --- a/intel/Makefile.am +++ b/intel/Makefile.am @@ -33,7 +33,20 @@ AM_CFLAGS = \ libdrm_intel_la_LTLIBRARIES = libdrm_intel.la libdrm_intel_ladir = $(libdir) libdrm_intel_la_LDFLAGS = -version-number 1:0:0 -no-undefined -libdrm_intel_la_LIBADD = ../libdrm.la @PTHREADSTUBS_LIBS@ @PCIACCESS_LIBS@ @CLOCK_LIB@ +libdrm_intel_la_LIBADD = ../libdrm.la \ + @PTHREADSTUBS_LIBS@ \ + @PCIACCESS_LIBS@ \ + @CLOCK_LIB@ \ + libintel_decode.la + + +noinst_LTLIBRARIES = libintel_decode.la + +libintel_decode_la_SOURCES = intel_decode.c +libintel_decode_la_CFLAGS = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/intel \ + -std=c99 libdrm_intel_la_SOURCES = \ intel_bufmgr.c \ @@ -44,6 +57,8 @@ libdrm_intel_la_SOURCES = \ mm.c \ mm.h +intel_bufmgr_gem_o_CFLAGS = $(AM_CFLAGS) -c99 + libdrm_intelincludedir = ${includedir}/libdrm libdrm_intelinclude_HEADERS = intel_bufmgr.h \ intel_debug.h -- cgit v1.2.3