/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1989 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */
DOBJS = app.do atom.do atomlist.do bind.do cursor.do dataobj.do describe.do \
	environ.do event.do filetype.do fontdesc.do init.do keymap.do \
	keyrec.do keystate.do menulist.do message.do msghndlr.do \
	namespc.do observe.do proctbl.do profile.do region.do rm.do \
	updlist.do view.do winsys.do

IHFILES = app.ih atom.ih atomlist.ih bind.ih cursor.ih dataobj.ih describe.ih \
	environ.ih event.ih filetype.ih fontdesc.ih graphic.ih im.ih init.ih \
	keymap.ih keyrec.ih keystate.ih menulist.ih message.ih msghndlr.ih \
	namespc.ih observe.ih pixelimg.ih proctbl.ih profile.ih region.ih rm.ih \
	updlist.ih view.ih winsys.ih

DOCS = app.doc atom.doc atomlist.doc attribs.doc basinit.doc \
	bind.doc cursor.doc dataobj.doc describe.doc environ.doc \
	event.doc filetype.doc fontdesc.doc graphic.doc im.doc \
	init.doc keymap.doc keyrec.doc keystate.doc lwpstubs.doc \
	menulist.doc message.doc msghndlr.doc namespc.doc observe.doc \
	physical.doc pixelimg.doc point.doc proctbl.doc profile.doc \
	rect.doc region.doc rm.doc sizes.doc updlist.doc view.doc \
	winsys.doc


NormalObjectRule()
NormalATKRule()

all:: basinit.o lwpstubs.o

InstallMultiple(physical.h point.h rect.h attribs.h, ${INSTINCFLAGS}, $(DESTDIR)/include/atk)

all:: ${IHFILES} im.o

#ifdef sys_rt_r3
/* TOTALL BOGUS - NEED TO FIX OUR MALLOC TO DEFINE _end */
#if defined(ANDREW_MALLOC_ENV) && defined(DEBUG_MALLOC_ENV)
DynamicMultiObject(im.do, im.o rect.o point.o physical.o, ${DESTDIR}/lib/libplumber.a,)
#else /* #if defined(ANDREW_MALLOC_ENV) && defined(DEBUG_MALLOC_ENV) */
DynamicMultiObject(im.do, im.o rect.o point.o physical.o,,)
#endif /* #if defined(ANDREW_MALLOC_ENV) && defined(DEBUG_MALLOC_ENV) */
#endif /* sys_rt_r3 */

DynamicMultiObject(cursor.do, cursor.o rect.o point.o physical.o,,)
DynamicMultiObject(graphic.do, graphic.o rect.o point.o physical.o,,)
DynamicMultiObject(pixelimg.do, pixelimg.o rect.o point.o,,)
DynamicMultiObject(view.do, view.o rect.o point.o,,)
DynamicObject(event, $(UTILLIB),)
DynamicObject(environ, ${UTILLIB},)
DynamicObject(region, ${XLIBDIR}/libX11.a,)

InstallClassFiles($(DOBJS) graphic.do pixelimg.do, $(IHFILES))

#ifdef sys_rt_r3
InstallClassFiles(im.do, im.ih)
#endif /* sys_rt_r3 */
InstallMultiple(physical.h point.h rect.h attribs.h im.ch im.ih, ${INSTINCFLAGS}, ${DESTDIR}/include/atk/)

DependTarget()

NormalHelpRule()
InstallDocs($(DOCS), ${DESTDIR}/doc/atk/basics)

InstallDocs(initfls.help improc.help cutbuf.help menus.help, ${DESTDIR}/help)

InstallHelpAlias(initfls, initfiles .atkinit .be2init .ezinit atkinit be2-init be2init ezinit ez-init atk-init)
InstallHelpAlias(improc, improcs)
InstallHelpAlias(cutbuf, cutbuffer cutbuff)
InstallHelpAlias(menus, menu)
