/*
Copyright (c) 1991, 1992, 1993, 1996, 1997 Xerox Corporation.  All Rights Reserved.  

Unlimited use, reproduction, and distribution of this software is
permitted.  Any copy of this software must include both the above
copyright notice of Xerox Corporation and this paragraph.  Any
distribution of this software must comply with all applicable United
States export control laws.  This software is made available AS IS,
and XEROX CORPORATION DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE, AND NOTWITHSTANDING ANY OTHER
PROVISION CONTAINED HEREIN, ANY LIABILITY FOR DAMAGES RESULTING FROM
THE SOFTWARE OR ITS USE IS EXPRESSLY DISCLAIMED, WHETHER ARISING IN
CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, EVEN IF
XEROX CORPORATION IS ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

$Id: Imakefile,v 1.18 1997/09/09 00:08:57 larner Exp $
*/


LOCALINCLUDES = -I../parser -I../../runtime/kernel
ILUCINCLUDES =

NormalObjectRule()


iluptypecpp.hpp :   ../parser/iluptype.h
cppparsename.hpp :  iluptypecpp.hpp
cppparse.hpp :      iluptypecpp.hpp cppparsenarrow.hpp
cppgen.hpp :        cppparse.hpp cppparsestream.hpp

cppmain.o :         cppmain.cc cppparse.hpp cppparsestream.hpp cppgen.hpp

cppparsestream.o :  cppparsestream.cc  cppparsestream.hpp
cppparse.o :        cppparse.cc        cppparse.hpp
cppparsename.o :    cppparsename.cc    cppparse.hpp cppparsename.hpp iluptypecpp.hpp

cppgen.o :          cppgen.cc          cppgen.hpp cppparse.hpp
cppgenname.o :      cppgenname.cc      cppgen.hpp cppparse.hpp cppportability.hpp
cppgencommon.o :    cppgencommon.cc    cppgen.hpp cppparse.hpp cppportability.hpp cppparsestream.hpp
cppgenstub.o :      cppgenstub.cc      cppgen.hpp cppparse.hpp cppportability.hpp cppparsestream.hpp
cppgensurrogate.o : cppgensurrogate.cc cppgen.hpp cppparse.hpp cppportability.hpp cppparsestream.hpp
cppgentrue.o :      cppgentrue.cc      cppgen.hpp cppparse.hpp cppportability.hpp cppparsestream.hpp


ObjectTarget(cppmain.o)
ObjectTarget(cppparsestream.o)
ObjectTarget(cppparse.o)
ObjectTarget(cppparsename.o)
ObjectTarget(cppgen.o)
ObjectTarget(cppgencommon.o)
ObjectTarget(cppgensurrogate.o)
ObjectTarget(cppgentrue.o)
ObjectTarget(cppgenname.o)

CPlusPlusProgramTarget(cpp2-stubber, cppmain.o cppparse.o cppparsename.o cppgen.o cppgencommon.o cppgensurrogate.o cppgentrue.o cppgenstub.o cppgenname.o cppparsestream.o, ../parser/libilu-parser.a,)

InstallProgram(cpp2-stubber, $(DESTDIR)/bin)
InstallRO(cppportability.hpp, $(DESTDIR)/include)
InstallRO(optionaltemplates.hpp, $(DESTDIR)/include)

clean:: ; $(RM) -r Templates.DB

/*
InstallRO(c++-stubber.1, $(DESTDIR)/man/man1)
*/
