# Copyright (c) 1991 - 1900.  The Regents of the University of
# California (Regents).  All Rights Reserved.
# H+
# 	Title	:  mkpkg
# 	Author	:  ericco
# 	Date	:  05/07/91
# 	Synopsis:  
# 	Keywords:
# 		@(#) mkpkg -r1.51 05/07/91 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	10/20/97   mabbott	renamed qpacquirefields.x to qpacqfields.x
# 	10/13/97   bboyd	Added generic qprlmergeeuv routine
# 	09/26/97   bboyd	added qpdtypeeuv.x
# 	09/19/97   bboyd	changed name of qpgetfields to qpacquirefields to avoid 6 char redundancy (stupid DOS mentality!)
# 	09/12/97   bboyd	added qpgetfields.x
# 	09/12/97   bboyd	added qpparseeuv.x
# 	01/13/97   tnk	added addqphist.x
# 	01/13/97   mabbott	added some .h dependencies
# 	12/27/96   mabbott	added eusalloc.x
# 	11/08/94   akeith	fixed dsd line ( gb )
# 	09/21/94   akeith	upgraded
# 	09/02/94   tnk	added debands.x
# 	09/02/94   tnk	added chierr
# 	08/30/94   tnk	added imhdtype, fitskeyval
# 	08/19/94   tnk	added imcpcmnt
# 	08/01/94   tnk	took out eumalloc.inc dependencies
# 	07/19/94   tnk	added mw2d3d
# 	06/29/94   akeith	added eugrange.x
# 	06/06/94   tnk	added imhdfnd.x
# 	05/02/94   tnk	added new routines
# 	04/28/94   tnk	added new routines
# 	04/26/94   ericco	added USE_CEA flag for default rule!
# 	04/09/94   tnk	added tp.dsd preprocess
# 	04/09/94   tnk	fixed hdrcpy typo
# 	04/08/94   tnk	std targets
# 	04/08/94   akeith	added euidxstr.x
# 	03/25/94   akeith	put in eugwind.x
# 	03/08/94   tnk	added match_list
# 	03/07/94   tnk	added hdrcpy.gx hcpkill.x routines
# 	03/07/94   akeith	took out mws1dtrans and put in eunewimg.x
# 	11/24/93   tnk	moved contact.c to c_contact.c to fix bug for those compiling with f2c
# 	07/12/93   tnk	added tb*gttn routines, trimwhite
# 	05/05/93   akeith	put in tbccpy()
# 	04/16/93   akeith	put in tbccpy.x
# 	03/24/93   ericco	added debugging compilation flag to c code
# 	02/12/93   ericco	added C free switch
# 	02/12/93   akeith	add tp library
# 	12/11/92   tnk	added tbhckl
# 	11/23/92   ericco	added pset support routines
# 	08/19/92   ericco	added debug utility routines
# 	05/17/92   ericco	added special update for c code
# 	05/17/92   ericco	added euclstr.x
# 	10/29/91   ericco	added eupart and euqpoe files
# 	05/07/91   ericco	date and time created 91/05/07 14:14:08 by ericco
# H-
# 
#

#	Revised: 10/20/97
# Make libcea.a

$set USE_CEA = "yes"
$call preprocess
$call update
$call zzdebug
$exit

preprocess:
	$ifolder (psarray.x, psarray.gx)
		$generic -k -o psarray.x psarray.gx
	$endif

	$ifolder (eugwcs.x, eugwcs.gx)
		$generic -k -o eugwcs.x eugwcs.gx
	$endif

	$ifolder (hdrcpy.x, hdrcpy.gx)
		$generic -k -o  hdrcpy.x hdrcpy.gx 
	$endif

	$ifolder (tp.x: tp.dsd)
		!dsd2spp rightmargin=80 options=x,h,memory tp.dsd
	$endif

	$ifolder (imcpy.x, imcpy.gx)
		$generic -k -o  imcpy.x imcpy.gx 
	$endif

	$ifolder (qprlmergeeuvd.x, qprlmergeeuv.gx)
		$generic -k -t ird qprlmergeeuv.gx
	$endif
	;

update:
	$checkout	libcea.a euvbin$
	$update		libcea.a
	$checkin	libcea.a euvbin$
	;

libcea.a:
        # KEEP THIS LINE (needed to turn gettm on/off)
	$ifeq (USE_CEA, yes) @(cea) $else @(nocea) $endif

	psarray.x	<ctype.h>
	pssplit.x	<ctype.h>
	eufree.x	 <szdtype.inc> 
	eumalloc.x	 "eu.h"  <szdtype.inc>  <szdtype.inc> 
	eurealloc.x	 "eu.h"
	eusalloc.x	 
	eunullinvec.x
	eupart.x	 <ctype.h>
	euaccum.x
	euclstr.x
	euclfile.x	<ctype.h>
	eugwcs.x	<mwset.h> <imhdr.h>
	eugwind.x
	euerror.x
	eufile.x
	euidxstr.x
	eugrange.x
	eudet.x
	eunewstr.x
	eunewimg.x	<imhdr.h>
	euqpoe.x
	dbg.x
	tbhckl.x
	tbccpy.x
	tp.x              "tp.h"
	tpops.x           "tp.h"
	tbcgttn.x
	tbegttn.x
	tbrgttn.x
	trimwhite.x     <ctype.h> <chars.h> <iraf.h> 
	hcpkill.x
	hdrcpy.x
	match_list.x
	crfname.x
	dnam2row.x
	fnpath.x
	mkgauss.x
	epsiloncmp.x
	xy2quad.x
	qpfldoff.x
	qpofilt.x
	qpacqfields.x
	qpparseeuv.x
	qpdtypeeuv.x
	imcpy.x
	imhdfnd.x
	mw2d3d.x
	imcpcmnt.x
	imhdtype.x
	fitskeyval.x
	chierr.x
	debands.x
	addqphist.x
	;

nocea:
	contact.x
	;

cea:
	c_contact.c
	;


zzdebug:
	;
