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