/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/


/*
 * NOTE:  toolcnt.h is a misc file used by IBM Rochester and is
 *        found here as a dummy file.  It does not need to be
 *        installed anywhere.
 */

DOBJS = asmtext.do asmtextv.do \
        compress.do compressv.do \
        cpptext.do cpptextv.do \
        ctext.do ctextv.do \
        m3text.do m3textv.do \
        modtext.do modtextv.do \
        mtext.do mtextv.do \
        rawtext.do rawtextv.do \
        srctext.do srctextv.do

IHFILES = asmtext.ih asmtextv.ih \
        compress.ih compressv.ih \
        cpptext.ih cpptextv.ih \
        ctext.ih ctextv.ih \
        hlptext.ih \
        m3text.ih m3textv.ih \
        modtext.ih modtextv.ih \
        mtext.ih mtextv.ih \
        rawtext.ih rawtextv.ih \
        srctext.ih srctextv.ih

TEMPLATES = C.tpl H.tpl asm.tpl \
            c.tpl def.tpl \
            h.tpl help.tpl i3.tpl i3help.tpl \
            idl.tpl m3.tpl  \
            mod.tpl rawtext.tpl ctextold.tpl

InstallLink(c.tpl, $(DESTDIR)/lib/tpls/ctext.tpl)
InstallLink(C.tpl, $(DESTDIR)/lib/tpls/cpptext.tpl)
InstallLink(asm.tpl, $(DESTDIR)/lib/tpls/asmtext.tpl)
InstallLink(mod.tpl, $(DESTDIR)/lib/tpls/mtext.tpl)
InstallLink(m3.tpl, $(DESTDIR)/lib/tpls/m3text.tpl)
InstallLink(idl.tpl, $(DESTDIR)/lib/tpls/idltext.tpl)

OLDTEMPLATES = ctext.tpl cpptext.tpl asmtext.tpl mtext.tpl m3text.tpl idltext.tpl
MkdirTarget($(DESTDIR)/lib/tpls/oldsrctpls)
InstallMultiple($(OLDTEMPLATES), $(INSTINCFLAGS), $(DESTDIR)/lib/tpls/oldsrctpls)


HELPFILES = asmtext.help cpptext.help ctext.help \
            hlptext.help m3text.help mtext.help \
            rawtext.help srctext.help dogtags.help

NormalObjectRule()
NormalATKRule()

DynamicObject(srctextv, ${BASEDIR}/lib/atk/libbasics.a, ${BSDLIB})
DynamicMultiObject(hlptext.do, hlptext.o dogtags.o, ,${BSDLIB})
DynamicMultiObject(srctext.do, srctext.o dogtags.o, $(UTILLIB),${BSDLIB})

InstallClassFiles($(DOBJS),$(IHFILES))
InstallMultiple(${TEMPLATES}, ${INSTINCFLAGS}, ${DESTDIR}/lib/tpls)

DependTarget()
NormalHelpRule()

InstallDocs(${HELPFILES}, ${DESTDIR}/help)

InstallHelpAlias(cpptext, c++text)
InstallHelpAlias(srctext, srcview sourceview sourceviews editview editviews)
