# Update the regist application code in the registration package library
# Author: WILLIAMSON, 27-APR-1992

#   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$

update:
	$call	relink
	$call	install
	;

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

relink:
	$update	register.a
	$call	register
	;

install:
	$move	xx_registration.e stsdasbin$x_registration.e
	;

register:
linkonly:
	$omake	x_registration.x

	$link	x_registration.o register.a \
		-ltbtables -liraf77\
                -lstxtools \
		-o xx_registration.e
	;

register.a:
        crdtyp.x                <imhdr.h> register.h
        determ.x
        expixi.x                register.h
        expixv.x                register.h
        expxvw.x                register.h
        factor.x
        imgres.x
        imresw.x
        isgn.x
        lintrans.x
        magrotran.x
        nnbimg.x
        nnbimw.x
        nnbvcw.x
        nnbvec.x
        plyimg.x                register.h
        plyvcw.x                register.h
        plyvec.x                register.h
        polin2.x
        polint.x                register.h
        polylq.x
        pt4img.x
        pt4imw.x
        t_headers.x             <imhdr.h> <tbset.h> register.h
        t_imagfe.x              <imhdr.h> <tbset.h>
        t_reflresamp.x           <imhdr.h> <tbset.h>
        t_vecfea.x              <tbset.h>
        vcresw.x
        vecres.x
        xyfitrej.x
        ;

