diff options
author | Andrew Morgan <morgan@kernel.org> | 2007-07-10 20:50:21 -0700 |
---|---|---|
committer | Andrew Morgan <morgan@kernel.org> | 2007-07-10 20:50:21 -0700 |
commit | 2c9c0532daccfd300f0eb1401b15348ed19d0ce7 (patch) | |
tree | 0e850e1a45be8cb8452a5157bd4b6538eafdbebe /libcap/RCS/Makefile,v | |
download | libcap-2c9c0532daccfd300f0eb1401b15348ed19d0ce7.tar.gz |
This is the source for libcap-1.0.tar.gz
http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.2/libcap-1.0.tar.gz
Diffstat (limited to 'libcap/RCS/Makefile,v')
-rw-r--r-- | libcap/RCS/Makefile,v | 256 |
1 files changed, 256 insertions, 0 deletions
diff --git a/libcap/RCS/Makefile,v b/libcap/RCS/Makefile,v new file mode 100644 index 0000000..098675e --- /dev/null +++ b/libcap/RCS/Makefile,v @@ -0,0 +1,256 @@ +head 1.5; +access; +symbols; +locks; strict; +comment @# @; + + +1.5 +date 98.05.24.22.54.09; author morgan; state Exp; +branches; +next 1.4; + +1.4 +date 97.05.14.05.17.13; author morgan; state Exp; +branches; +next 1.3; + +1.3 +date 97.05.04.05.34.59; author morgan; state Exp; +branches; +next 1.2; + +1.2 +date 97.04.28.00.57.11; author morgan; state Exp; +branches; +next 1.1; + +1.1 +date 97.04.21.04.33.29; author morgan; state Exp; +branches; +next ; + + +desc +@first take +@ + + +1.5 +log +@updated for 2.1.104 +@ +text +@## +## $Log: Makefile,v $ +## Revision 1.4 1997/05/14 05:17:13 morgan +## autoconf rearrangement from Zefram +## +## Revision 1.3 1997/05/04 05:34:59 morgan +## cleaner +## +## Revision 1.2 1997/04/28 00:57:11 morgan +## fixes and zefram's patches +## +## Revision 1.1 1997/04/21 04:33:29 morgan +## Initial revision +## +## +## + +# +# defines +# +topdir=$(shell pwd)/.. +include ../Make.Rules +# +# Library version +# +LIBNAME=libcap.so +# + +FILES=cap_alloc cap_proc cap_extint cap_flag cap_text cap_sys + +# for later when there is filesystem support for cap's: +#FILES += cap_file + +INCLS=libcap.h cap_names.h $(INCS) +OBJS=$(addsuffix .o, $(FILES)) +MAJLIBNAME=$(LIBNAME).$(VERSION) +MINLIBNAME=$(MAJLIBNAME).$(MINOR) + +all: $(MINLIBNAME) + +_makenames: _makenames.c cap_names.sed + $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@@ + +cap_names.h: _makenames + ./_makenames > cap_names.h + +cap_names.sed: Makefile /usr/include/linux/capability.h + @@echo "=> making cap_names.c from <linux/capability.h>" + @@sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define \([^ \t]*\)[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed +# @@sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define CAP_\([^ \t]*\)[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed + +$(MINLIBNAME): $(OBJS) + $(LD) -soname $(MAJLIBNAME) -x -shared -o $@@ $(OBJS) + ln -sf $(MINLIBNAME) $(MAJLIBNAME) + ln -sf $(MAJLIBNAME) $(LIBNAME) + +%.o: %.c $(INCLS) + $(CC) $(CFLAGS) -c $< -o $@@ + +install: all + mkdir -p -m 0755 $(INCDIR)/sys + install -m 0644 include/sys/capability.h $(INCDIR)/sys + mkdir -p -m 0755 $(LIBDIR) + install -m 0644 $(MINLIBNAME) $(LIBDIR)/$(MINLIBNAME) + ln -sf $(MINLIBNAME) $(LIBDIR)/$(MAJLIBNAME) + ln -sf $(MAJLIBNAME) $(LIBDIR)/$(LIBNAME) + -/sbin/ldconfig + +clean: + $(LOCALCLEAN) + rm -f $(OBJS) $(LIBNAME)* + rm -f cap_names.h cap_names.sed _makenames + cd include/sys && $(LOCALCLEAN) + +@ + + +1.4 +log +@autoconf rearrangement from Zefram +@ +text +@d3 3 +d29 4 +a32 2 +FILES=cap_alloc cap_file cap_proc cap_extint cap_flag cap_text cap_sys \ + cap_names +d34 1 +a34 1 +INCLS=libcap.h $(INCS) +d44 2 +a45 2 +cap_names.c: _makenames + ./_makenames > cap_names.c +d49 2 +a50 1 + @@sed -ne '/^#define CAP_/{s/^#define \([^ ]*\)[ ]*\([^ ]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h > cap_names.sed +d72 1 +a72 1 + rm -f cap_names.c cap_names.sed _makenames +@ + + +1.3 +log +@cleaner +@ +text +@d3 3 +d18 1 +a18 1 +topdir=.. +d29 1 +a29 1 +INCS=libcap.h include/sys/capability.h +d34 1 +a34 1 +all: $(LIBNAME) +d37 1 +a37 1 + $(CC) $(CFLAGS) $< -o $@@ +d46 1 +a46 1 +$(LIBNAME): $(OBJS) +d48 2 +d51 1 +a51 1 +%.o: %.c $(INCS) +d55 5 +a59 6 + mkdir -p $(INCDIR)/sys + install -g root -o root -m 0644 include/sys/capability.h $(INCDIR)/sys + mkdir -p $(LIBDIR) + install -g root -o root -m 0444 $(LIBNAME) $(LIBDIR)/$(MINLIBNAME) + rm -f $(LIBDIR)/$(LIBNAME) + /sbin/ldconfig -nN $(LIBDIR) +d61 1 +d65 2 +a66 1 + rm -f $(OBJS) $(LIBNAME) cap_names.c cap_names.sed _makenames +@ + + +1.2 +log +@fixes and zefram's patches +@ +text +@d3 3 +d33 9 +a41 12 +cap_names.c: _makenames /usr/include/linux/capability.h + @@echo -e "\n=> making cap_names.c from <linux/capability.h>\n" + @@( \ + echo '/** cap_names.c **'; \ + echo ' ** automatically generated -- DO NOT EDIT! **/'; \ + echo; \ + echo '#include "libcap.h"'; \ + echo; \ + echo 'char const *_cap_names[__CAP_BITS] = {'; \ + sed -ne '/^#define CAP_/{s/^#define \([^ ]*\)[ ]*\([^ ]*\)/ \2\/\1/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | ./_makenames; \ + echo '};'; \ + ) > $@@ +d55 2 +a56 2 + /sbin/ldconfig + cd $(LIBDIR) && ln -sf $(MAJLIBNAME) $(LIBNAME) +d60 1 +a60 1 + rm -f $(OBJS) $(LIBNAME) cap_names.c _makenames +@ + + +1.1 +log +@Initial revision +@ +text +@d3 3 +d10 1 +a10 1 +# flags +d12 2 +a13 5 +IPATH=-I./include +WARNINGS = -ansi -D_POSIX_SOURCE -Wall -Wwrite-strings \ + -Wpointer-arith -Wcast-qual -Wcast-align \ + -Wtraditional -Wstrict-prototypes -Wmissing-prototypes \ + -Wnested-externs -Winline -Wshadow -pedantic +a17 2 +VERSION=0 +MINOR=01 +d20 3 +a22 1 +FILES=cap_alloc cap_file cap_proc cap_extint cap_flag cap_text cap_sys +d28 1 +a28 1 +export CFLAGS =-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH) +d30 12 +a41 1 +all: $(LIBNAME) +d50 5 +a54 4 + mkdir -p $(FAKEROOT)/usr/include/sys + install -g root -o root -m 0644 include/sys/capability.h $(FAKEROOT)/usr/include/sys + mkdir -p $(FAKEROOT)/lib + install -g root -o root -m 0444 $(LIBNAME) $(FAKEROOT)/lib/$(MINLIBNAME) +d56 1 +d59 3 +a61 2 + rm -f *~ core $(OBJS) $(LIBNAME) + cd include/sys && rm -f *~ core +@ |