1objtool-y += arch/$(SRCARCH)/
2
3objtool-y += weak.o
4
5objtool-$(SUBCMD_CHECK) += check.o
6objtool-$(SUBCMD_CHECK) += special.o
7objtool-$(SUBCMD_ORC) += check.o
8objtool-$(SUBCMD_ORC) += orc_gen.o
9objtool-$(SUBCMD_ORC) += orc_dump.o
10
11objtool-y += builtin-check.o
12objtool-y += builtin-orc.o
13objtool-y += elf.o
14objtool-y += objtool.o
15
16objtool-y += libstring.o
17objtool-y += libctype.o
18objtool-y += str_error_r.o
19objtool-y += librbtree.o
20
21CFLAGS += -I$(srctree)/tools/lib
22
23$(OUTPUT)libstring.o: ../lib/string.c FORCE
24	$(call rule_mkdir)
25	$(call if_changed_dep,cc_o_c)
26
27$(OUTPUT)libctype.o: ../lib/ctype.c FORCE
28	$(call rule_mkdir)
29	$(call if_changed_dep,cc_o_c)
30
31$(OUTPUT)str_error_r.o: ../lib/str_error_r.c FORCE
32	$(call rule_mkdir)
33	$(call if_changed_dep,cc_o_c)
34
35$(OUTPUT)librbtree.o: ../lib/rbtree.c FORCE
36	$(call rule_mkdir)
37	$(call if_changed_dep,cc_o_c)
38