# Make the NDWFSGET task

$call	relink
$exit


relink:
	$set	LIBS = "-lxtools -lslalib"
	$update	libpkg.a
	$update	libskywcs.a
	$omake	x_cutout.x
	$link	x_cutout.o libpkg.a libskywcs.a $(LIBS) -o x_cutout.e
	;

libpkg.a:
	t_ndwfsget.x <fset.h>
	t_cutout.x <mach.h> <math.h> <imhdr.h> <mwset.h> <pkg/dttext.h> \
		   "skywcs.h" "cutout.h"
	ctutils.x <ctotok.h> <ctype.h>
	ctfterm.x
	;

libskywcs.a:
        skdecode.x      <imio.h> <imhdr.h> <mwset.h> "skywcsdef.h" "skywcs.h"
        skwrite.x       "skywcsdef.h" "skywcs.h"
        skstat.x        "skywcsdef.h" "skywcs.h"
        skset.x         "skywcsdef.h" "skywcs.h"
        sktransform.x   <math.h> "skywcsdef.h" "skywcs.h"
        sksaveim.x      "skywcsdef.h" "skywcs.h"
        skwrdstr.x
	;
