diff options
Diffstat (limited to 'src/lib9')
-rw-r--r-- | src/lib9/Make.Darwin-PowerMacintosh | 6 | ||||
-rw-r--r-- | src/lib9/Make.FreeBSD-386 | 7 | ||||
-rw-r--r-- | src/lib9/Make.HP-UX-9000 | 6 | ||||
-rw-r--r-- | src/lib9/Make.Linux-386 | 7 | ||||
-rw-r--r-- | src/lib9/Make.NetBSD-386 | 7 | ||||
-rw-r--r-- | src/lib9/Make.OSF1-alpha | 6 | ||||
-rw-r--r-- | src/lib9/Make.SunOS-sun4u | 2 | ||||
-rw-r--r-- | src/lib9/Make.SunOS-sun4u-cc | 6 | ||||
-rw-r--r-- | src/lib9/Make.SunOS-sun4u-gcc | 6 | ||||
-rw-r--r-- | src/lib9/Makefile | 89 | ||||
-rw-r--r-- | src/lib9/Makefile.MID | 49 | ||||
-rw-r--r-- | src/lib9/mkfile | 2 |
12 files changed, 3 insertions, 190 deletions
diff --git a/src/lib9/Make.Darwin-PowerMacintosh b/src/lib9/Make.Darwin-PowerMacintosh deleted file mode 100644 index 14b8d4e7..00000000 --- a/src/lib9/Make.Darwin-PowerMacintosh +++ /dev/null @@ -1,6 +0,0 @@ -CC=gcc -CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I${PREFIX}/include -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O diff --git a/src/lib9/Make.FreeBSD-386 b/src/lib9/Make.FreeBSD-386 deleted file mode 100644 index 087ed3ab..00000000 --- a/src/lib9/Make.FreeBSD-386 +++ /dev/null @@ -1,7 +0,0 @@ -CC=gcc -CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME) -NAN=nan64.$O diff --git a/src/lib9/Make.HP-UX-9000 b/src/lib9/Make.HP-UX-9000 deleted file mode 100644 index edbdc111..00000000 --- a/src/lib9/Make.HP-UX-9000 +++ /dev/null @@ -1,6 +0,0 @@ -CC=cc -CFLAGS=-O -c -Ae -I. -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O diff --git a/src/lib9/Make.Linux-386 b/src/lib9/Make.Linux-386 deleted file mode 100644 index 74b0252c..00000000 --- a/src/lib9/Make.Linux-386 +++ /dev/null @@ -1,7 +0,0 @@ -CC=gcc -CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME) -NAN=nan64.$O diff --git a/src/lib9/Make.NetBSD-386 b/src/lib9/Make.NetBSD-386 deleted file mode 100644 index 087ed3ab..00000000 --- a/src/lib9/Make.NetBSD-386 +++ /dev/null @@ -1,7 +0,0 @@ -CC=gcc -CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME) -NAN=nan64.$O diff --git a/src/lib9/Make.OSF1-alpha b/src/lib9/Make.OSF1-alpha deleted file mode 100644 index 3d45279b..00000000 --- a/src/lib9/Make.OSF1-alpha +++ /dev/null @@ -1,6 +0,0 @@ -CC=cc -CFLAGS+=-g -c -I. -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O diff --git a/src/lib9/Make.SunOS-sun4u b/src/lib9/Make.SunOS-sun4u deleted file mode 100644 index c5fe67b8..00000000 --- a/src/lib9/Make.SunOS-sun4u +++ /dev/null @@ -1,2 +0,0 @@ -include Make.SunOS-sun4u-$(CC) -NAN=nan64.$O diff --git a/src/lib9/Make.SunOS-sun4u-cc b/src/lib9/Make.SunOS-sun4u-cc deleted file mode 100644 index 829301de..00000000 --- a/src/lib9/Make.SunOS-sun4u-cc +++ /dev/null @@ -1,6 +0,0 @@ -CC=cc -CFLAGS+=-g -c -I. -O -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O diff --git a/src/lib9/Make.SunOS-sun4u-gcc b/src/lib9/Make.SunOS-sun4u-gcc deleted file mode 100644 index 5c415948..00000000 --- a/src/lib9/Make.SunOS-sun4u-gcc +++ /dev/null @@ -1,6 +0,0 @@ -CC=gcc -CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -O=o -AR=ar -ARFLAGS=rvc -NAN=nan64.$O diff --git a/src/lib9/Makefile b/src/lib9/Makefile index 595db787..5f8e5aee 100644 --- a/src/lib9/Makefile +++ b/src/lib9/Makefile @@ -1,27 +1,7 @@ - -# this works in gnu make -SYSNAME:=${shell uname} -OBJTYPE:=${shell uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g'} - -# this works in bsd make -SYSNAME!=uname -OBJTYPE!=uname -m | sed 's;i.86;386;; s;/.*;;; s; ;;g' - -# the gnu rules will mess up bsd but not vice versa, -# hence the gnu rules come first. - -include Make.$(SYSNAME)-$(OBJTYPE) - -PREFIX=/usr/local - -NUKEFILES= - -TGZFILES= +9SRC=.. +include $(9SRC)/Makehdr LIB=lib9.a -VERSION=2.0 -PORTPLACE=devel/lib9 -NAME=lib9 OFILES=\ _exits.$O\ @@ -53,68 +33,5 @@ OFILES=\ HFILES=\ lib9.h\ -all: $(LIB) - -install: $(LIB) - test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3 - # install -m 0644 lib9.3 $(PREFIX)/man/man3/lib9.3 - install -m 0644 lib9.h $(PREFIX)/include/lib9.h - install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB) - -test: $(LIB) test.$O - $(CC) -o test test.$O $(LIB) -L$(PREFIX)/lib -lfmt -lutf - -testfork: $(LIB) testfork.$O - $(CC) -o testfork testfork.$O $(LIB) -L$(PREFIX)/lib -lfmt -lutf - -$(LIB): $(OFILES) - $(AR) $(ARFLAGS) $(LIB) $(OFILES) - -NUKEFILES+=$(LIB) -.c.$O: - $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c - -%.$O: %.c - $(CC) $(CFLAGS) -I$(PREFIX)/include $*.c - - -$(OFILES): $(HFILES) - -tgz: - rm -rf $(NAME)-$(VERSION) - mkdir $(NAME)-$(VERSION) - cp Makefile Make.* README LICENSE NOTICE *.[ch137] rpm.spec bundle.ports $(TGZFILES) $(NAME)-$(VERSION) - tar cf - $(NAME)-$(VERSION) | gzip >$(NAME)-$(VERSION).tgz - rm -rf $(NAME)-$(VERSION) - -clean: - rm -f $(OFILES) $(LIB) - -nuke: - rm -f $(OFILES) *.tgz *.rpm $(NUKEFILES) - -rpm: - make tgz - cp $(NAME)-$(VERSION).tgz /usr/src/RPM/SOURCES - rpm -ba rpm.spec - cp /usr/src/RPM/SRPMS/$(NAME)-$(VERSION)-1.src.rpm . - cp /usr/src/RPM/RPMS/i586/$(NAME)-$(VERSION)-1.i586.rpm . - scp *.rpm rsc@amsterdam.lcs.mit.edu:public_html/software - -PORTDIR=/usr/ports/$(PORTPLACE) - -ports: - make tgz - rm -rf $(PORTDIR) - mkdir $(PORTDIR) - cp $(NAME)-$(VERSION).tgz /usr/ports/distfiles - cat bundle.ports | (cd $(PORTDIR) && awk '$$1=="---" && $$3=="---" { ofile=$$2; next} {if(ofile) print >ofile}') - (cd $(PORTDIR); make makesum) - (cd $(PORTDIR); make) - (cd $(PORTDIR); /usr/local/bin/portlint) - rm -rf $(PORTDIR)/work - shar `find $(PORTDIR)` > ports.shar - (cd $(PORTDIR); tar cf - *) | gzip >$(NAME)-$(VERSION)-ports.tgz - scp *.tgz rsc@amsterdam.lcs.mit.edu:public_html/software +include $(9SRC)/Makesyslib -.phony: all clean nuke install tgz rpm ports diff --git a/src/lib9/Makefile.MID b/src/lib9/Makefile.MID deleted file mode 100644 index 8b3584cb..00000000 --- a/src/lib9/Makefile.MID +++ /dev/null @@ -1,49 +0,0 @@ -LIB=lib9.a -VERSION=2.0 -PORTPLACE=devel/lib9 -NAME=lib9 - -OFILES=\ - _exits.$O\ - argv0.$O\ - await.$O\ - encodefmt.$O\ - errstr.$O\ - exits.$O\ - ffork-$(SYSNAME).$O\ - getcallerpc-$(OBJTYPE).$O\ - getfields.$O\ - lock.$O\ - malloctag.$O\ - mallocz.$O\ - nrand.$O\ - qlock.$O\ - readn.$O\ - rendez.$O\ - strecpy.$O\ - sysfatal.$O\ - tas-$(OBJTYPE).$O\ - tokenize.$O\ - u16.$O\ - u32.$O\ - u64.$O\ - wait.$O\ - werrstr.$O\ - -HFILES=\ - lib9.h\ - -all: $(LIB) - -install: $(LIB) - test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3 - # install -m 0644 lib9.3 $(PREFIX)/man/man3/lib9.3 - install -m 0644 lib9.h $(PREFIX)/include/lib9.h - install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB) - -test: $(LIB) test.$O - $(CC) -o test test.$O $(LIB) -L$(PREFIX)/lib -lfmt -lutf - -testfork: $(LIB) testfork.$O - $(CC) -o testfork testfork.$O $(LIB) -L$(PREFIX)/lib -lfmt -lutf - diff --git a/src/lib9/mkfile b/src/lib9/mkfile deleted file mode 100644 index 703f6b06..00000000 --- a/src/lib9/mkfile +++ /dev/null @@ -1,2 +0,0 @@ -<../libutf/mkfile - |