# Make the y_calib 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 = "$(LFLAGS) -p tables -p stsdas -x"
        $call relink
        $exit
        ;

update:
    $call   relink
    $call   install
    ;

relink:
	$update   y_calib.a
	$call	y_calib
	;

install:
	$move xx_y_calib.e stsdasbin$x_y_calib.e
	;

y_calib:
linkonly:
	$omake x_y_calib.x

        $link   x_y_calib.o y_calib.a \
                -liraf77 -lf77util -luttables -ltbtables \
                -lxtools  -o xx_y_calib.e
 

	;
y_calib.a:
	@lib
	@absfity
	@absseny
	@deadtimey
	@dispfity
	@flatfield
	@linefind
	@parthity
	@phay
	@ybase
	;
