# 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.2 03/30/94 UCB SSL CEA EGOCS
# 	Revisions:
# 	mm/dd/yy   name		description
# 	04/09/94   tnk	added std targets
# 	03/30/94   akeith	date and time created 94/03/30 14:12:43 by akeith
# H-
# 
#

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

$call preprocess
$call update
$call zzdebug
$exit

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

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

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

	$ifolder (bufcopy.x, bufcopy.ggx)
		$(G) bufcopy.gx bufcopy.ggx
		$(G) bufcopy.x bufcopy.gx
	$endif

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

	$ifolder (dtogbuf.x, dtogbuf.ggx)
		$(G) dtogbuf.gx dtogbuf.ggx
		$(G) dtogbuf.x dtogbuf.gx 
	$endif

	$ifolder (memget.x, memget.ggx)
		$(G) memget.gx memget.ggx
		$(G) memget.x memget.gx 
	$endif

	$ifolder (symget.x, symget.ggx)
		$(G) symget.gx symget.ggx
		$(G) symget.x symget.gx 
	$endif

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

	$ifolder (dtopbuf.x, dtopbuf.ggx)
		$(G) dtopbuf.gx dtopbuf.ggx
		$(G) dtopbuf.x dtopbuf.gx
	$endif

	$ifolder (memput.x, memput.ggx)
		$(G) memput.gx memput.ggx
		$(G) memput.x memput.gx 
	$endif

	$ifolder (symput.x, symput.ggx)
		$(G) symput.gx symput.ggx
		$(G) symput.x symput.gx 
	$endif

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

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

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

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

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

libdt.a:

	bufcopy.x
	dt.x		"dt.h"
	dtclose.x	"dt.h"
	dtdto.x         "dt.h"
	dtdtomkusr.x    "dt.h"  "dto.h"
	dtdtousr.x      "dt.h"  "dto.h"
	dtflush.x	"dt.h"	"dto.h"
	dtgbuf.x	"dt.h"	"dto.h"
	dtghdr.x	"dt.h"
	dtio.x		"dt.h"	"dto.h"
	dtmksym.x	"dt.h"	"dto.h"
	dtnext.x	"dt.h"
	dtnhdr.x	"dt.h"
	dto.x		"dto.h"
	dtocreate.x	"dt.h"	"dto.h"
	dtodel.x	"dt.h"	"dto.h"
	dtodestroy.x	"dto.h"
	dtofillbuf.x	"dto.h"
	dtogbuf.x	"dto.h"
	dtopbuf.x	"dto.h"
	dtopen.x	"dt.h"
	dtoset.x	<dtset.h> "dto.h"
	dtostat.x	<dtset.h> "dto.h"
	dtpbuf.x	"dt.h"	"dto.h"
	dtphdr.x	"dt.h"
	dtreset.x	"dt.h" "dto.h"
	dtseek.x	"dt.h"	"dto.h"
	dtset.x		<dtset.h> "dt.h"
	dtstat.x	<dtset.h> "dt.h"
	memget.x	"dto.h"
	memput.x	"dto.h"
	symget.x	"dto.h"
	symput.x	"dto.h"
	;


zzdebug:
	;

