added "more" command
[unix-history] / usr / src / usr.bin / error / Makefile
CommitLineData
30178d1b 1#
442fe3bf
DF
2# Copyright (c) 1980 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
6# @(#)Makefile 5.1 (Berkeley) %G%
7#
30178d1b
BJ
8#
9# error.h error header file
10# errorinput.c does all of the input, and canonicalizes errors
11# errorpi.c canonicalizes pi errors
12# errormain.c main
13# errorsubr.c does grotty subroutine work
14# errorfilter.c "greps" out unwanted messages
15# errortouch.c touches all mentioned files
16#
17
18HDRS = error.h
19PHDRS = $(HDRS)
20SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c
21PSRCS = $(SRCS)
22OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o
23
d31142de 24DFLAGS = -DDEBUG
30178d1b
BJ
25CFLAGS = -O $(DFLAGS)
26
27LINTFLAGS = $(DFLAGS)
28
29error: $(OBJS)
30 $(CC) $(CFLAGS) $(OBJS) -o error
31
32$(OBJS): $(HDRS)
33
34install:
35 install -s error $(DESTDIR)/usr/ucb
36
37clean:
38 rm -f error $(OBJS)
39
40lint:
41 lint $(LINTFLAGS) $(SRCS)
42
43psrcs:
44 echo $(PHDRS) $(PSRCS)
45
46print:
47 print $(PHDRS) $(PSRCS)