xref: /openbmc/linux/tools/objtool/arch/x86/Build (revision f8e17c17)
1objtool-y += decode.o
2
3inat_tables_script = ../arch/x86/tools/gen-insn-attr-x86.awk
4inat_tables_maps = ../arch/x86/lib/x86-opcode-map.txt
5
6$(OUTPUT)arch/x86/lib/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/lib/inat-tables.c
11
12CFLAGS_decode.o += -I$(OUTPUT)arch/x86/lib
13