BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.lib / liby / Makefile
index be1de5e..0ba3795 100644 (file)
@@ -1,22 +1,42 @@
 #
 #
-# Copyright (c) 1985 Regents of the University of California.
+# Copyright (c) 1987 Regents of the University of California.
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
 # All rights reserved.  The Berkeley software License Agreement
 # specifies the terms and conditions for redistribution.
 #
-#      @(#)Makefile    5.1 (Berkeley) 8/9/85
+#      @(#)Makefile    5.2     (Berkeley)      6/30/87
 #
 #
-# Make a Yacc library
-#
-DESTDIR=
-CFLAGS=-O 
+CFLAGS=        -O
+LIBC=  /lib/libc.a
+SRCS=  libmai.c libzer.c
+OBJS=  libmai.o libzer.o
+
+all: liby.a
+
+liby.a: ${OBJS}
+       ar cr $@ ${OBJS}
 
 
-liby.a:        libmai.o libzer.o
-       ar rv liby.a libmai.o libzer.o
-       ranlib liby.a
+clean: FRC
+       rm -f ${OBJS} core liby.a
 
 
-install: liby.a
-       install liby.a ${DESTDIR}/usr/lib/liby.a
+depend: FRC
+       mkdep ${CFLAGS} ${SRCS}
+
+install: FRC
+       install -o bin -g bin -m 644 liby.a ${DESTDIR}/usr/lib/liby.a
        ranlib ${DESTDIR}/usr/lib/liby.a
 
        ranlib ${DESTDIR}/usr/lib/liby.a
 
-clean:
-       rm -f *.o *.a errs
+lint: FRC
+       lint ${CFLAGS} ${SRCS}
+
+tags: FRC
+       ctags ${SRCS}
+
+FRC:
+
+# DO NOT DELETE THIS LINE -- mkdep uses it.
+# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
+
+libmai.o: libmai.c
+libzer.o: libzer.c /usr/include/stdio.h
+
+# IF YOU PUT ANYTHING HERE IT WILL GO AWAY