xref: /linux/tools/objtool/arch/x86/Build (revision 2573c25e2c482b53b6e1142ff3cd28f6de13e659)
1objtool-y += special.o
2objtool-y += decode.o
3objtool-y += orc.o
4
5inat_tables_script = ../arch/x86/tools/gen-insn-attr-x86.awk
6inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt
7
8$(OUTPUT)arch/x86/lib/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
9	$(call rule_mkdir)
10	$(Q)$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@
11
12$(OUTPUT)arch/x86/decode.o: $(OUTPUT)arch/x86/lib/inat-tables.c
13
14CFLAGS_decode.o += -I$(OUTPUT)arch/x86/lib
15