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.9 (Berkeley) 12/31/87 7# 8CFLAGS= -O 9LIBC= /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 55lint: FRC 56 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} lint); done 57 lint ${CFLAGS} ${SRCS} 58 59tags: FRC 60 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} tags); done 61 ctags ${SRCS} 62 63FRC: 64 65# DO NOT DELETE THIS LINE -- mkdep uses it. 66# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 67 68vpac: vpac.c /usr/include/stdio.h 69vpd: vpd.c /usr/include/stdio.h /usr/include/sys/param.h 70vpd: /usr/include/sys/types.h /usr/include/signal.h /usr/include/machine/trap.h 71vpd: /usr/include/machine/machparam.h /usr/include/sys/dir.h 72vpd: /usr/include/signal.h /usr/include/sys/stat.h /usr/include/sgtty.h 73vpd: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h 74vpd: /usr/include/sys/ttydev.h /usr/include/errno.h /usr/include/sys/vcmd.h 75vpd: /usr/include/sys/wait.h 76vpq: vpq.c /usr/include/sys/param.h /usr/include/sys/types.h 77vpq: /usr/include/signal.h /usr/include/machine/trap.h 78vpq: /usr/include/machine/machparam.h /usr/include/sys/dir.h 79vpq: /usr/include/sys/stat.h /usr/include/stdio.h /usr/include/errno.h 80vpr: vpr.c /usr/include/signal.h /usr/include/machine/trap.h 81vpr: /usr/include/sys/param.h /usr/include/sys/types.h /usr/include/signal.h 82vpr: /usr/include/machine/machparam.h 83vprm: vprm.c /usr/include/sys/param.h /usr/include/sys/types.h 84vprm: /usr/include/signal.h /usr/include/machine/trap.h 85vprm: /usr/include/machine/machparam.h /usr/include/sys/dir.h 86vprm: /usr/include/sys/stat.h /usr/include/stdio.h 87 88# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 89