# 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.7 04/30/92 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	11/23/94   tnk	disabled broken zzdebug
# 	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	changed to used dsd2spp
# 	04/30/92   ericco	date and time created 92/04/30 00:26:53 by ericco
# H-
# 
#

#	Revised: 11/23/94
# Make libedd.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(hs.x: hs.dsd)
		$(D2ST)  hs.dsd 
	$endif
	$ifolder(det.x: det.dsd)
		$(D2ST)  det.dsd 
	$endif
	$ifolder(dd.x: dd.dsd)
		$(D2ST)  dd.dsd 
	$endif
	$ifolder(pd.x: pd.dsd)
		$(D2S) pd.dsd 
	$endif
	$ifolder(psf.x: psf.dsd)
		$(D2ST)  psf.dsd 
	$endif
	$ifolder(ea.x: ea.dsd)
		$(D2ST)  ea.dsd 
	$endif
	$ifolder(eao.x: eao.dsd)
		$(D2S) eao.dsd 
	$endif
	$ifolder(qd.x: qd.dsd)
		$(D2ST)  qd.dsd
	$endif
	;

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


libedd.a:
	det.x		"det.h"
	detops.x	"det.h"
	dd.x		"dd.h" "det.h"
	pd.x		"pd.h"
	pdops.x		"pd.h" "psf.h"
	psf.x		"psf.h"
	ea.x		"ea.h"
	eao.x		"eao.h"
	eaoops.x	"eao.h" "ea.h"
	qd.x		"qd.h"
	hs.x		"hs.h"
	edd.x		"dd.h" "det.h" "ea.h" "eao.h" "hs.h" "pd.h" "psf.h"
	eddops.x	"dd.h" "det.h"
	eddorders.x
	eddpsf.x	"dd.h" "pd.h"
	;

zzdebug:
	$set LIBS = "-ledd -let -lcea -ltbtables"

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

