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