xref: /linux/tools/perf/util/intel-pt-decoder/Build (revision 9e906a9dead17d81d6c2687f65e159231d0e3286)
1*754187adSIan Rogersperf-util-y += intel-pt-pkt-decoder.o intel-pt-insn-decoder.o intel-pt-log.o intel-pt-decoder.o
2237fae79SAdrian Hunter
300a26390SJosh Poimboeufinat_tables_script = $(srctree)/tools/arch/x86/tools/gen-insn-attr-x86.awk
400a26390SJosh Poimboeufinat_tables_maps = $(srctree)/tools/arch/x86/lib/x86-opcode-map.txt
5237fae79SAdrian Hunter
6237fae79SAdrian Hunter$(OUTPUT)util/intel-pt-decoder/inat-tables.c: $(inat_tables_script) $(inat_tables_maps)
704aa90b5SWang Nan	$(call rule_mkdir)
8237fae79SAdrian Hunter	@$(call echo-cmd,gen)$(AWK) -f $(inat_tables_script) $(inat_tables_maps) > $@ || rm -f $@
9237fae79SAdrian Hunter
10e7bb49e3SIan Rogersperf-util-y += inat.o insn.o
11e7bb49e3SIan Rogers
12e7bb49e3SIan Rogers$(OUTPUT)util/intel-pt-decoder/inat.o: $(srctree)/tools/arch/x86/lib/inat.c $(OUTPUT)util/intel-pt-decoder/inat-tables.c
133a9d7723SAdrian Hunter	$(call rule_mkdir)
143a9d7723SAdrian Hunter	$(call if_changed_dep,cc_o_c)
15237fae79SAdrian Hunter
16e7bb49e3SIan RogersCFLAGS_inat.o += -I$(OUTPUT)util/intel-pt-decoder
17e7bb49e3SIan Rogers
18e7bb49e3SIan Rogers$(OUTPUT)util/intel-pt-decoder/insn.o: $(srctree)/tools/arch/x86/lib/insn.c
19e7bb49e3SIan Rogers	$(call rule_mkdir)
20e7bb49e3SIan Rogers	$(call if_changed_dep,cc_o_c)
2135670dd0SArnaldo Carvalho de Melo
223866058eSDavid Carrillo-Cisnerosifeq ($(CC_NO_CLANG), 1)
23e7bb49e3SIan Rogers  CFLAGS_insn.o += -Wno-override-init
2435670dd0SArnaldo Carvalho de Meloendif
25f96b4675SBorislav Petkov
26e7bb49e3SIan RogersCFLAGS_insn.o += -Wno-packed
27