xref: /original-bsd/usr.bin/error/Makefile (revision ad93c43e)
1#
2# Copyright (c) 1987 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.3	(Berkeley)	06/16/87
7#
8CFLAGS=	-O -DDEBUG
9LIBC=	/lib/libc.a
10SRCS=	errormain.c errorinput.c errorpi.c errorsubr.c errorfilter.c \
11	errortouch.c
12OBJS=	errormain.o errorinput.o errorpi.o errorsubr.o errorfilter.o \
13	errortouch.o
14
15all: error
16
17error:	${OBJS} ${LIBC}
18	${CC} -o $@ ${CFLAGS} ${OBJS}
19
20clean: FRC
21	rm -f ${OBJS} core error
22
23depend: FRC
24	mkdep ${CFLAGS} ${SRCS}
25
26install: FRC
27	install -s -o bin -g bin -m 755 error ${DESTDIR}/usr/ucb/error
28
29lint: FRC
30	lint ${CFLAGS} ${SRCS}
31
32tags: FRC
33	ctags ${SRCS}
34
35FRC:
36
37# DO NOT DELETE THIS LINE -- mkdep uses it.
38# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
39
40errormain.o: errormain.c /usr/include/stdio.h /usr/include/ctype.h
41errormain.o: /usr/include/signal.h
42errormain.o:error.h
43errorinput.o: errorinput.c /usr/include/stdio.h /usr/include/ctype.h
44errorinput.o:error.h
45errorpi.o: errorpi.c /usr/include/stdio.h /usr/include/ctype.h
46errorpi.o:error.h
47errorsubr.o: errorsubr.c /usr/include/stdio.h /usr/include/ctype.h
48errorsubr.o:error.h
49errorfilter.o: errorfilter.c /usr/include/stdio.h /usr/include/ctype.h
50errorfilter.o: /usr/include/pwd.h
51errorfilter.o:error.h
52errortouch.o: errortouch.c /usr/include/stdio.h /usr/include/ctype.h
53errortouch.o: /usr/include/sys/types.h /usr/include/sys/stat.h
54errortouch.o: /usr/include/signal.h
55errortouch.o:error.h
56
57# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
58