#   Make the drizzle package
#
#   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
	;

#  The -z is necessary to enable drizzle handle very large images (ACS).

relink:
	$set	LFLAGS = "$(LFLAGS) -z"
	$update olddrizzle.a
	$call	drizzle
	$call	blot
	;

install:
	$move	xx_olddrizzle.e stsdasbin$x_olddrizzle.e
	$move	xx_oldblot.e stsdasbin$x_oldblot.e
	;

drizzle:
linkonly:
	$omake	x_drizzle.x
	$link	x_drizzle.o olddrizzle.a -liraf77 -o xx_olddrizzle.e
	;
blot:
linkonly:
	$omake	x_blot.x
	$link	x_blot.o olddrizzle.a -liraf77 -liminterp -o xx_oldblot.e
	;

olddrizzle.a:
	drizzle.f
	blot.f
	drutil.f
	;
