summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:34 +0200
committerJan Safranek <jsafrane@redhat.com>2009-05-25 09:48:34 +0200
commit62e5d793d3d34479fec591dee62854381dc51291 (patch)
tree1c5ee0a288a5c6da051745df1df5eca7a7e3ec43 /src/tools
parent4a79706ce7f2e24dc7a028a42d2311aa885d77c3 (diff)
downloadlibcg-62e5d793d3d34479fec591dee62854381dc51291.tar.gz
libcg-62e5d793d3d34479fec591dee62854381dc51291.tar.xz
libcg-62e5d793d3d34479fec591dee62854381dc51291.zip
Add options to enable/disable various build targets.
By default, everything is compiled. I want to add options to ./configure, which can selectively disable tools, daemon and pam module. The library itself is mandatory component and cannot be disabled. Usage: ./configure --help ./configure --disable-tools --disable-pam --disable-daemon Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/Makefile.am4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am
index e1cace3..93d09ac 100644
--- a/src/tools/Makefile.am
+++ b/src/tools/Makefile.am
@@ -1,7 +1,10 @@
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/include
LDADD = $(top_srcdir)/src/.libs/libcgroup.la
+if WITH_TOOLS
+
bin_PROGRAMS = cgexec cgclassify
+
sbin_PROGRAMS = cgconfigparser
cgexec_SOURCES = cgexec.c tools-common.c tools-common.h
@@ -10,3 +13,4 @@ cgclassify_SOURCES = cgclassify.c tools-common.c tools-common.h
cgconfigparser_SOURCES = cgconfig.c
+endif