#
# mkpkg file for the wfpc2color
#
# AUTHOR:  K. J. Mighell (mighell@noao.edu)
#
# DATE:  20010329
#
# Copyleft (L) 2001 Kenneth John Mighell
#

$call relink
$exit

update:
	$call relink
	$call install
	;

relink:
	$set XFLAGS="-Inolibc -/I. '-Istsdaslib$cvos/irafstdio' $(XFLAGS)"
	$set LFLAGS="-H -z $(LFLAGS) "
        $set LIBS = "-lmx -lcvos -lxtools -lc"

	$update libpkg.a
	$link	$(LFLAGS) -o xx_wfpc2color.e libpkg.a $(LIBS)
	;

install:
	$move xx_wfpc2color.e mxtoolsbin$x_wfpc2color.e
	;

libpkg.a:
	wfpc2color.c    <mx.h> wfpc2color.h
	par_get.c	<mx.h> wfpc2color.h
	banner.c	<mx.h> wfpc2color.h
	par_print.c	<mx.h> wfpc2color.h
	par_imag_file.c	<mx.h> wfpc2color.h
	convert.c	<mx.h> wfpc2color.h
	key_get.c	<mx.h> wfpc2color.h
	iraf_getd.c	<mx.h> wfpc2color.h
	iraf_gstr.c	<mx.h> wfpc2color.h
	iraf_geti.c	<mx.h> wfpc2color.h
	check.c		<mx.h> wfpc2color.h
	par_put.c	<mx.h> wfpc2color.h
	;

