From 5d3c683a3f4160cb4d081a3ddcf367311ddf0c8b Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Wed, 13 Aug 2008 19:35:01 +0000 Subject: 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 Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@134 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- Makefile.in | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'Makefile.in') 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 -- cgit