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