#--------------------------------------------------------------------16 Jul 99--
#   Make the IUE.IUETOOLS 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

debug:
	$set XFLAGS = "-fgq $(XFLAGS)"
	$set LFLAGS = "-xz $(LFLAGS)"
	$call relink
	;

update:
	$call relink
	$call install
	;

relink:
	$update iuetools.a
	$call linkonly
	;

install:
	$move xx_iuetools.e iuebin$x_iuetools.e
	;

linkonly:
	$set    LIBS = "-lxtools -ltbtables "
	$omake	x_iuetools.x

	$link	x_iuetools.o iuetools.a $(LIBS) -o xx_iuetools.e
	;

iuetools.a:
	@infoiue
	@itf_trans
	@lib
	@mxexpand
	@mxtomulti
	;

$exit

#	$set    LIBS = "-lapplib -lstxtools -liueutil -liminterp"

