# SPLOT task.

$call	relink
$exit

update:
	$call	relink
	$call	install
	;

relink:
	$set	LIBS = "-lsmw -lxtools -lcurfit -liminterp -lllsq"
	$update	libpkg.a
	$omake	x_nsplot.x
	$link	x_nsplot.o libpkg.a $(LIBS) -o xx_nsplot.e
	;

install:
	$move	xx_nsplot.e nmiscbin$x_nsplot.e
	;

libpkg.a:
	anshdr.x	<smw.h> <time.h>
	autoexp.x	<gset.h> <pkg/gtools.h>
	avgsnr.x	
	conflam.x	<smw.h> <error.h>
	confnu.x	<smw.h> <error.h>
	deblend.x	<error.h> <gset.h> <mach.h>
	eqwidth.x	
	eqwidthcp.x	<gset.h>
	fixx.x		<smw.h>
	flatten.x	<pkg/gtools.h>
	fudgept.x	
	fudgex.x	
	getimage.x	<smw.h> <error.h> <imhdr.h> <pkg/gtools.h>
	gfit.x		<error.h> <gset.h> <mach.h>
	mktitle.x	<smw.h> <units.h> <imhdr.h> <pkg/gtools.h>
	plotstd.x	<smw.h> <error.h> <gset.h>
	replot.x	<gset.h>
	smooth.x	
	spdeblend.x	<error.h> <gset.h>
	splot.x		<smw.h> <units.h> <error.h> <gset.h> <imhdr.h>\
			<pkg/gtools.h>
	splotcolon.x	<smw.h> <units.h> <error.h> <pkg/gtools.h> <ctype.h>
	splotfun.x	<smw.h> <mach.h>
	stshelp.x	<error.h>
	sumflux.x	
	usercoord.x	<smw.h> <units.h> <error.h>
	voigt.x
	wrspect.x	<smw.h> <error.h> <imhdr.h> <imio.h>

	getcalib.x	<error.h> <ctype.h>
	idsection.x	<ctype.h>
	sshift1.x
	;
