# Make the calhsp package
# Author: HSU, 25-MAY-1989
#	to include calhsp
#
# Special keywords recognized by IRAF mkpkg files:
#
#	mkpkg relink		update object library and link
#	mkpkg linkonly		skip object library updates and just link
#	mkpkg install		move executable to lib$
#	mkpkg update		update object library, link, and move to lib$

$call	relink
$exit

update:
	$call	relink
	$call	install
	;

relink:
	$checkout hsp.a ../
	$update   hsp.a
	$checkin  hsp.a ../
	$call	calhsp
	;

install:
	$move	xx_calhsp.e stsdasbin$x_calhsp.e
	;

calhsp:
linkonly:
	$omake	x_calhsp.x

	$link	x_calhsp.o ../hsp.a \
		-liraf77 -lf77util -lsynphot -lstxtools -luttables -ltbtables \
		-o xx_calhsp.e
	;

hsp.a:
	calhsp.f
	vcaldo.f
	vgtctb.f
	vppcor.f
	vppghd.f
	vsynph.f
	;
