-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathBuild
More file actions
28 lines (24 loc) · 1.03 KB
/
Build
File metadata and controls
28 lines (24 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
perf-prof-y += lib/ arch/
perf-prof-y += src/
bin-y += perf-prof
LIBS_perf-prof-$(CONFIG_LIBELF) += -lelf
LIBS_perf-prof-$(CONFIG_LZMA) += -llzma
LIBS_perf-prof-$(CONFIG_LIBBPF) += -lz
perf-prof-libs-$(CONFIG_LIBBPF) += lib/bpf/libbpf.a
LIBS_perf-prof-$(CONFIG_CPLUS_DEMANGLE) += -liberty
LIBS_perf-prof-$(CONFIG_CXX_DEMANGLE) += -lstdc++
LIBS_perf-prof-$(CONFIG_LIBTCMALLOC) += -ltcmalloc
LIBS_perf-prof-$(CONFIG_LIBUNWIND) += -lunwind -lunwind-$(LIBUNWIND_ARCH)
perf-prof-libs += lib/perf/libperf.a lib/api/libapi.a
perf-prof-libs += lib/traceevent/libtraceevent.a lib/subcmd/libsubcmd.a
perf-prof-libs += $(perf-prof-libs-y)
LDFLAGS_perf-prof += -lpthread -ldl -lm -Wl,--dynamic-list=$(OUTPUT)lib/traceevent/plugins/libtraceevent-dynamic-list
LDFLAGS_perf-prof += $(LIBS_perf-prof-y)
ifeq ($(CONFIG_LIBPYTHON), y)
LDFLAGS_perf-prof += $(PYTHON_EMBED_LDFLAGS) $(PYTHON_EMBED_LDOPTS)
endif
ifeq ($(CONFIG_LIBBPF), y)
ifneq ($(CONFIG_ZLIB), y)
$(error No libz found, please install zlib)
endif
endif