Commit | Line | Data |
---|---|---|
30178d1b | 1 | # |
1e32bdf1 | 2 | # @(#)Makefile 1.2 (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 | ||
13 | HDRS = error.h | |
14 | PHDRS = $(HDRS) | |
15 | SRCS = errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c errortouch.c | |
16 | PSRCS = $(SRCS) | |
17 | OBJS = errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o errortouch.o | |
18 | ||
19 | DFLAGS = -DDEBUG -DERNIE | |
20 | CFLAGS = -O $(DFLAGS) | |
21 | ||
22 | LINTFLAGS = $(DFLAGS) | |
23 | ||
24 | error: $(OBJS) | |
25 | $(CC) $(CFLAGS) $(OBJS) -o error | |
26 | ||
27 | $(OBJS): $(HDRS) | |
28 | ||
29 | install: | |
30 | install -s error $(DESTDIR)/usr/ucb | |
31 | ||
32 | clean: | |
33 | rm -f error $(OBJS) | |
34 | ||
35 | lint: | |
36 | lint $(LINTFLAGS) $(SRCS) | |
37 | ||
38 | psrcs: | |
39 | echo $(PHDRS) $(PSRCS) | |
40 | ||
41 | print: | |
42 | print $(PHDRS) $(PSRCS) |