CADDIR = this_is_set_by_the_parent_Makefile_and_the_findcad_script
CAD     = ${CADDIR}
SYSLIB  = $(CAD)/lib/magic/sys
DEPEND= scmos.tech scmosExt.tech scmosExt26b.tech scmosExt34.tech\
 scmosExtDiag.tech

all: scmos.tech27 scmos.tech26 scmosWR.tech27

scmos.tech27:	$(DEPEND)
	/lib/cpp -DWRL_STANFORD_EXTRACTOR -P scmos.tech > scmos.tech27

scmos.tech26:	$(DEPEND)
	/lib/cpp -P scmos.tech > scmos.tech26

scmosWR.tech27:	$(DEPEND)
	/lib/cpp -P -DWRL_STANFORD_EXTRACTOR -DWELL_ROUTE_CHECK scmos.tech >\
		scmosWR.tech27

backup: $(DEPEND)  Makefile
	/usr/new/rcs -l $(DEPEND)  Makefile
	/usr/new/ci -u $(DEPEND)  Makefile
	chmod 644 $(DEPEND) Makefile

clean:
	/bin/rm -f scmos.tech27 scmos.tech26 scmosWR.tech27
	


install: scmos.tech27 scmosWR.tech27 mos.7bit.dstyle5 \
		mos.7bit.std.cmap1 mos.7bit.sgi.cmap1
	../:installfile scmos.tech27 $(SYSLIB)
	../:installfile scmosWR.tech27 $(SYSLIB)
	../:installfile mos.7bit.dstyle5 $(SYSLIB)
	../:installfile mos.7bit.std.cmap1 $(SYSLIB)
	../:installfile mos.7bit.sgi.cmap1 $(SYSLIB)

# program to calculate capacitances based on Sakurai's formula
scaleCap: scaleCap.c
	cc -o scaleCap	scaleCap.c -lm
