# Make the z_calib package
# Created: R.L. Williamson, 28-Jul-1993
#
# 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 = "-fgqz $(XFLAGS)"
        $set LFLAGS = "-z $(LFLAGS)"
	$call relink
	;

update:
	$call	relink
	$call	install
	;

relink:
	$update	lib.a
	$update	calhrs.a
	$update	z_calib.a
	$call	z_calib
	;

install:
	$move	xx_z_calib.e stsdasbin$x_z_calib.e
	;

linkonly:
z_calib:
	$omake	x_z_calib.x

	$link	x_z_calib.o z_calib.a lib.a calhrs.a\
		-liraf77 -lf77util -luttables -ltbtables\
		-lgflib -lgilib -liminterp -lstxtools -lxtools -lcurfit\
		-o xx_z_calib.e
	;

lib.a:
	@lib
	;

calhrs.a:
	@calhrs
	;

z_calib.a:
	@hrslib
	@absfitz
	@abssenz
	@apershift
	@cathodemap
	@carrousel
	@centerflux
        @darkstat
	@deadtimez
	@diodemap
	@focusz
	@incidence
	@lmap
	@mergecar
	@odeadtimez
	@parthitz
	@phaz
	@quality
	@ripple
	@smap
	@tacarrousel
	@tadiodepos
	@tamode
	@tascale
	@vigcompute
	@vigfit
	@woffsets
	@wshift
	@yfind
	@yfit
	@zflatfield
	;
