Commit | Line | Data |
---|---|---|
d0aeaf5a | 1 | # |
f9ede4f2 | 2 | # Copyright (c) 1987 Regents of the University of California. |
d0aeaf5a DF |
3 | # All rights reserved. The Berkeley software License Agreement |
4 | # specifies the terms and conditions for redistribution. | |
5 | # | |
f9ede4f2 | 6 | # @(#)Makefile 5.3 (Berkeley) %G% |
ee9463df | 7 | # |
f9ede4f2 KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
10 | RSRCS= retest.c regexp.c | |
11 | ROBJS= retest.o regexp.o | |
12 | VSRCS= regexp.c vfontedpr.c vgrindefs.c | |
13 | VOBJS= regexp.o vfontedpr.o vgrindefs.o | |
ee9463df | 14 | |
f9ede4f2 | 15 | all: retest vfontedpr |
ee9463df | 16 | |
f9ede4f2 KB |
17 | vfontedpr: ${VOBJS} ${LIBC} |
18 | ${CC} ${CFLAGS} -o $@ ${VOBJS} | |
ee9463df | 19 | |
f9ede4f2 KB |
20 | retest: ${ROBJS} ${LIBC} |
21 | ${CC} ${CFLAGS} -o $@ ${ROBJS} | |
ee9463df | 22 | |
f9ede4f2 KB |
23 | clean: FRC |
24 | rm -f ${OBJS} ${ROBJS} ${VOBJS} core retest vfontedpr | |
ee9463df | 25 | |
f9ede4f2 KB |
26 | depend: FRC |
27 | mkdep ${CFLAGS} ${RSRCS} ${VSRCS} | |
300a5f74 | 28 | |
f9ede4f2 KB |
29 | install: FRC |
30 | install -s -o bin -g bin -m 755 vfontedpr ${DESTDIR}/usr/lib/vfontedpr | |
31 | install -c -o bin -g bin -m 755 vgrind.sh ${DESTDIR}/usr/ucb/vgrind | |
32 | install -c -o bin -g bin -m 755 vgrindefs.src ${DESTDIR}/usr/lib/vgrindefs | |
33 | install -c -o bin -g bin -m 755 tmac.vgrind ${DESTDIR}/usr/lib/tmac/tmac.vgrind | |
34 | ||
35 | lint: FRC | |
36 | lint ${CFLAGS} ${RSRCS} | |
37 | lint ${CFLAGS} ${VSRCS} | |
38 | ||
39 | tags: FRC | |
40 | ctags ${RSRCS} | |
41 | ctags -a ${VSRCS} | |
42 | sort -o tags tags | |
43 | ||
44 | FRC: | |
45 | ||
46 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
47 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
48 | ||
49 | retest.o: retest.c /usr/include/ctype.h | |
50 | regexp.o: regexp.c /usr/include/ctype.h regexp.c /usr/include/ctype.h | |
51 | vfontedpr.o: vfontedpr.c /usr/include/ctype.h /usr/include/stdio.h | |
52 | vfontedpr.o: /usr/include/sys/types.h /usr/include/sys/stat.h | |
53 | vgrindefs.o: vgrindefs.c /usr/include/ctype.h | |
54 | ||
55 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |