summaryrefslogtreecommitdiffstats
path: root/tools/vm/Makefile
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2013-02-20 16:32:33 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-15 13:06:01 -0300
commit5a439645eaf3c0c64ae303ca57f9a4467cbdc6f3 (patch)
treecd68923374361de371c8bf168de814e20fe38995 /tools/vm/Makefile
parent1355915ac626da30a0c02ccd4569c1e5ce2cbb82 (diff)
downloadtalos-obmc-linux-5a439645eaf3c0c64ae303ca57f9a4467cbdc6f3.tar.gz
talos-obmc-linux-5a439645eaf3c0c64ae303ca57f9a4467cbdc6f3.zip
tools/vm: Switch to liblk library
page-flags.c had some older version of debugfs_mount copied from perf so convert it to using the version in the tools library. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Ingo Molnar <mingo@kernel.org> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Wu Fengguang <fengguang.wu@intel.com> Link: http://lkml.kernel.org/r/1361374353-30385-8-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/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/tools/vm/Makefile b/tools/vm/Makefile
index 8e30e5c40f8a..24e9ddd93fa4 100644
--- a/tools/vm/Makefile
+++ b/tools/vm/Makefile
@@ -1,11 +1,22 @@
# Makefile for vm tools
+#
+TARGETS=page-types slabinfo
+
+LK_DIR = ../lib/lk
+LIBLK = $(LK_DIR)/liblk.a
CC = $(CROSS_COMPILE)gcc
-CFLAGS = -Wall -Wextra
+CFLAGS = -Wall -Wextra -I../lib/
+LDFLAGS = $(LIBLK)
+
+$(TARGETS): liblk
+
+liblk:
+ make -C $(LK_DIR)
-all: page-types slabinfo
%: %.c
- $(CC) $(CFLAGS) -o $@ $^
+ $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
clean:
$(RM) page-types slabinfo
+ make -C ../lib/lk clean
OpenPOWER on IntegriCloud