#
#    FILE:  mkpkg
#
# PURPOSE:  mkpkg file for QDPHOT
#
#  AUTHOR:  Kenneth J. Mighell (mighell@noao.edu)
#
#    DATE:  2001 April 18
#
# Copyright(c) 2001 Association of Universities for Research in Astronomy Inc.
#

$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_qdphot.e libpkg.a $(LIBS)
	;

install:
	$move xx_qdphot.e mxtoolsbin$x_qdphot.e
	;

libpkg.a:
        QDPhot.c	qdphot.c <mx.h> qdphot.h 
        qdphot.c	qdphot.c <mx.h> qdphot.h
        func_temp.c	qdphot.c <mx.h> qdphot.h
        img_close.c	qdphot.c <mx.h> qdphot.h
        img_minmax.c	qdphot.c <mx.h> qdphot.h
        img_open.c	qdphot.c <mx.h> qdphot.h
        iraf_getb.c	qdphot.c <mx.h> qdphot.h
        iraf_getd.c	qdphot.c <mx.h> qdphot.h
        iraf_geti.c	qdphot.c <mx.h> qdphot.h
        iraf_gstr.c	qdphot.c <mx.h> qdphot.h
        par_coo_file.c	qdphot.c <mx.h> qdphot.h
        par_coo_pk.c	qdphot.c <mx.h> qdphot.h
        par_get.c	qdphot.c <mx.h> qdphot.h
        par_print.c	qdphot.c <mx.h> qdphot.h
        par_put.c	qdphot.c <mx.h> qdphot.h
        phot_bkg.c	qdphot.c <mx.h> qdphot.h
        phot_calc.c	qdphot.c <mx.h> qdphot.h
        phot_check.c	qdphot.c <mx.h> qdphot.h
        phot_init.c	qdphot.c <mx.h> qdphot.h
        phot_mag.c	qdphot.c <mx.h> qdphot.h
        phot_print.c	qdphot.c <mx.h> qdphot.h
        phot_signl.c	qdphot.c <mx.h> qdphot.h
        qd_banner.c	qdphot.c <mx.h> qdphot.h
        search.c	qdphot.c <mx.h> qdphot.h
        vec_median.c	qdphot.c <mx.h> qdphot.h 
	;
