# Library for the IMMATCHX package containing routines used by more than one
# task

$checkout libpkg.a ../
$update	libpkg.a
$checkin libpkg.a ../
$exit

generic:
        $set    GEN = "$$generic -k"

        $ifolder (geofit.x,geofit.gx)
            $(GEN) geofit.gx -o geofit.x $endif
        $ifolder (geogmap.x,geogmap.gx)
            $(GEN) geogmap.gx -o geogmap.x $endif
        $ifolder (geograph.x,geograph.gx)
            $(GEN) geograph.gx -o geograph.x $endif
        $ifolder (geofunc.x,geofunc.gx)
            $(GEN) geofunc.gx -o geofunc.x $endif

        $ifolder (liststr.x, liststr.gx)
	    $(GEN) liststr.gx -o liststr.x $endif
	;

libpkg.a:
        $ifeq (USE_GENERIC, yes) $call generic $endif

        geofit.x        <mach.h> <math.h> <math/gsurfit.h> <geomap.h>
        geogmap.x       <error.h> <math.h> <math/gsurfit.h> <geomap.h> \
			"geogmap.h"
        geograph.x      <mach.h> <math.h> <gset.h> <math/gsurfit.h> \
                        <pkg/gtools.h> <geomap.h> "geogmap.h"
	geofunc.x	<math.h> <math/gsurfit.h>
	liststr.x	<ctype.h>
	rgbckgrd.x              <mach.h> <math.h> <math/gsurfit.h>
	rgccwcs.x	<imhdr.h> <math.h> <mwset.h> <skywcs.h>
	rgcontour.x     <error.h> <mach.h> <gset.h> <config.h> \
			<xwhen.h> <fset.h>
	rgfft.x
	rglltran.x	<math.h> <skywcs.h>
	rgmerge.x       <mach.h> <plset.h> <xyxymatch.h>
	rgsort.x
	rgtransform.x   <math.h> <math/gsurfit.h> <xyxymatch.h>
	rgwrdstr.x
	rgxymatch.x	<mwset.h>
        xymatch.x       <xyxymatch.h>
	;
