
CC=gcc -I. -O -D_HPUX_SOURCE

all: qt stp testpgm

qt: md/hppa.h qt.c  md/hppa.s
	rm -f qtmd.h
	ln -s md/hppa.h qtmd.h
	$(CC) -pedantic -Wall -c -o qt.o qt.c
	/usr/ccs/bin/as -o qtmds.o md/hppa.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/hppa_b.s
	$(CC) -o run meas.o qtmdb.o libstp.a libqt.a

