/* contrib/bdffont - font editor utilizing the raster object */
/*
	Copyright Carnegie Mellon University 1991, 1992 - All rights reserved
	$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.
* $
*/

DOBJS = bdffont.do bdffontv.do
IHFILES = bdffont.ih bdffontv.ih

BDFHELP = bdffont
BDFHELPALIASES = bdf fonted fonteditor fontedit editfont

LOCALINCLUDES = -I../include/atk

NormalObjectRule()
NormalATKRule()

DynamicObject(bdffontv, ${UTILLIB}, )
InstallClassFiles($(DOBJS),$(IHFILES))
InstallDocs($(BDFHELP).help, $(DESTDIR)/help)
InstallHelpAlias($(BDFHELP), $(BDFHELPALIASES))
InstallLink(runapp, ${DESTDIR}/bin/bdffont)

DependTargetFiles(bdffont.tlc bdfparse.tab.c)

bdffont.o:	bdffont.tlc bdfparse.tab.c

bdffont.tlc:	bdffont.tlx bdfparse.tab.c
	ExecuteFromDESTDIR(gentlex bdffont.tlx bdfparse.tab.c)

bdfparse.tab.c:	bdfparse.y
	ExecuteFromDESTDIR(bison -d -r -n bdfparse.y) 


LIBS = ${BASEDIR}/lib/atk/libtext.a 

BASELIBS = ${BASEDIR}/lib/atk/libbasics.a \
	${BASEDIR}/lib/libclass.a \
	${BASEDIR}/lib/liberrors.a \
	${MALLOCLIB}  \
	${RESOLVER_LIB}  \
	${UTILLIB}

SYSLIBS = 

ClassTestProgramTarget(bdftest, bdftest.o bdffont.o,  \
		${LIBS} ${BASELIBS},   ${SYSLIBS} ${BSDLIB})


CleanTarget(bdffont.tlc y.output )
CleanTarget(bdfparse.tab.c bdfparse.tab.h bdfparse.act)
