#   Make the focphot package
#   Author: CDBS, 19-NOV-1987
#	to include dqenormx,ratiox,rremovex,wfactorx application(s)
#
#   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	focphot.a
	$call	focphot
	;

install:
	$move	xx_focphot.e stsdasbin$x_focphot.e
	;

focphot:
linkonly:
	$omake	x_focphot.x

	$set LIBS = "-lxtools"

	$link	x_focphot.o focphot.a \
		-lapplib -lstxtools \
		$(LIBS) \
		-ltbtables \
		-o xx_focphot.e
	;

focphot.a:
	@dqenormx
	@dezoomx
	@fflincorr
	@ratiox
	@rremovex
	;
