XCOMM
XCOMM $XConsortium: Imakefile,v 5.20 94/11/21 18:41:42 kaleb Exp $
XCOMM 
XCOMM
XCOMM Copyright (c) 1989,1990, 1991 by Sun Microsystems, Inc. 
XCOMM 
XCOMM			 All Rights Reserved
XCOMM 
XCOMM Permission to use, copy, modify, and distribute this software and its 
XCOMM documentation for any purpose and without fee is hereby granted, 
XCOMM provided that the above copyright notice appear in all copies and that
XCOMM both that copyright notice and this permission notice appear in 
XCOMM supporting documentation, and that the name of Sun Microsystems,
XCOMM not be used in advertising or publicity 
XCOMM pertaining to distribution of the software without specific, written 
XCOMM prior permission.  
XCOMM 
XCOMM SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
XCOMM INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
XCOMM EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
XCOMM CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
XCOMM USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
XCOMM OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
XCOMM PERFORMANCE OF THIS SOFTWARE.

#define PassCDebugFlags

#ifndef PexFontCDebugFlags
#define PexFontCDebugFlags OptimizedCDebugFlags
#endif

#ifndef PexFontDefines
#define PexFontDefines 
#endif

.SUFFIXES: $(SUFFIXES) .src .phont

CDEBUGFLAGS = PexFontCDebugFlags
    DEFINES = PexFontDefines

     YFLAGS = -d

  LINTFLAGS = -u
       LIBS = LexLib MathLibrary

      FONTS = Roman Roman_M 

XCOMM Original sources for the font files
  FONTS_SRC = Roman.src Roman_M.src

XCOMM Binary (run-time) versions
FONTS_BINARY = Roman.phont Roman_M.phont

       SRCS = to_wfont.c lex.c
       OBJS = to_wfont.o lex.o

    TOWFONT = ./to_wfont

all:: ProgramTargetName(to_wfont) $(FONTS_BINARY)

LexFile(lex)

YaccFile(to_wfont,$(YFLAGS))

SingleProgramTarget(to_wfont,$(OBJS),$(LIBS),NullParameter)

.src.phont:
	RunProgram(TOWFONT,-o $@ $<)

clean:: 
	RemoveFiles($(FONTS_BINARY))

DependTarget()

InstallMultipleFlags($(FONTS_BINARY),$(FONTDIR)/PEX,$(INSTDATFLAGS))
