xref: /linux/tools/objtool/arch/x86/Build (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
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