# Copyright (c) 1991 - 1900.  The Regents of the University of
# California (Regents).  All Rights Reserved.
# H+
# 	Title	:  mkpkg
# 	Author	:  tnk
# 	Date	:  03/01/93
# 	Synopsis:  
# 	Keywords:
# 		@(#) mkpkg -r1.6 03/01/93 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	04/08/94   tnk	reordered targets
# 	03/30/94   egos	reworked targets
# 	02/26/94   ericco	added preprocess target
# 	03/02/93   tnk	replaced ifnewer with ifolder 
# 	03/01/93   tnk	added file existence checks for dsd2spp stuff
# 	03/01/93   tnk	date and time created 93/03/01 15:58:29 by tnk
# H-
# 
#

# @(#)mkpkg	1.6 4/8/94
# mkpkg for mkprimbsch

$call preprocess
$call update
$call zzdebug
$exit

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

preprocess:
        $ifolder(mp.x: mp.dsd)
           !dsd2spp options=h,x,memory mp.dsd  
	$endif
        $ifolder(colget.x: colget.gx) 
           $generic -k -o colget.x colget.gx
	$endif
        ;

libeuvred.a:
        t_mkprimbsch.x  "mp.h"
        mp.x   		"mp.h"
        colget.x 
        ;

zzdebug:
        $set LIBS = "-leuvred -lcea -livops -lplf -liminterp -ltbtables -lxtools"
        $omake  zzdebug.x
        $link   zzdebug.o $(LIBS) -o zzdebug.e
        ;


