#
# Copyright 1994, Cray Research, Inc.
#                 
# Permission to use, copy, modify and distribute this software and
# its accompanying documentation (the "Software") is granted without
# fee, provided that the above copyright notice and this permission
# notice appear in all copies of the Software and all supporting
# documentation, and the name of Cray Research, Inc. not be used in
# advertising or publicity pertaining to distribution of the 
# Software without the prior specific, written permission of Cray
# Research, Inc.  The Software is a proprietary product of Cray
# Research, Inc., and all rights not specifically granted by this
# license shall remain in Cray Research, Inc.  No charge may be made
# for the use or distribution of the Software.  The Software may be
# distributed as a part of a different product for which a fee is
# charged, if (i) that product contains or provides substantial
# functionality that is additional to, or different from, the
# functionality of the Software, and (ii) no separate, special or
# direct charge is made for the Software.
#         
# THE SOFTWARE IS MADE AVAILABLE "AS IS", AND ALL EXPRESS AND
# IMPLIED WARRANTIES, INCLUDING THE IMPLIED WARRANTIES OF FITNESS
# FOR A PARTICULAR PURPOSE, MERCHANTABILITY, AND FREEDOM FROM
# VIOLATION OF THIRD PARTY INTELLECTUAL PROPERTY RIGHTS, ARE HEREBY
# DISCLAIMED AND EXCLUDED BY CRAY RESEARCH, INC.  CRAY RESEARCH,
# INC. WILL NOT BE LIABLE IN ANY EVENT FOR ANY CONSEQUENTIAL,
# SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES ARISING OUT OF OR IN
# CONNECTION WITH THE PERFORMANCE OF THE SOFTWARE OR ITS USE BY ANY
# PERSON, OR ANY FAILURE OR NEGLIGENCE ON THE PART OF CRAY RESEARCH,
# INC., EXCEPT FOR THE GROSS NEGLIGENCE OR WILLFUL MISCONDUCT OF
# CRAY RESEARCH.
# 
# This License Agreement shall be governed by, and interpreted and
# construed in accordance with, the laws of the State of Minnesota,
# without reference to its provisions on the conflicts of laws, and
# excluding the United Nations Convention of the International Sale
# of Goods.
#
#	USMID %Z%%M%	%I%	%G% %U%
#	$Id: Makefile,v 1.8 1994/08/10 18:00:46 prb Exp $
#
LIB=	Cvo
LEVEL=	0.9

SRCS+= Accelerator.cc Action.cc Application.cc Arrows.cc AssociatedData.cc
SRCS+= Base.cc BasicButton.cc BasicObject.cc Blank.cc Buffer.cc Button.cc
SRCS+= ButtonMenu.cc CRT.cc Chamfer.cc Chart.cc ChartGraphs.cc
SRCS+= ChartHorizontal.cc ChartVertical.cc Color.cc Configure.cc Confirm.cc
SRCS+= Create.cc Cursor.cc DiscoverWindow.cc Ev.cc EvSignal.cc Event.cc
SRCS+= Exit.cc ExpandPage.cc Failure.cc FdSet.cc FileMatch.cc FilePage.cc
SRCS+= FileProto.cc
SRCS+= FileView.cc Font.cc Frame.cc GC.cc GenericList.cc Help.cc
SRCS+= HelpDisplay.cc HelpParse.cc HoldWindow.cc I18N.8bit IconGroup.cc
SRCS+= Image.cc ImageButton.cc Inform.cc Input.cc InputContext.cc InputOnly.cc
SRCS+= InputRing.cc InputViewPort.cc Iwin.cc Label.cc LabelMatrix.cc Layout.cc
SRCS+= LayoutWindow.cc List.cc MainLoop.cc Mark.cc Matrix.cc MatrixViewPort.cc
SRCS+= Menu.cc MenuBar.cc MenuEntry.cc MenuLabel.cc MenuSession.cc Modal.cc
SRCS+= MonoColors.cc Move.cc NullLayout.cc Object.cc OpenFile.cc OptionMenu.cc
SRCS+= Output.cc Page.cc Paint.cc PaintViewPort.cc PeelOff.cc Picture.cc
SRCS+= Pin.cc PinUp.cc Pixmap.cc PixmapChamfer.cc PopupLayout.cc PrintEvent.cc
SRCS+= Protocols.cc Quarks.cc Radio.cc RadioBox.cc Raise.cc Register.cc
SRCS+= Resource.cc RootedList.cc ScrollBar.cc SelfLayout.cc Separator.cc
SRCS+= Selection.cc Shell.cc StandardLayout.cc Text.cc TextAttribute.cc
SRCS+= TextBoard.cc TextLine.cc TextPage.cc TextViewPort.cc Toggle.cc
SRCS+= TopLevelLayout.cc Translation.cc Tree.cc TreeViewPort.cc Vi.cc
SRCS+= ViewPort.cc Window.cc WindowViewPort.cc XImage.cc
SRCS+= RdBitF.c debug.cc util.cc pty.cc version.c

SRCS+=	ToolTalk.cc

.PATH:	${.CURDIR}/../TREE/src

FLAGS+=	-I${.CURDIR}/..
FLAGS+=	-I${.CURDIR}/../TREE
FLAGS+=	-I/usr/openwin/include

C++FLAGS+=	${FLAGS}
CFLAGS+=	${FLAGS}

copy:	libCvo.a
	cp -p libCvo.a /home/sumac4/prb/Cvo.dev/libCvo.a

.include <c++.mk>
.include <lib.mk>

.SUFFIXES:	.8bit

.8bit.cc:	8bit_decode
	./8bit_decode < ${.IMPSRC} > ${.TARGET}

8bit_decode:	${.CURDIR}/../util/8bit_decode.cc
	${C++} -o 8bit_decode ${.CURDIR}/../util/8bit_decode.cc

version.c:
	date "+static char version[] = \"USMID @(#)Cvo_version ${LEVEL}	%m/%d/%y %H:%M:%S Cvo.${LEVEL}\";" > version.c

version.o:	version.c
	cc -c version.c
	rm -f version.c
