Makefile (310b7cec8ea32dcd4e9978423717ce78dd89d45d) Makefile (ab6201d09b1840c7ffcd6606c1d3dae68b8b3048)
1# Most of this file is copied from tools/lib/traceevent/Makefile
2
3BPF_VERSION = 0
4BPF_PATCHLEVEL = 0
5BPF_EXTRAVERSION = 1
6
7MAKEFLAGS += --no-print-directory
8

--- 50 unchanged lines hidden (view full) ---

59
60ifeq ($(srctree),)
61srctree := $(patsubst %/,%,$(dir $(shell pwd)))
62srctree := $(patsubst %/,%,$(dir $(srctree)))
63srctree := $(patsubst %/,%,$(dir $(srctree)))
64#$(info Determined 'srctree' to be $(srctree))
65endif
66
1# Most of this file is copied from tools/lib/traceevent/Makefile
2
3BPF_VERSION = 0
4BPF_PATCHLEVEL = 0
5BPF_EXTRAVERSION = 1
6
7MAKEFLAGS += --no-print-directory
8

--- 50 unchanged lines hidden (view full) ---

59
60ifeq ($(srctree),)
61srctree := $(patsubst %/,%,$(dir $(shell pwd)))
62srctree := $(patsubst %/,%,$(dir $(srctree)))
63srctree := $(patsubst %/,%,$(dir $(srctree)))
64#$(info Determined 'srctree' to be $(srctree))
65endif
66
67FEATURE_DISPLAY = libelf libelf-getphdrnum libelf-mmap bpf
68FEATURE_TESTS = libelf bpf
67FEATURE_USER = .libbpf
68FEATURE_TESTS = libelf libelf-getphdrnum libelf-mmap bpf
69FEATURE_DISPLAY = libelf bpf
69
70INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/arch/$(ARCH)/include/uapi -I$(srctree)/include/uapi
71FEATURE_CHECK_CFLAGS-bpf = $(INCLUDES)
72
73include $(srctree)/tools/build/Makefile.feature
74
75export prefix libdir src obj
76

--- 41 unchanged lines hidden (view full) ---

118endif
119
120# Disable command line variables (CFLAGS) overide from top
121# level Makefile (perf), otherwise build Makefile will get
122# the same command line setup.
123MAKEOVERRIDES=
124
125export srctree OUTPUT CC LD CFLAGS V
70
71INCLUDES = -I. -I$(srctree)/tools/include -I$(srctree)/arch/$(ARCH)/include/uapi -I$(srctree)/include/uapi
72FEATURE_CHECK_CFLAGS-bpf = $(INCLUDES)
73
74include $(srctree)/tools/build/Makefile.feature
75
76export prefix libdir src obj
77

--- 41 unchanged lines hidden (view full) ---

119endif
120
121# Disable command line variables (CFLAGS) overide from top
122# level Makefile (perf), otherwise build Makefile will get
123# the same command line setup.
124MAKEOVERRIDES=
125
126export srctree OUTPUT CC LD CFLAGS V
126build := -f $(srctree)/tools/build/Makefile.build dir=. obj
127include $(srctree)/tools/build/Makefile.include
127
128BPF_IN := $(OUTPUT)libbpf-in.o
129LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE))
130
131CMD_TARGETS = $(LIB_FILE)
132
133TARGETS = $(CMD_TARGETS)
134

--- 61 unchanged lines hidden ---
128
129BPF_IN := $(OUTPUT)libbpf-in.o
130LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE))
131
132CMD_TARGETS = $(LIB_FILE)
133
134TARGETS = $(CMD_TARGETS)
135

--- 61 unchanged lines hidden ---