summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorDhaval Giani <dhaval@linux.vnet.ibm.com>2008-08-13 19:35:01 +0000
committerDhaval Giani <dhaval@linux.vnet.ibm.com>2008-08-13 19:35:01 +0000
commit5d3c683a3f4160cb4d081a3ddcf367311ddf0c8b (patch)
treefcb3bc308190d622eb1559714b82d8372e38a5e5 /Makefile.in
parent5c16f4a02dfee006b7fb8a04162ed511e3abc481 (diff)
downloadlibcg-5d3c683a3f4160cb4d081a3ddcf367311ddf0c8b.tar.gz
libcg-5d3c683a3f4160cb4d081a3ddcf367311ddf0c8b.tar.xz
libcg-5d3c683a3f4160cb4d081a3ddcf367311ddf0c8b.zip
libcgroup: Configuration and parsing updates (v2)
Dhaval, wanted a patch with -p1 generated so that he can apply it and use it with quilt. Here goes Testing Tested with samples/cgconfig.conf (NOTE: expects user balbir to be present on the system, feel free to change and test). TODO 1. Add hooks for other controllers, namely memory, cpuacct and cpuset Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com> Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com> git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@134 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in22
1 files changed, 11 insertions, 11 deletions
diff --git a/Makefile.in b/Makefile.in
index f0269ba..aeab421 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -14,10 +14,11 @@ YACC_DEBUG=-t
DEBUG=-DDEBUG
INC=-I.
LIBS= -lcgroup -lpthread
-LDFLAGS=@LDFLAGS@
+LDFLAGS=@LDFLAGS@ -L .
YACC=@YACC@
LEX=@LEX@
bindir=@bindir@
+sbindir=@sbindir@
libdir=@libdir@
includedir=@includedir@
prefix=@prefix@
@@ -28,10 +29,11 @@ PACKAGE_VERSION=@PACKAGE_VERSION@
CFLAGS=@CFLAGS@ $(INC) -DPACKAGE_VERSION=$(PACKAGE_VERSION)
VERSION=1
-all: libcgroup.so
+all: libcgroup.so cgconfigparser
-cgconfig: libcgroup.so config.c y.tab.c lex.yy.c libcgroup.h file-ops.c
- $(CC) $(CFLAGS) -o $@ y.tab.c lex.yy.c config.c file-ops.c $(LDFLAGS) $(LIBS)
+cgconfigparser: libcgroup.so config.c y.tab.c lex.yy.c libcgroup.h file-ops.c
+ $(CC) $(CFLAGS) -o $@ y.tab.c lex.yy.c config.c file-ops.c \
+ $(LDFLAGS) $(LIBS)
y.tab.c: parse.y lex.yy.c
$(YACC) -v -d parse.y
@@ -40,26 +42,24 @@ lex.yy.c: lex.l
$(LEX) lex.l
libcgroup.so: api.c libcgroup.h wrapper.c
- $(CC) $(CFLAGS) -shared -fPIC -Wl,--soname,$@.$(VERSION) -o $@ api.c \
+ $(CXX) $(CFLAGS) -shared -fPIC -Wl,--soname,$@.$(VERSION) -o $@ api.c \
wrapper.c
ln -sf $@ $@.$(VERSION)
-test:
- $(MAKE) -C tests
-
install: libcgroup.so
$(INSTALL_DATA) -D libcgroup.h $(DESTDIR)$(includedir)/libcgroup.h
$(INSTALL) -D libcgroup.so $(DESTDIR)$(libdir)/libcgroup-$(PACKAGE_VERSION).so
ln -sf libcgroup-$(PACKAGE_VERSION).so $(DESTDIR)$(libdir)/libcgroup.so.$(VERSION)
ln -sf libcgroup.so.$(VERSION) $(DESTDIR)$(libdir)/libcgroup.so
+ $(INSTALL) -D cgconfigparser $(DESTDIR)$(sbindir)
uninstall: libcgroup.so
rm -f $(DESTDIR)$(includedir)/libcgroup.h
rm -f $(DESTDIR)$(libdir)/libcgroup.so
rm -f $(DESTDIR)$(libdir)/libcgroup.so.$(VERSION)
rm -f $(DESTDIR)$(libdir)/libcgroup-$(PACKAGE_VERSION).so
+ rm -f $(DESTDIR)$(sbindir)/cgconfigparser
clean:
- \rm -f y.tab.c y.tab.h lex.yy.c y.output cgconfig libcgroup.so \
- libcgroup.so.$(VERSION)
- $(MAKE) -C tests clean
+ \rm -f y.tab.c y.tab.h lex.yy.c y.output libcgroup.so \
+ libcgroup.so.$(VERSION) cgconfigparser config.log config.status