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