aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/x86/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/x86/Makefile.am')
-rw-r--r--src/mesa/x86/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/x86/Makefile.am b/src/mesa/x86/Makefile.am
index 21ce3607ae5..167857684b1 100644
--- a/src/mesa/x86/Makefile.am
+++ b/src/mesa/x86/Makefile.am
@@ -33,7 +33,17 @@ gen_matypes_SOURCES = gen_matypes.c
BUILT_SOURCES = matypes.h
CLEANFILES = matypes.h
+if GEN_ASM_OFFSETS
+
+matypes.h: $(gen_matypes_SOURCES)
+ $(AM_V_GEN)$(COMPILE) $< -DASM_OFFSETS -S -o - | \
+ sed -n '/^->/{s:^->::;/[$$]/{s:^:#define :;s:[$$]::};p}' > $@
+
+else
+
matypes.h: gen_matypes
$(AM_V_GEN)./gen_matypes > $@
endif
+
+endif