summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2015-09-23 06:34:02 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-09-28 14:50:55 -0400
commit7c422f5572667fef0db38d2046ecce69dcf0afc8 (patch)
tree5f3979225872cb1c79a7b5a546e13b855ccf648b /tools/lib
parent324c824ade1cad094a21e6177b9aa7977146feeb (diff)
tools build: Build fixdep helper from perf and basic libs
Adding the fixdep target into the Makefile.include to ease up building of fixdep helper, that needs to be built before we dive in to the build itself. The user can invoke the fixdep target to build the helper. 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-8-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/Makefile4
-rw-r--r--tools/lib/bpf/Makefile4
-rw-r--r--tools/lib/lockdep/Makefile4
3 files changed, 9 insertions, 3 deletions
diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index 8806ea7c2f99..d85904dc9b38 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -23,10 +23,12 @@ RM = rm -f
23 23
24API_IN := $(OUTPUT)libapi-in.o 24API_IN := $(OUTPUT)libapi-in.o
25 25
26all:
27
26export srctree OUTPUT CC LD CFLAGS V 28export srctree OUTPUT CC LD CFLAGS V
27include $(srctree)/tools/build/Makefile.include 29include $(srctree)/tools/build/Makefile.include
28 30
29all: $(LIBFILE) 31all: fixdep $(LIBFILE)
30 32
31$(API_IN): FORCE 33$(API_IN): FORCE
32 @$(MAKE) $(build)=libapi 34 @$(MAKE) $(build)=libapi
diff --git a/tools/lib/bpf/Makefile b/tools/lib/bpf/Makefile
index c66ade68d4a1..fc9af57b666e 100644
--- a/tools/lib/bpf/Makefile
+++ b/tools/lib/bpf/Makefile
@@ -123,6 +123,8 @@ endif
123# the same command line setup. 123# the same command line setup.
124MAKEOVERRIDES= 124MAKEOVERRIDES=
125 125
126all:
127
126export srctree OUTPUT CC LD CFLAGS V 128export srctree OUTPUT CC LD CFLAGS V
127include $(srctree)/tools/build/Makefile.include 129include $(srctree)/tools/build/Makefile.include
128 130
@@ -133,7 +135,7 @@ CMD_TARGETS = $(LIB_FILE)
133 135
134TARGETS = $(CMD_TARGETS) 136TARGETS = $(CMD_TARGETS)
135 137
136all: $(VERSION_FILES) all_cmd 138all: fixdep $(VERSION_FILES) all_cmd
137 139
138all_cmd: $(CMD_TARGETS) 140all_cmd: $(CMD_TARGETS)
139 141
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index d12081da383b..7e319afac78a 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -93,6 +93,8 @@ else
93 print_install = echo ' INSTALL '$1' to $(DESTDIR_SQ)$2'; 93 print_install = echo ' INSTALL '$1' to $(DESTDIR_SQ)$2';
94endif 94endif
95 95
96all:
97
96export srctree OUTPUT CC LD CFLAGS V 98export srctree OUTPUT CC LD CFLAGS V
97include $(srctree)/tools/build/Makefile.include 99include $(srctree)/tools/build/Makefile.include
98 100
@@ -109,7 +111,7 @@ CMD_TARGETS = $(LIB_FILE)
109TARGETS = $(CMD_TARGETS) 111TARGETS = $(CMD_TARGETS)
110 112
111 113
112all: all_cmd 114all: fixdep all_cmd
113 115
114all_cmd: $(CMD_TARGETS) 116all_cmd: $(CMD_TARGETS)
115 117