# Copyright (c) 1991 - 1900.  The Regents of the University of
# California (Regents).  All Rights Reserved.
# H+
# 	Title	:  mkpkg
# 	Author	:  akeith
# 	Date	:  03/30/94
# 	Synopsis:  
# 	Keywords:
# 		@(#) mkpkg -r1.3 03/30/94 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	09/14/94   akeith	added wimgdf.x
# 	04/09/94   tnk	added std targets
# 	03/30/94   akeith	date and time created 94/03/30 12:45:22 by akeith
# H-
# 
#


#       Version: @(#)mkpkg	1.3 9/14/94 UCB CEA EGO

# Make libdf.a

$call preprocess
$call update
$call zzdebug
$exit

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

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

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

	$set G = "$$generic -k -o"

	$ifolder (tbldf.x, tbldf.gx)
		$(G) tbldf.x tbldf.gx 
	$endif

	$ifolder (rimgdf.x, rimgdf.gx)
		$(G) rimgdf.x rimgdf.gx 
	$endif

	$ifolder (wimgdf.x, wimgdf.gx)
		$(G) wimgdf.x wimgdf.gx 
	$endif
	;

libdf.a:
	imgdf.x	 	<dfset.h> <imio.h> <mwset.h> <imhdr.h> <imset.h> "ioim.h"
	tbldf.x	 	"iotb.h" <dfset.h> <tbset.h>
	rimgdf.x	<dfset.h> <imhdr.h>
	wimgdf.x	<dfset.h> <imhdr.h>
	ioim.x		"ioim.h"
	iotb.x		"iotb.h"
	;

zzdebug:
	$set LIBS = ""

	$omake  zzdebug.x
	$link   zzdebug.o $(LIBS) -o zzdebug.e
	;

