#   Make the sobsolete package
#   Author: R.L. Williamson, 27-Jul-1993
#
#   Add qwmosaic 13-Jul-1994
#   Remove all tasks added in version 1.3.3 and before, 1-AUg-1997. RLW.
#   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 bin$
#	mkpkg update		update object library, link, and move to bin$

$call	relink
$exit

update:
	$call	relink
	$call	install
	;

relink:
	$update	sobsolete.a
	$call	sobsolete
	$call relink@timeseries
	$call relink@hsp
	$call relink@foccs
#	$call relink@focgeom
	$call relink@focphot
	$call relink@y_calib
	$call relink@z_calib
	$call relink@registration
	$call relink@testdata
	$call relink@dither
	;

install:
	$move	xx_sobsolete.e stsdasbin$x_sobsolete.e
	$call install@timeseries
	$call install@hsp
	$call install@foccs
#	$call install@focgeom
	$call install@focphot
	$call install@y_calib
	$call install@z_calib
	$call install@registration
	$call install@testdata
	$call install@dither
	;

sobsolete:
linkonly:
	$omake	x_sobsolete.x
	$set 	LIBS = " "
	$link	x_sobsolete.o sobsolete.a $(LIBS) \
                -lapplib -lxtools -liraf77 -lf77util -luttables\
                -ltbtables -lsynphot -lstxtools -lgflib\
		-lgilib -lds\
		-o xx_sobsolete.e
	;

sobsolete.a:
	opendb.x	"colnames.h"
	extnstr.x
        t_dsimg.x       <imhdr.h>
        t_elapert.x     elcolnames.h <tbset.h>
        t_rashead.x     <imhdr.h> <mach.h> <mii.h> "rastoim.h"
        t_rastoim.x     <imhdr.h> <mach.h> <mii.h> "rastoim.h"
        t_scmapc.x      <imhdr.h> <ctype.h> <ctotok.h>
#       t_newredshift.x <imhdr.h> <error.h> <time.h>
        t_tchtype.x     <tbset.h>
        @chgkeywrd
	@convert
        @copymask
	@fixdiodes
	@grafplot
        @imagree
        @imkeyname
        @imverify
        @step
	@tarestore
        @testfunc
        @unstep
	;
