summaryrefslogtreecommitdiffstats
path: root/tools/cgroup/Makefile
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2013-01-04 22:05:17 +0100
committerTejun Heo <tj@kernel.org>2013-01-07 18:41:28 +0100
commit92e015b1cfc24e3cb072385f25171b8599cc7ef3 (patch)
tree465c64f5b337dcdec22adb6cb4aa82c5fe410bca /tools/cgroup/Makefile
parentcgroup: implement cgroup_rightmost_descendant() (diff)
downloadlinux-92e015b1cfc24e3cb072385f25171b8599cc7ef3.tar.xz
linux-92e015b1cfc24e3cb072385f25171b8599cc7ef3.zip
cgroups: move cgroup_event_listener.c to tools/cgroup
Move the cgroup_event_listener.c tool from Documentation into the new tools/cgroup directory. This change involves wiring cgroup_event_listener.c into the tools/ make system so that is can be built with: $ make tools/cgroup Signed-off-by: Greg Thelen <gthelen@google.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/cgroup/Makefile')
-rw-r--r--tools/cgroup/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cgroup/Makefile b/tools/cgroup/Makefile
new file mode 100644
index 000000000000..b4286196b763
--- /dev/null
+++ b/tools/cgroup/Makefile
@@ -0,0 +1,11 @@
+# Makefile for cgroup tools
+
+CC = $(CROSS_COMPILE)gcc
+CFLAGS = -Wall -Wextra
+
+all: cgroup_event_listener
+%: %.c
+ $(CC) $(CFLAGS) -o $@ $^
+
+clean:
+ $(RM) cgroup_event_listener