Preserves links by writing to /tmp and copying. Removed #ifdef ERNIE
[unix-history] / usr / src / usr.bin / error / Makefile
CommitLineData
30178d1b 1#
d31142de 2# @(#)Makefile 1.4 (Berkeley) %G%
30178d1b
BJ
3#
4# error.h error header file
5# errorinput.c does all of the input, and canonicalizes errors
6# errorpi.c canonicalizes pi errors
7# errormain.c main
8# errorsubr.c does grotty subroutine work
9# errorfilter.c "greps" out unwanted messages
10# errortouch.c touches all mentioned files
11#
12
13HDRS = error.h
14PHDRS = $(HDRS)
15SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c
16PSRCS = $(SRCS)
17OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o
18
d31142de 19DFLAGS = -DDEBUG
30178d1b
BJ
20CFLAGS = -O $(DFLAGS)
21
22LINTFLAGS = $(DFLAGS)
23
24error: $(OBJS)
25 $(CC) $(CFLAGS) $(OBJS) -o error
26
27$(OBJS): $(HDRS)
28
29install:
30 install -s error $(DESTDIR)/usr/ucb
31
32clean:
33 rm -f error $(OBJS)
34
35lint:
36 lint $(LINTFLAGS) $(SRCS)
37
38psrcs:
39 echo $(PHDRS) $(PSRCS)
40
41print:
42 print $(PHDRS) $(PSRCS)