# 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.5 04/30/92 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	04/09/94   tnk	changed ifnewer to ifolder
# 	04/08/94   tnk	std targets
# 	07/12/93   tnk	compacted dsd2spp calls
# 	07/12/93   tnk	converted to dsd2spp
# 	04/30/92   ericco	date and time created 92/04/30 00:51:00 by ericco
# H-
# 
#

#	Revised: 4/9/94
# Make libet.a

$call preprocess
$call update
$call zzdebug
$exit

preprocess:
	$set	D2ST	= "!dsd2spp options=x,h,memory,table "
	$set	D2S	= "!dsd2spp options=x,h,memory "

	$ifolder(etr.x: etr.dsd)
		$(D2S) etr.dsd 
	$endif
	$ifolder(et.x: et.dsd)
		$(D2S) et.dsd 
	$endif
	$ifolder(ml.x: ml.dsd)
		$(D2ST) ml.dsd 
	$endif
	$ifolder(al.x: al.dsd)
		$(D2ST) al.dsd 
	$endif
	$ifolder(mls.x: mls.dsd)
		$(D2S) mls.dsd 
	$endif
	$ifolder(als.x: als.dsd)
		$(D2S) als.dsd 
	$endif
	;

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

libet.a:
	al.x	"al.h"
	als.x	"als.h"
	alsops.x "al.h" "als.h"
	ml.x	"ml.h"
	mls.x	"mls.h"
	mlsops.x "ml.h" "mls.h"
	etr.x	"etr.h"
	et.x	"et.h"
	etops.x	 "etr.h" "et.h"
	;

zzdebug:
	$set LIBS = "-let -lcea -ltbtables"
#	$omake	test.x
#	$link	test.o $(LIBS) -o test.e
#	$omake	t2.x
#	$omake	test2.x
#	$link	test2.o t2.o $(LIBS) -o test2.e
#	$omake	zzdebug.x
#	$link	zzdebug.o $(LIBS) -o zzdebug.e
	$omake	zzlimit.x
	$link	zzlimit.o $(LIBS) -o zzlimit.e
	;

