
CC=cc -Aa -I. -O -D_HPUX_SOURCE +DAportable +z

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
	$(CC) -Wall -c -o qt.o qt.c
	$(CC) -c -o qtmds.o md/hppa.s
	ar q libqt.a qt.o qtmds.o
	CC -b -o libqt.sl qt.o qtmds.o

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

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