stdio.h defines BUFSIZ
[unix-history] / usr / src / usr.bin / error / Makefile
index e640de4..8906d7e 100644 (file)
@@ -1,42 +1,7 @@
-#
-#      @(#)Makefile    1.4 (Berkeley) %G%
-#
-#      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
-#
+#      @(#)Makefile    5.8 (Berkeley) %G%
 
 
-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
+PROG=  error
+SRCS=  errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c \
+       errortouch.c
 
 
-DFLAGS = -DDEBUG
-CFLAGS =  -O $(DFLAGS)
-
-LINTFLAGS = $(DFLAGS)
-
-error: $(OBJS)
-       $(CC) $(CFLAGS) $(OBJS) -o error
-
-$(OBJS): $(HDRS)
-
-install:
-       install -s error $(DESTDIR)/usr/ucb
-
-clean:
-       rm -f error $(OBJS)
-
-lint:  
-       lint $(LINTFLAGS) $(SRCS)
-
-psrcs:
-       echo $(PHDRS) $(PSRCS)
-
-print:
-       print $(PHDRS) $(PSRCS)
+.include <bsd.prog.mk>