#
# Note: I have absolutely no idea how to write vax scripting language.
# so, i wrote a script that's generally the right idea.  Somebody familiar
# with vaxen will have to make this script actually work.
#

CC=cc -I.

all: qt stp testpgm

qt: md/vax.h qt.c md/vax.s
	rm -f qtmd.h
	ln -s md/vax.h qtmd.h
	$(CC) -pedantic -Wall -c -o qt.o qt.c
	as -o qtmds.o md/vax.s
	ar q libqt.a qt.o qtmds.o

stp:
	$(CC) -c stp.c
	ar q libstp.a stp.o

testpgm:
	$(CC) -c meas.c
	as -o qtmdb.o md/vax_b.s
	$(CC) -o run meas.o qtmdb.o libstp.a libqt.a
