#
# Copyright 1987 Apple Computer, Inc.
# $Header: makefile,v 1.9 87/06/17 23:07:21 rpd Exp $
#
# $Log:	makefile,v $
# Revision 1.9  87/06/17  23:07:21  rpd
# Removed the qtest test program
# 
# Revision 1.8  87/06/13  00:52:55  rpd
# Killed silly sleep -- makes little sense now that the screen gets redrawn
# 
# Revision 1.7  87/06/07  01:59:19  rpd
# added stest (scrap manager test)
# 
# Revision 1.6  87/05/22  13:42:14  rpd
# Added vtest (VBL Manager test)
# 
# Revision 1.5  87/05/05  13:34:23  rpd
# Added qdbench
# 
# Revision 1.4  87/03/12  17:53:34  rpd
# Added make install
# 
# Revision 1.3  87/01/26  02:26:41  rpd
# Added traptest
# 
# Revision 1.2  87/01/19  21:13:04  rpd
# added MAIN_DIR
# 
# Revision 1.1  87/01/15  23:00:29  rpd
# Initial revision
# 

# This is the makefile for the tests directory

MAIN_DIR =	..
include ../make.global

TEST =		atest mtest rtest menutest wtest ttest dtest etest \
		ptest vtest stest
NTEST =		traptest qdbench
ALL =		${TEST} ${NTEST}
CFLAGS =	${GFLAGS}

all:		${ALL}

clean:
		rm -f ${ALL}
		rm -f *.o *.ws

test:
		for i in ${TEST}; do \
		    echo $$i; \
		    $$i; \
		done

install:

atest:		atest.o atestw.o ${LIB}
		${LD} -o atest atest.o atestw.o ${LDFLAGS}
atestw.o:	atestw.ws
		as atestw.ws -o atestw.o
atestw.ws:	atestw.w
		${MKGLUE} < atestw.w > atestw.ws

mtest:		mtest.o ${LIB}
		${LD} -o mtest mtest.o ${LDFLAGS}

rtest:		rtest.o ${LIB}
		${LD} -o rtest rtest.o ${LDFLAGS}

menutest:	menutest.o ${LIB}
		${LD} -o menutest menutest.o ${LDFLAGS}

wtest:		wtest.o ${LIB}
		${LD} -o wtest wtest.o ${LDFLAGS}

ttest:		ttest.o ${LIB}
		${LD} -o ttest ttest.o ${LDFLAGS}

dtest:		dtest.o ${LIB}
		${LD} -o dtest dtest.o ${LDFLAGS}

etest:		etest.o ${LIB}
		${LD} -o etest etest.o ${LDFLAGS}

ptest:		ptest.o ${LIB}
		${LD} -o ptest ptest.o ${LDFLAGS}

traptest:	traptest.o ${LIB}
		${LD} -o traptest traptest.o ${LDFLAGS}

qdbench:	qdbench.o ${LIB}
		${LD} -o qdbench qdbench.o ${LDFLAGS}

vtest:		vtest.o ${LIB}
		${LD} -o vtest vtest.o ${LDFLAGS}

stest:		stest.o ${LIB}
		${LD} -o stest stest.o ${LDFLAGS}

