# Copyright (c) 1991 - 1900.  The Regents of the University of
# California (Regents).  All Rights Reserved.
# H+
# 	Title	:  mkpkg
# 	Author	:  ericco
# 	Date	:  04/30/92
# 	Synopsis:  
# 	Keywords:
# 		@(#) mkpkg -r1.9 04/30/92 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	04/08/94   tnk	std targets
# 	02/28/94   akeith	changed ifnewer to ifolder; updata use of USE_CEA and USE_GENERIC
# 	07/12/93   tnk	changed to use dsd2spp
# 	04/30/92   ericco	date and time created 92/04/30 01:46:03 by ericco
# H-
# 
#


#	Version: @(#)mkpkg	1.9 4/8/94 UCB CEA EGO

# Make libii.a

$call preprocess
$call update
$call zzdebug
$exit

preprocess:
	$set D2S = "!dsd2spp options=x,h,memory "
	$set G = "$generic -k -o"

	$ifolder(ds.x, ds.dsd)
		$(D2S) ds.dsd
	$endif
	$ifolder(hash.x, hash.dsd)
		$(D2S) hash.dsd
	$endif
	$ifolder(hd.x, hd.dsd)
		$(D2S) hd.dsd
	$endif
	$ifolder(help.x, help.dsd)
		$(D2S) help.dsd
	$endif
	$ifolder(hr.x, hr.dsd)
		$(D2S) hr.dsd
	$endif
	$ifolder(ii.x, ii.dsd)
		$(D2S) ii.dsd
	$endif
	$ifolder(il.x, il.dsd)
		$(D2S) il.dsd
	$endif
	$ifolder(ls.x, ls.dsd)
		$(D2S) ls.dsd
	$endif
	$ifolder(item.x, item.dsd)
		$(D2S) item.dsd
	$endif

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

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


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

libii.a:
	ds.x		"ds.h"
	dsops.x		"ds.h"
	hash.x		"hash.h"
	hashops.x	"hash.h" "il.h" <ctype.h>
	hd.x		"hd.h"
	hdops.x		"hd.h"
	help.x		"help.h"
	helpops.x	"help.h" "hr.h" <ctype.h>
	hr.x		"hr.h"
	hrops.x		"hr.h"
	ii.x		"ii.h"
	iiops.x		"ii.h" "il.h" <ctype.h> <iierr.h>
	il.x		"il.h"
	ilops.x		"il.h"
	item.x		"item.h"
	itemops.x	"item.h"
	ls.x		"ls.h"
	lsops.x		"ls.h"
	lstops.x	"hash.h"
	;

zzdebug:
        $set LIBS = "-lii"

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

