xref: /original-bsd/usr.bin/vgrind/Makefile (revision f9a478c6)
1#
2# Copyright (c) 1987 The Regents of the University of California.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms are permitted
6# provided that the above copyright notice and this paragraph are
7# duplicated in all such forms and that any documentation,
8# advertising materials, and other materials related to such
9# distribution and use acknowledge that the software was developed
10# by the University of California, Berkeley.  The name of the
11# University may not be used to endorse or promote products derived
12# from this software without specific prior written permission.
13# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16#
17#	@(#)Makefile	5.7 (Berkeley) 05/11/90
18#
19CFLAGS=	-O
20LIBC=	/usr/lib/libc.a
21RSRCS=	retest.c regexp.c
22ROBJS=	retest.o regexp.o
23VSRCS=	regexp.c vfontedpr.c vgrindefs.c
24VOBJS=	regexp.o vfontedpr.o vgrindefs.o
25MAN=	vgrind.0 vgrindefs.0
26
27all: retest vfontedpr
28
29vfontedpr: ${VOBJS} ${LIBC}
30	${CC} ${CFLAGS} -o $@ ${VOBJS}
31
32retest: ${ROBJS} ${LIBC}
33	${CC} ${CFLAGS} -o $@ ${ROBJS}
34
35clean:
36	rm -f ${OBJS} ${ROBJS} ${VOBJS} core retest vfontedpr
37
38cleandir: clean
39	rm -f ${MAN} tags .depend
40
41depend: ${SRCS}
42	mkdep ${CFLAGS} ${RSRCS} ${VSRCS}
43
44install: ${MAN}
45	install -s -o bin -g bin -m 755 vfontedpr ${DESTDIR}/usr/libexec
46	install -c -o bin -g bin -m 755 vgrind.sh ${DESTDIR}/usr/bin/vgrind
47	install -c -o bin -g bin -m 755 vgrindefs.src \
48	    ${DESTDIR}/usr/share/misc/vgrindefs
49	install -c -o bin -g bin -m 755 tmac.vgrind \
50	    ${DESTDIR}/usr/share/tmac/tmac.vgrind
51	install -c -o bin -g bin -m 444 vgrind.0 ${DESTDIR}/usr/man/cat1
52	install -c -o bin -g bin -m 444 vgrindefs.0 ${DESTDIR}/usr/man/cat5
53
54lint: ${SRCS}
55	lint ${CFLAGS} ${RSRCS}
56	lint ${CFLAGS} ${VSRCS}
57
58tags: ${SRCS}
59	ctags ${RSRCS}
60	ctags -a ${VSRCS}
61	sort -o tags tags
62
63FRC:
64