summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-09-23 06:33:56 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-09-28 14:50:54 -0400
commitab6201d09b1840c7ffcd6606c1d3dae68b8b3048 (patch)
tree0e23136aa28cd1fcc259c79e12ba0a1ff42f2b0e /tools/lib
parentdc240c5dc2a02e335c5bcb50ad3a1274818c8609 (diff)
tools build: Add Makefile.include
To ease up build framework code setup for users. More shared code will be added in the following patches. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1443004442-32660-2-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/api/Makefile2
-rw-r--r--tools/lib/bpf/Makefile2
-rw-r--r--tools/lib/lockdep/Makefile2
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index fe1b02c2c95b..8806ea7c2f99 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -21,10 +21,10 @@ CFLAGS += -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
21 21
22RM = rm -f 22RM = rm -f
23 23
24build := -f $(srctree)/tools/build/Makefile.build dir=. obj
25API_IN := $(OUTPUT)libapi-in.o 24API_IN := $(OUTPUT)libapi-in.o
26 25
27export srctree OUTPUT CC LD CFLAGS V 26export srctree OUTPUT CC LD CFLAGS V
27include $(srctree)/tools/build/Makefile.include
28 28
29all: $(LIBFILE) 29all: $(LIBFILE)
30 30
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index e630f9fc4fb6..c66ade68d4a1 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -124,7 +124,7 @@ endif
124MAKEOVERRIDES= 124MAKEOVERRIDES=
125 125
126export srctree OUTPUT CC LD CFLAGS V 126export srctree OUTPUT CC LD CFLAGS V
127build := -f $(srctree)/tools/build/Makefile.build dir=. obj 127include $(srctree)/tools/build/Makefile.include
128 128
129BPF_IN := $(OUTPUT)libbpf-in.o 129BPF_IN := $(OUTPUT)libbpf-in.o
130LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE)) 130LIB_FILE := $(addprefix $(OUTPUT),$(LIB_FILE))
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index 18ffccf00426..d12081da383b 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -94,7 +94,7 @@ else
94endif 94endif
95 95
96export srctree OUTPUT CC LD CFLAGS V 96export srctree OUTPUT CC LD CFLAGS V
97build := -f $(srctree)/tools/build/Makefile.build dir=. obj 97include $(srctree)/tools/build/Makefile.include
98 98
99do_compile_shared_library = \ 99do_compile_shared_library = \
100 ($(print_shared_lib_compile) \ 100 ($(print_shared_lib_compile) \