#
# 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.
#
-# @(#)Makefile 5.3 (Berkeley) %G%
+# Redistribution and use in source and binary forms are permitted
+# provided that the above copyright notice and this paragraph are
+# duplicated in all such forms and that any documentation,
+# advertising materials, and other materials related to such
+# distribution and use acknowledge that the software was developed
+# by the University of California, Berkeley. The name of the
+# University may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+# @(#)Makefile 5.7 (Berkeley) %G%
#
CFLAGS= -O
LIBC= /lib/libc.a
SRCS= sysline.c
-OBJS= sysline.o
+OBJS=
+MAN= sysline.0
all: sysline
-sysline: ${OBJS} ${LIBC}
- ${CC} ${CFLAGS} -o $@ ${OBJS} -ltermlib -lcurses
+sysline: ${LIBC}
+ ${CC} ${CFLAGS} -o $@ $@.c -ltermlib -lcurses
+
+clean:
+ rm -f core sysline
-clean: FRC
- rm -f ${OBJS} core sysline
+cleandir: clean
+ rm -f ${MAN} tags .depend
-depend: FRC
- mkdep ${CFLAGS} ${SRCS}
+depend: ${SRCS}
+ mkdep -p ${CFLAGS} ${SRCS}
-install: FRC
- install -s -o bin -g kmem -m 2755 sysline ${DESTDIR}/usr/ucb/sysline
+install: ${MAN}
+ install -s -o bin -g kmem -m 2755 sysline ${DESTDIR}/usr/bin
+ install -c -o bin -g bin -m 444 sysline.0 ${DESTDIR}/usr/man/cat1
-lint: FRC
+lint: ${SRCS}
lint ${CFLAGS} ${SRCS}
-tags: FRC
+tags: ${SRCS}
ctags ${SRCS}
-
-FRC:
-
-# DO NOT DELETE THIS LINE -- mkdep uses it.
-# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
-
-sysline.o: sysline.c /usr/include/stdio.h /usr/include/sys/param.h
-sysline.o: /usr/include/sys/types.h /usr/include/signal.h
-sysline.o: /usr/include/machine/machparam.h /usr/include/sys/signal.h
-sysline.o: /usr/include/utmp.h /usr/include/ctype.h /usr/include/sys/time.h
-sysline.o: /usr/include/time.h /usr/include/sys/stat.h /usr/include/nlist.h
-sysline.o: /usr/include/sys/vtimes.h /usr/include/sys/proc.h
-sysline.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h
-sysline.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
-sysline.o: /usr/include/sys/ttydev.h /usr/include/protocols/rwhod.h
-
-# IF YOU PUT ANYTHING HERE IT WILL GO AWAY