#   Make the threed package
#       I.Busko, 21-Nov-1996
#
#   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
	;

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

relink:	
	$call	generic@tiimage
	$call	generic@titable
	$call	generic@txtable
	$update	threed.a
	$call	threed
	;

install:
	$move	xx_threed.e tablesbin$x_threed.e
	;

threed:
linkonly:
	$omake	x_threed.x
	$link	x_threed.o threed.a \
		-lxtools -ltbtables -o xx_threed.e
	;

threed.a:
	@tcopy
	@txtable
	@tximage
	@titable
	@tiimage
	;

