#######################################################################
#
#                     MOSIS distribution Version 4.1
#
# This is a version control header file for MOSIS's distribution of
# Magic related technology files and system libraries....
#
#       Modified by Jen-I Pi, MOSIS Project, USC/ISI     10/01/1993
#       Please send bug reports/comments to mosis@mosis.edu :-)
#
#######################################################################
#  change this to your the root of your Magic source tree or the home
#  directory of user "cad"...
CAD = /nfs/si/cad
VERSION = 26
SYSLIB = $(CAD)/lib/magic/sys
SRC = README COPYRIGHT Makefile scmos.tech scmos.tech26 \
	mos.7bit.dstyle5 mos.7bit.std.cmap1

all: clean techfile install

techfile: scmos.tech CIFin CIFout
	/lib/cpp -P -DOPEN scmos.tech > scmos.tech$(VERSION)

scmos.tech26: techfile

CIFin:
CIFout:
	cd cif_template; make

install:;
	install -c scmos.tech $(SYSLIB)
	install -c scmos.tech26 $(SYSLIB)
	install -c mos.7bit.dstyle5 $(SYSLIB)
	install -c mos.7bit.std.cmap1 $(SYSLIB)

tarfile: $(SRC)
	rm -f scmos_tech.tar.Z
	tar -cvf scmos_tech.tar $(SRC) examples cif_template rules doc
	compress scmos_tech.tar

uufile: $(SRC)
	uuencode scmos_tech.tar.Z scmos_tech.tar.Z > scmos_tech.uu

clean:;
	rm -f scmos.tech26 *.tar.Z

