diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-06-16 18:11:37 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-06-16 18:11:37 +0000 |
commit | 7e671e48c7a2cfc4f9cae4fd8f909111ded24c60 (patch) | |
tree | 2641e9182cf80d8c080299ff2992d314e2929be0 /Makefile.in | |
parent | d90a5a5fcfd899f32eae6fd3ce87b082ff221df8 (diff) | |
parent | f00b82b6f9114694e3c05e2bb3a5395ce59c85de (diff) | |
download | libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.tar.gz libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.tar.xz libcg-7e671e48c7a2cfc4f9cae4fd8f909111ded24c60.zip |
libcg: Add a new trunk
Setting trunk to v0.1c. This is the branch against which
all development should take place.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@79 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..172b225 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,61 @@ +# +# Copyright IBM Corporation. 2007 +# +# Authors: Balbir Singh <balbir@linux.vnet.ibm.com> +# This program is free software; you can redistribute it and/or modify it +# under the terms of version 2.1 of the GNU Lesser General Public License +# as published by the Free Software Foundation. +# +# This program is distributed in the hope that it would be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +YACC_DEBUG=-t +DEBUG=-DDEBUG +INC=-I. +LIBS= -lcgroup +LDFLAGS=@LDFLAGS@ +YACC=@YACC@ +LEX=@LEX@ +bindir=@bindir@ +libdir=@libdir@ +includedir=@includedir@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +INSTALL=install +INSTALL_DATA=install -m 644 +PACKAGE_VERSION=@PACKAGE_VERSION@ +CFLAGS=@CFLAGS@ $(INC) -DPACKAGE_VERSION=$(PACKAGE_VERSION) +VERSION=1 + +all: libcgroup.so + +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) + +y.tab.c: parse.y lex.yy.c + $(YACC) -v -d parse.y + +lex.yy.c: lex.l + $(LEX) lex.l + +libcgroup.so: api.c libcgroup.h wrapper.c + $(CXX) $(CFLAGS) -shared -fPIC -Wl,--soname,$@.$(VERSION) -o $@ api.c \ + wrapper.c + ln -sf $@ $@.$(VERSION) + +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 + +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 + +clean: + \rm -f y.tab.c y.tab.h lex.yy.c y.output cgconfig libcgroup.so \ + libcgroup.so.$(VERSION) |