X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/1e32bdf17a91b684991e936238069a76148800c1..78ce69fa25ed13e7810ebb22608a0d0c2d57a68b:/usr/src/usr.bin/error/Makefile diff --git a/usr/src/usr.bin/error/Makefile b/usr/src/usr.bin/error/Makefile index f4a4032c35..0bc427d587 100644 --- a/usr/src/usr.bin/error/Makefile +++ b/usr/src/usr.bin/error/Makefile @@ -1,42 +1,49 @@ # -# @(#)Makefile 1.2 (Berkeley) %G% +# Copyright (c) 1987 Regents of the University of California. +# All rights reserved. # -# error.h error header file -# errorinput.c does all of the input, and canonicalizes errors -# errorpi.c canonicalizes pi errors -# errormain.c main -# errorsubr.c does grotty subroutine work -# errorfilter.c "greps" out unwanted messages -# errortouch.c touches all mentioned files +# 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.6 (Berkeley) %G% +# +CFLAGS= -O +LIBC= /lib/libc.a +SRCS= errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c \ + errortouch.c +OBJS= errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o \ + errortouch.o +MAN= error.0 -HDRS = error.h -PHDRS = $(HDRS) -SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c -PSRCS = $(SRCS) -OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o - -DFLAGS = -DDEBUG -DERNIE -CFLAGS = -O $(DFLAGS) - -LINTFLAGS = $(DFLAGS) +all: error -error: $(OBJS) - $(CC) $(CFLAGS) $(OBJS) -o error +error: ${OBJS} ${LIBC} + ${CC} -o $@ ${CFLAGS} ${OBJS} -$(OBJS): $(HDRS) +clean: + rm -f ${OBJS} core error -install: - install -s error $(DESTDIR)/usr/ucb +cleandir: clean + rm -f ${MAN} tags .depend -clean: - rm -f error $(OBJS) +depend: ${SRCS} + mkdep ${CFLAGS} ${SRCS} -lint: - lint $(LINTFLAGS) $(SRCS) +install: ${MAN} + install -s -o bin -g bin -m 755 error ${DESTDIR}/usr/ucb + install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1 -psrcs: - echo $(PHDRS) $(PSRCS) +lint: ${SRCS} + lint ${CFLAGS} ${SRCS} -print: - print $(PHDRS) $(PSRCS) +tags: ${SRCS} + ctags ${SRCS}