T=/usr/lib/term/tab

all: ${T}ascii  ${T}coi  ${T}q10  ${T}q3270  ${T}tn    ${T}com  \
     ${T}trend  ${T}mem  ${T}q12  ${T}qline  ${T}e1pr  ${T}ptx

${T}ascii:	ascii.c Struct.h Normal
	cc -c ascii.c
	mv ascii.o ${T}ascii

${T}coi:	coi.c Struct.h Normal
	cc -c coi.c
	mv coi.o ${T}coi

${T}com:	${T}tn Struct.h Normal
	rm -f ${T}com
	ln ${T}tn ${T}com

${T}e1pr:	${T}ascii Struct.h Normal
	rm -f ${T}e1pr
	ln ${T}ascii ${T}e1pr

${T}mem:	mem.c Struct.h Normal
	cc -c mem.c
	mv mem.o ${T}mem

${T}q12:	q12.c Struct.h Normal
	cc -c -DPITCH=12 q12.c
	mv q12.o ${T}q12

${T}q10:	q12.c Struct.h Normal
	cc -c -DPITCH=10 q12.c
	mv q12.o ${T}q10

${T}ptx:	q12.c Struct.h Normal
	cc -c -DPITCH=12 -DPTX q12.c
	mv q12.o ${T}ptx

${T}q3270:	q3270.c Struct.h Normal
	cc -c q3270.c
	mv q3270.o ${T}q3270

${T}qline:	qline.c Struct.h Normal
	cc -c qline.c
	mv qline.o ${T}qline

${T}tn:		tn.c Struct.h Normal
	cc -c tn.c
	mv tn.o ${T}tn

${T}trend:	trend.c Struct.h Normal
	cc -c trend.c
	mv trend.o ${T}trend
