Commit | Line | Data |
---|---|---|
449d723d KB |
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 | # | |
5f31aab1 | 6 | # @(#)Makefile 5.9 (Berkeley) %G% |
761ab893 | 7 | # |
449d723d KB |
8 | CFLAGS= -O |
9 | LIBC= /lib/libc.a | |
5f31aab1 | 10 | SUBDIR= vtools vtools/fed man |
449d723d KB |
11 | SHELLS= rvtroff.sh vprint.sh vtroff.sh vpq.sh vpr.sh vprm.sh |
12 | SRCS= vpac.c vpd.c vpq.c vpr.c vprm.c | |
13 | OBJS= vpac.o vpd.o vpq.o vpr.o vprm.o | |
14 | ALL= vpac vpd vpq vpr vprm | |
15 | ||
16 | all: ${ALL} subdir | |
17 | ||
18 | subdir: | |
19 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS}); done | |
20 | ||
21 | vpac: ${LIBC} | |
22 | ${CC} -O -o $@ vpac.c | |
23 | vpd: ${LIBC} | |
24 | ${CC} -DVERSATEC -O -o $@ vpd.c | |
25 | vpq: ${LIBC} | |
26 | ${CC} -O -o $@ vpq.c | |
27 | vpr: ${LIBC} | |
28 | ${CC} -O -o $@ vpr.c | |
29 | vprm: ${LIBC} | |
30 | ${CC} -O -o $@ vprm.c | |
31 | ||
32 | clean: FRC | |
33 | rm -f ${OBJS} core ${ALL} | |
34 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done | |
35 | ||
36 | depend: FRC ldepend | |
37 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done | |
38 | ||
39 | ldepend: | |
40 | mkdep -p ${CFLAGS} ${SRCS} | |
41 | ||
42 | install: FRC | |
43 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done | |
44 | install -s -o bin -g bin -m 755 vpac ${DESTDIR}/usr/old/vpac | |
45 | install -s -o bin -g bin -m 755 vpd ${DESTDIR}/usr/lib/vpd | |
46 | install -s -o bin -g bin -m 755 vpq ${DESTDIR}/usr/lib/vpq | |
47 | install -s -o bin -g bin -m 755 vpr ${DESTDIR}/usr/lib/vpr | |
48 | install -s -o bin -g bin -m 755 vprm ${DESTDIR}/usr/lib/vprm | |
49 | install -c -o bin -g bin -m 755 vprint.sh ${DESTDIR}/usr/old/vprint | |
50 | install -c -o bin -g bin -m 755 vtroff.sh ${DESTDIR}/usr/old/vtroff | |
51 | install -c -o bin -g bin -m 755 vpq.sh ${DESTDIR}/usr/old/vpq | |
52 | install -c -o bin -g bin -m 755 vpr.sh ${DESTDIR}/usr/old/vpr | |
53 | install -c -o bin -g bin -m 755 vprm.sh ${DESTDIR}/usr/old/vprm | |
54 | ||
55 | lint: FRC | |
56 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} lint); done | |
57 | lint ${CFLAGS} ${SRCS} | |
58 | ||
59 | tags: FRC | |
60 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} tags); done | |
61 | ctags ${SRCS} | |
62 | ||
63 | FRC: | |
64 | ||
65 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
66 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
67 | ||
68 | vpac: vpac.c /usr/include/stdio.h | |
69 | vpd: vpd.c /usr/include/stdio.h /usr/include/sys/param.h | |
70 | vpd: /usr/include/sys/types.h /usr/include/signal.h /usr/include/machine/trap.h | |
71 | vpd: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
72 | vpd: /usr/include/signal.h /usr/include/sys/stat.h /usr/include/sgtty.h | |
73 | vpd: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
74 | vpd: /usr/include/sys/ttydev.h /usr/include/errno.h /usr/include/sys/vcmd.h | |
75 | vpd: /usr/include/sys/wait.h | |
76 | vpq: vpq.c /usr/include/sys/param.h /usr/include/sys/types.h | |
77 | vpq: /usr/include/signal.h /usr/include/machine/trap.h | |
78 | vpq: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
79 | vpq: /usr/include/sys/stat.h /usr/include/stdio.h /usr/include/errno.h | |
80 | vpr: vpr.c /usr/include/signal.h /usr/include/machine/trap.h | |
81 | vpr: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h | |
82 | vpr: /usr/include/machine/machparam.h | |
83 | vprm: vprm.c /usr/include/sys/param.h /usr/include/sys/types.h | |
84 | vprm: /usr/include/signal.h /usr/include/machine/trap.h | |
85 | vprm: /usr/include/machine/machparam.h /usr/include/sys/dir.h | |
86 | vprm: /usr/include/sys/stat.h /usr/include/stdio.h | |
87 | ||
88 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |