#
# 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1986,1987
# LICENSED MATERIALS - PROPERTY OF IBM
# REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
#
# $Header:Makefile 12.0$ 
# $ACIS:Makefile 12.0$ 
# $Source: /ibm/acis/usr/src/ibm/aedtest/RCS/Makefile,v $ 
#
# Makefile for aedtest
 
VOBJ =  vlook.o  v2910.o v29116.o vbufn.o vm.o vikmem.o vtest.o vikio.o	\
	dummy.o vload.o vspram.o vsram.o vtime.o vybus.o abuffer.o	\
	vlong.o vbuf.o vbootvt.o vttyio.o a2910.o a29116.o ablck.o	\
	abufn.o afastbuf.o along.o arzdz.o ascpad.o asram.o aybus.o	\
	aglasstty.o

DESTDIR=
# Flags description -- 
#	BUS -- indicates opening of /dev/bus per new kernel
#	BSD -- indicates running under 4.2BSD 
#		otherwise expects to run on a standalone floppy
#	INFINITE -- runs tests in an infinite loop unless stopped
#		by timeout, hardware error or intervention
#	NOTIMEOUT -- if enabled, ignores timeout problems and 
#		forces continuation
# following defines a single pass with timeouts enabled
CCFLAGS = -DBUS -DBSD -UINFINITE -UNOTIMEOUT

DONE = @echo $@ complete

all: aedtest

.c.o:
	$(CC) $(CCFLAGS) -c $<

vbootvt.o: term.h 

vttyio.o: term.h 

$(VOBJ): vikst.h
	$(CC) $(CCFLAGS) -c $*.c

libvtst.a: $(VOBJ)
	ar rv libvtst.a vtest.o
	ar rv libvtst.a $?
	ar dv libvtst.a vtest.o
	ranlib libvtst.a
	$(DONE)

aedtest: vtest.o libvtst.a
	$(CC) vtest.o libvtst.a -o aedtest
	$(DONE)

aedtesto: $(VOBJ)
	$(CC) $(VOBJ) -o aedtest
	$(DONE)

install:
	install -s -c aedtest ${DESTDIR}/usr/ibm/aedtest

clean:
	rm -f ${VOBJ} libvtst.a aedtest core a.out
