######################################################################### 
#									# 
#   File: scorpion/lib/lintlib/Makefile 
#				 					# 
#   Copyright (C) 1991 Hasnain Karampurwala
#									# 
#   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.					# 
#									# 
#   Makefile for creating lint libraries.				#
#									# 
#   Revision Log:							# 
#	$Log:$ 
#									# 
#   Edit Log:								# 
#     Feb 9 1991 (hkaram) Created.					# 
#									# 
######################################################################### 

INCDIR=/usr/local/scorpion/include
SRCDIR=/usr/local/scorpion/src
INCDIR1=-I$(SRCDIR)/IDLlib/libidl
INCDIR2=-I$(SRCDIR)/IDLlib/libci

LINTINC=-I$(INCDIR)
LINT=lint
RM=rm -f

#local variables
LINT_CREATE_FLAG=-C

System: llib-llibidl.ln llib-llibci.ln llib-lliberr.ln

llib-llibidl.ln: libidl.c
	if (test "$(LINT_CREATE_FLAG)" = "-C") then \
		$(LINT) $(LINTINC) $(INCDIR1) -Clibidl libidl.c; \
	else \
		$(LINT) $(LINTINC) $(INCDIR1) -o libidl libidl.c; \
	fi

llib-llibci.ln: libci.c
	if (test "$(LINT_CREATE_FLAG)" = "-C") then \
		$(LINT) $(LINTINC) $(INCDIR2) -Clibci libci.c; \
	else \
		$(LINT) $(LINTINC) $(INCDIR2) -o libci libci.c; \
	fi

llib-lliberr.ln: liberr.c
	if (test "$(LINT_CREATE_FLAG)" = "-C") then \
		$(LINT) -Cliberr liberr.c; \
	else \
		$(LINT) -o liberr liberr.c; \
	fi

Clean:
	$(RM) *.ln *.o a.out core
