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 4.7 (Berkeley) 06/18/87 7# 8# Possible options: 9# make compile source for all terminal tables below 10# make <term> compile table for a specific <term> 11# make install move tables to ${DEST} 12# make clean remove tab*.o files lying around 13CFLAGS= -O 14LIBC= /lib/libc.a 15DEST= ${DESTDIR}/usr/lib/term 16SRCS= tab300-12.c tab300.c tab302-12.c tab302.c tab37.c tab382-12.c \ 17 tab382.c tab450-12.c tab450.c tab833-12.c tab833.c tabepson.c \ 18 tabitoh.c tabitoh12.c tablpr.c tabnec-t.c tabnec.c tabnec12.c \ 19 tabnec25-t.c tabqume.c tabqume12.c tabx-ecs.c tabx-ecs12.c \ 20 tabxerox.c tabxerox12.c 21OBJS= tab300-12.o tab300.o tab302-12.o tab302.o tab37.o tab382-12.o \ 22 tab382.o tab450-12.o tab450.o tab833-12.o tab833.o tabepson.o \ 23 tabitoh.o tabitoh12.o tablpr.o tabnec-t.o tabnec.o tabnec12.o \ 24 tabnec25-t.o tabqume.o tabqume12.o tabx-ecs.o tabx-ecs12.o \ 25 tabxerox.o tabxerox12.o 26ALL= 37 lpr 300 300-12 302 302-12 382 382-12 450 450-12 833 833-12 \ 27 epson itoh itoh12 nec nec12 nec-t nec25-t qume qume12 xerox \ 28 xerox12 x-ecs x-ecs12 29 30all: ${ALL} 31 3237: tab37.o 33lpr: tablpr.o 34300: tab300.o 35300-12: tab300-12.o 36302: tab302.o 37302-12: tab302-12.o 38382: tab382.o 39382-12: tab382-12.o 40450: tab450.o 41450-12: tab450-12.o 42833: tab833.o 43833-12: tab833-12.o 44epson: tabepson.o 45itoh: tabitoh.o 46itoh12: tabitoh12.o 47nec: tabnec.o 48nec12: tabnec12.o 49nec-t: tabnec-t.o 50nec25-t: tabnec25-t.o 51qume: tabqume.o 52qume12: tabqume12.o 53xerox: tabxerox.o 54xerox12: tabxerox12.o 55x-ecs: tabx-ecs.o 56x-ecs12: tabx-ecs12.o 57 58clean: FRC 59 rm -f ${OBJS} core 60 61depend: FRC 62 mkdep ${CFLAGS} ${SRCS} 63 64install: FRC 65 for file in tab*.o; do \ 66 install -s -o bin -g bin -m 755 $$file ${DEST}/`basename $$file .o`; \ 67 done 68 rm -f ${DEST}/tabtn300; ln ${DEST}/tablpr ${DEST}/tabtn300 69 rm -f ${DEST}/tabcrt; ln ${DEST}/tablpr ${DEST}/tabcrt 70 rm -f ${DEST}/tab300s; ln ${DEST}/tab302 ${DEST}/tab300s 71 rm -f ${DEST}/tab300s-12; ln ${DEST}/tab302-12 ${DEST}/tab300s-12 72 rm -f ${DEST}/tabdtc; ln ${DEST}/tab302 ${DEST}/tabdtc 73 rm -f ${DEST}/tabdtc12; ln ${DEST}/tab302-12 ${DEST}/tabdtc12 74 rm -f ${DEST}/tabipsi; ln ${DEST}/tab450 ${DEST}/tabipsi 75 rm -f ${DEST}/tabipsi12; ln ${DEST}/tab450-12 ${DEST}/tabipsi12 76 install -c -o bin -g bin -m 644 README ${DEST}/README 77 78lint: FRC 79 lint ${CFLAGS} ${SRCS} 80 81tags: FRC 82 ctags ${SRCS} 83 84FRC: 85 86# DO NOT DELETE THIS LINE -- mkdep uses it. 87# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 88 89tab300-12.o: tab300-12.c code.300 90tab300.o: tab300.c code.300 91tab302-12.o: tab302-12.c code.300 92tab302.o: tab302.c code.300 93tab37.o: tab37.c 94tab382-12.o: tab382-12.c code.300 95tab382.o: tab382.c code.300 96tab450-12.o: tab450-12.c code.300 97tab450.o: tab450.c code.300 98tab833-12.o: tab833-12.c code.aj833 99tab833.o: tab833.c code.aj833 100tabepson.o: tabepson.c 101tabitoh.o: tabitoh.c code.itoh 102tabitoh12.o: tabitoh12.c code.itoh 103tablpr.o: tablpr.c 104tabnec-t.o: tabnec-t.c 105tabnec.o: tabnec.c code.nec 106tabnec12.o: tabnec12.c code.nec 107tabnec25-t.o: tabnec25-t.c 108tabqume.o: tabqume.c 109tabqume12.o: tabqume12.c 110tabx-ecs.o: tabx-ecs.c code.x-ecs 111tabx-ecs12.o: tabx-ecs12.c code.x-ecs 112tabxerox.o: tabxerox.c code.xerox 113tabxerox12.o: tabxerox12.c code.xerox 114 115# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 116