summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2007-09-10 06:59:47 +0000
committerPeter Johnson <peter@tortall.net>2007-09-10 06:59:47 +0000
commitf150e45913345aa753dc3307a0266043f199b25b (patch)
tree767b7fb098e9a8d972a908ad7caba296b945b4a5 /tools
parent502f5a1c4de42e4f53510159bc873b6b0fc1920a (diff)
downloadyasm-f150e45913345aa753dc3307a0266043f199b25b.tar.gz
Change x86 instruction tables to be automatically generated.
This combines the C and perfect hash tables into a single source file, and allows for easier future changes to the source-level structures. The Python-built files are included in the distribution so that Python is not added as a dependency. The generated code has been verified equal against the old tables, excepting a number of bugfixes. Most of the bugs fixed are in the CPU field, plus a few GAS suffix fixes. svn path=/trunk/yasm/; revision=1937
Diffstat (limited to 'tools')
-rw-r--r--tools/genperf/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/genperf/Makefile.inc b/tools/genperf/Makefile.inc
index b6bedff4..600c93cb 100644
--- a/tools/genperf/Makefile.inc
+++ b/tools/genperf/Makefile.inc
@@ -5,6 +5,11 @@
noinst_PROGRAMS += genperf
+# Suffix rule for genperf
+SUFFIXES += .gperf
+.gperf.c: genperf$(EXEEXT)
+ $(top_builddir)/genperf$(EXEEXT) $< > $@
+
genperf_SOURCES =
EXTRA_DIST += tools/genperf/genperf.c
EXTRA_DIST += tools/genperf/perfect.c