date and time created 81/02/18 18:26:30 by dlw
authorDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Thu, 19 Feb 1981 10:26:30 +0000 (02:26 -0800)
committerDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Thu, 19 Feb 1981 10:26:30 +0000 (02:26 -0800)
SCCS-vsn: usr.bin/f77/libI77/makefile 1.1

usr/src/usr.bin/f77/libI77/makefile [new file with mode: 0644]

diff --git a/usr/src/usr.bin/f77/libI77/makefile b/usr/src/usr.bin/f77/libI77/makefile
new file mode 100644 (file)
index 0000000..5073f9e
--- /dev/null
@@ -0,0 +1,95 @@
+# Makefile for the f77 I/O library
+#      @(#)makefile    1.1
+# Originally written by P. Weinberger, Bell Labs, Murray Hill, N.J.
+# Modified by D. Wasley, Univ of California, Berkeley, Calif.
+
+DESTDIR = cc
+CFLAGS = -O
+TAPE = /dev/nrmt1
+
+SOURCES = backspace.c close.c dballoc.c dfe.c due.c endfile.c err.c fmt.c \
+       fmtlib.c iio.c inquire.c lwrite.c lread.c dolio.c open.c \
+       rdfmt.c rewind.c sfe.c sue.c douio.c util.c wrtfmt.c \
+       dofio.c fiodefs.h fio.h format.h lio.h f_errno.h f_errlist.h
+
+OBJECTS = dfe.o due.o iio.o sue.o sfe.o lread.o lwrite.o \
+       dofio.o douio.o dolio.o \
+       rdfmt.o wrtfmt.o fmt.o fmtlib.o \
+       backspace.o rewind.o open.o close.o endfile.o inquire.o \
+       dballoc.o err.o util.o
+
+libI77.a:      $(OBJECTS) Version
+       @echo Loading
+       @rm -f libI77.a
+       @ar rc libI77.a $(OBJECTS) Version
+       @chmod 664 libI77.a
+       @echo "Done\a\a\a"
+
+install:
+#      @mv /usr/$(DESTDIR)/lib/libI77.a /usr/$(DESTDIR)/lib/libI77.a.old
+       cp libI77.a /usr/$(DESTDIR)/lib/libI77.a
+
+backspace.o:   fio.h backspace.c
+dfe.o:         fio.h dfe.c
+due.o:         fio.h due.c
+iio.o:         fio.h lio.h iio.c
+inquire.o:     fio.h inquire.c
+rewind.o:      fio.h rewind.c
+rdfmt.o:       fio.h format.h rdfmt.c
+sue.o:         fio.h sue.c
+douio.o:       fio.h douio.c
+sfe.o:         fio.h sfe.c
+fmt.o:         fio.h format.h fmt.c
+dofio.o:       fio.h format.h dofio.c
+lwrite.o:      fio.h lio.h lwrite.c
+lread.o:       fio.h lio.h lread.c
+dolio.o:       fio.h lio.h dolio.c
+open.o:                fio.h open.c
+close.o:       fio.h close.c
+util.o:                fio.h util.c
+endfile.o:     fio.h endfile.c
+wrtfmt.o:      fio.h format.h wrtfmt.c
+err.o:         fiodefs.h err.c
+fmtlib.o:      fio.h fmtlib.c
+dballoc.o:     dballoc.c
+#fio.h:                fiodefs.h
+
+# compile, then strip unnecessary symbols
+.c.o:
+       cc $(CFLAGS) -c $*.c
+       -ld -r -x $*.o
+       mv a.out $*.o
+
+Version:       $(SOURCES)
+       @rm -f Version.c
+       mkvers libI77.a $(SOURCES)
+       cc -c Version.c
+       mv Version.o Version
+
+clean:
+       rm -f *.o libI77.a tags
+
+index: $(SOURCES)
+       @mkindx "f77 libI77.a Source Listing " Makefile $(SOURCES)
+
+print: index
+       @pr index Makefile `ls $(SOURCES)` | lpr
+
+Intro: Intro.tx
+       @-rm Intro
+       @nroff -ms Intro.tx > Intro
+
+wup:   Intro.tx
+       @nroff -ms Intro.tx | ul | more
+
+tape:  
+       @tar cbf 20 $(TAPE) \
+       Makefile READ_ME NEWS Intro.tx Intro $(SOURCES)
+
+order:
+       @rm -f order
+       @lorder $(OBJECTS) | tsort >order
+
+tags:  $(SOURCES)
+       @ctags $(SOURCES)
+