diff options
| author | Borislav Petkov <bp@suse.de> | 2013-12-09 11:14:23 -0500 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-12-16 14:03:27 -0500 |
| commit | 553873e1df63a20559ac9c336765dc7055cfc3d4 (patch) | |
| tree | cdae36b2cbe9818bea7e6987a9e73baf9d79fd53 /tools/vm/Makefile | |
| parent | b283d2f3b74bc98174e8453c0be41dfcda3cae1b (diff) | |
tools/: Convert to new topic libraries
Move debugfs.* to api/fs/. We have a common tools/lib/api/ place where
the Makefile lives and then we place the headers in subdirs.
For example, all the fs-related stuff goes to tools/lib/api/fs/ from
which we get libapikfs.a (acme got almost the naming he wanted :-)) and
we link it into the tools which need it - in this case perf and
tools/vm/page-types.
acme:
"Looking at the implementation, I think some tools can even link
directly to the .o files, avoiding the .a file altogether.
But that is just an optimization/finer granularity tools/lib/
cherrypicking that toolers can make use of."
Fixup documentation cleaning target while at it.
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Ingo Molnar <mingo@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Arjan van de Ven <arjan@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Richter <rric@kernel.org>
Cc: Stanislav Fomichev <stfomichev@yandex-team.ru>
Cc: Stephane Eranian <eranian@google.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1386605664-24041-2-git-send-email-bp@alien8.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/vm/Makefile')
| -rw-r--r-- | tools/vm/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/vm/Makefile b/tools/vm/Makefile index 24e9ddd93fa4..3d907dacf2ac 100644 --- a/tools/vm/Makefile +++ b/tools/vm/Makefile | |||
| @@ -2,21 +2,21 @@ | |||
| 2 | # | 2 | # |
| 3 | TARGETS=page-types slabinfo | 3 | TARGETS=page-types slabinfo |
| 4 | 4 | ||
| 5 | LK_DIR = ../lib/lk | 5 | LIB_DIR = ../lib/api |
| 6 | LIBLK = $(LK_DIR)/liblk.a | 6 | LIBS = $(LIB_DIR)/libapikfs.a |
| 7 | 7 | ||
| 8 | CC = $(CROSS_COMPILE)gcc | 8 | CC = $(CROSS_COMPILE)gcc |
| 9 | CFLAGS = -Wall -Wextra -I../lib/ | 9 | CFLAGS = -Wall -Wextra -I../lib/ |
| 10 | LDFLAGS = $(LIBLK) | 10 | LDFLAGS = $(LIBS) |
| 11 | 11 | ||
| 12 | $(TARGETS): liblk | 12 | $(TARGETS): $(LIBS) |
| 13 | 13 | ||
| 14 | liblk: | 14 | $(LIBS): |
| 15 | make -C $(LK_DIR) | 15 | make -C $(LIB_DIR) |
| 16 | 16 | ||
| 17 | %: %.c | 17 | %: %.c |
| 18 | $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) | 18 | $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) |
| 19 | 19 | ||
| 20 | clean: | 20 | clean: |
| 21 | $(RM) page-types slabinfo | 21 | $(RM) page-types slabinfo |
| 22 | make -C ../lib/lk clean | 22 | make -C $(LIB_DIR) clean |
