#   Make the TESTDATA package
#
#   Author: BSIMON, 14-FEB-1990
#	to include compspec and overscan applications
#
#   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$

$call	relink
$exit

update:
	$call	relink
	$call	install
	;

relink:
	$update	testdata.a
	$call	testdata
	;

install:
	$move	xx_testdata.e stsdasbin$x_testdata.e
	;

testdata:
linkonly:
	$omake	x_testdata.x

	# TBLSPP   - SDAS tables I/O library for SPP programs
	# IRAF77   - Fortran-77/VOS interface library
	# TBLF77   - SDAS tables I/O library for Fortran-77 programs
	
	$set 	LIBS = "-lstxtools"
	$link	x_testdata.o testdata.a $(LIBS) \
		-o xx_testdata.e
	;

testdata.a:
	@compspec
	@overscan
	;
