1libyasm_a_SOURCES += modules/arch/x86/x86arch.c 2libyasm_a_SOURCES += modules/arch/x86/x86arch.h 3libyasm_a_SOURCES += modules/arch/x86/x86bc.c 4libyasm_a_SOURCES += modules/arch/x86/x86expr.c 5libyasm_a_SOURCES += modules/arch/x86/x86id.c 6nodist_libyasm_a_SOURCES += x86cpu.c 7nodist_libyasm_a_SOURCES += x86regtmod.c 8 9YASM_MODULES += arch_x86 10 11modules/arch/x86/x86id.c: x86insn_nasm.c x86insn_gas.c x86insns.c 12 13EXTRA_DIST += modules/arch/x86/gen_x86_insn.py 14 15if HAVE_PYTHON 16x86insn_nasm.gperf x86insn_gas.gperf x86insns.c: $(srcdir)/modules/arch/x86/gen_x86_insn.py 17 $(PYTHON) $(srcdir)/modules/arch/x86/gen_x86_insn.py 18else 19x86insn_nasm.gperf: $(srcdir)/x86insn_nasm.gperf 20 @echo Python must be installed to regenerate x86 instructions files 21 cp $(srcdir)/x86insn_nasm.gperf $@ 22x86insn_gas.gperf: $(srcdir)/x86insn_gas.gperf 23 @echo Python must be installed to regenerate x86 instructions files 24 cp $(srcdir)/x86insn_gas.gperf $@ 25endif 26 27BUILT_SOURCES += x86insns.c 28BUILT_SOURCES += x86insn_nasm.gperf 29BUILT_SOURCES += x86insn_gas.gperf 30EXTRA_DIST += x86insns.c 31EXTRA_DIST += x86insn_nasm.gperf 32EXTRA_DIST += x86insn_gas.gperf 33MAINTAINERCLEANFILES += x86insns.c 34MAINTAINERCLEANFILES += x86insn_nasm.gperf 35MAINTAINERCLEANFILES += x86insn_gas.gperf 36 37EXTRA_DIST += modules/arch/x86/x86cpu.gperf 38EXTRA_DIST += modules/arch/x86/x86regtmod.gperf 39 40# Use suffix rules for gperf files 41x86insn_nasm.c: x86insn_nasm.gperf genperf$(EXEEXT) 42x86insn_gas.c: x86insn_gas.gperf genperf$(EXEEXT) 43x86cpu.c: $(srcdir)/modules/arch/x86/x86cpu.gperf genperf$(EXEEXT) 44 $(top_builddir)/genperf$(EXEEXT) $(srcdir)/modules/arch/x86/x86cpu.gperf $@ 45x86regtmod.c: $(srcdir)/modules/arch/x86/x86regtmod.gperf genperf$(EXEEXT) 46 $(top_builddir)/genperf$(EXEEXT) $(srcdir)/modules/arch/x86/x86regtmod.gperf $@ 47 48BUILT_SOURCES += x86insn_nasm.c 49BUILT_SOURCES += x86insn_gas.c 50CLEANFILES += x86insn_nasm.c 51CLEANFILES += x86insn_gas.c 52CLEANFILES += x86cpu.c 53CLEANFILES += x86regtmod.c 54 55EXTRA_DIST += modules/arch/x86/tests/Makefile.inc 56 57include modules/arch/x86/tests/Makefile.inc 58