#   Make the foc package
#   Author: GIARETTA, 01-JUN-88
#	to include focgeom, focutility, focphot packages
#
#   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	foc.a
	$update	calfoc.a
	$call	foc
	$call @focprism
	;

install:
	$move	xx_calfoc.e stsdasbin$x_calfoc.e
	$move	xx_newgeom.e stsdasbin$x_newgeom.e
	$call @focprism
	;

foc:
linkonly:
	$omake	x_newgeom.x

	$link	x_newgeom.o foc.a calfoc.a\
		-lapplib -ltbtables \
		-lgsurfit\
		-o xx_newgeom.e

	$omake	x_calfoc.x

	$link	x_calfoc.o calfoc.a \
		-lsynphot -lstxtools -ltbtables \
		-lgsurfit \
		-o xx_calfoc.e
	;

calfoc.a:
	@calfoc
	;

foc.a:
	t_newgeom.x     <imhdr.h>
	;

