######################################################################### 
#									# 
#   File: scorpion/src/specs/Diana.Revision4/Makefile 
#				 					# 
#   Copyright (C) 1991 Karen Shannon
#									# 
#   The Scorpion System is free software in the public domain; you can  # 
#   redistribute it and/or modify it as you wish. We ask that you 	# 
#   retain credits referencing the University of Arizona and that you	# 
#   identify any changes you make.					# 
#									# 
#   Report problems to scorpion-project@cs.arizona.edu			# 
#   Direct all inquiries to:	The Scorpion Project			# 
#				Department of Computer Science		# 
#				Gould-Simpson Building			# 
#				University of Arizona			# 
#				Tucson, AZ 85721			# 
#				U.S.A.					# 
#									# 
#   Function: routines used in analyzing the structures and processes	# 
#           of the dictionary 						# 
#									# 
#           Analyze  AnalyzeStructure  AnalyzeProcess			# 
#									# 
#   Revision Log:							# 
#	$Log:$ 
#									# 
#   Edit Log:								# 
#     Jan 9 1985 (shannon) Created.					# 
#									# 
######################################################################### 

LIBDIR=/usr/local/scorpion/lib
BINDIR=/usr/local/scorpion/bin
SPECSDIR=/usr/local/scorpion/src/specs
IDLC=$(BINDIR)/idlc
IDLCFLAGS=
SED=sed


# local vars
FILEC=TestC.c
FILE=dianatestC.p
IDLCFLAGSLOC=-nc -h -L -I$(SPECSDIR)/Diana.Revision4

LIB=$(LIBDIR)/libidl.a

System: TestP.h TestC.h

TestC.h:	dianatestC.idl diana.idl
	$(IDLC) $(IDLCFLAGS) $(IDLCFLAGSLOC) -C diana.Cdl dianatestC.idl 

TestP.h:	dianatestP.idl diana.idl
	$(IDLC) $(IDLCFLAGS) $(IDLCFLAGSLOC) dianatestP.idl 

Checkout: TestC.h
	$(SED) '1,9d' correct_TestC.c > DianaTestC.c
	$(SED) '1,3d' correct_TestC.h > DianaTestC.h
	$(SED) '1,9d' TestC.c > Diana2TestC.c
	$(SED) '1,3d' TestC.h > Diana2TestC.h
	@sh -c 'cmp -s DianaTestC.c Diana2TestC.c && DianaTestC.h Diana2TestC.h && (echo "files DianaTestC.[ch] and Diana2Test.[ch] agree"; echo "diana.idl Passed Installation Check") || echo "?diana.idl Failed Installation Check " '
	$(RM) DianaTestC.c Diana2TestC.c

Clean:
	$(RM) TestP* TestC*
