summaryrefslogtreecommitdiff
path: root/src/xvmc/shader
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2012-10-04 17:48:24 -0700
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-05 10:28:05 +0100
commit5b74a2dc5270094810ec0cf8039fd3b3ab0815b5 (patch)
tree7b5191a5dd985206f17c14163ffa5f5904ea2fce /src/xvmc/shader
parent07a46333477898cfc2020ba5da9a6a7a866b21a7 (diff)
Fix out-of-tree builds with intel-gen4asm installed
The make rules to compile shaders with intel-gen4asm referenced the .g4a source files without using $(srcdir), which broke out-of-tree builds. Reference .g4a source files via $(srcdir), and add $(srcdir) to m4's include path, fixing out-of-tree builds. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55645 Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'src/xvmc/shader')
-rw-r--r--src/xvmc/shader/mc/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xvmc/shader/mc/Makefile.am b/src/xvmc/shader/mc/Makefile.am
index 891849bb..7e3f5b47 100644
--- a/src/xvmc/shader/mc/Makefile.am
+++ b/src/xvmc/shader/mc/Makefile.am
@@ -109,7 +109,7 @@ if HAVE_GEN4ASM
SUFFIXES = .g4a .g4b
.g4a.g4b:
- m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
+ m4 -I$(srcdir) $(srcdir)/$*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
$(INTEL_G4B): $(INTEL_G4I)