# $Source: /usr/local/SimSoft/SoftShop/XGraph/Primitiv/Stroke/Makefile,v $
# $Revision: 1.2 $
# $Author: baum $
# $Date: 2001/11/29 15:52:24 $
#
# Login name of the user who locked the revision
# $Locker:  $
# Tag name used to checkout the file
# $Name: Release-20 $
# State assigned to revision
# $State: Exp $
#
#
# $Log: Makefile,v $
# Revision 1.2  2001/11/29 15:52:24  baum
# -In Kalender.cpp und Kalender.h Handsteuerung eingebaut
#

.SUFFIXES: .cxx .cpp

              CXX = g++
    CXXDEBUGFLAGS = -O3 -m486 -ffast-math -fomit-frame-pointer -funroll-loops

              LEX = flex -l
           LEXLIB = -lfl
             YACC = bison -y
           CCYACC = bison -y
               MV = mv
               CP = cp
               RM = rm -f

all:  OGLRoman.cpp


strokegen.h strokegen.c : strokegen.y
	$(YACC) -d strokegen.y
	$(MV) y.tab.c strokegen.c
	$(MV) y.tab.h strokegen.h

strokelex.c : strokelex.l
	$(LEX) strokelex.l
	$(MV) lex.yy.c strokelex.c

strokegen : strokegen.o strokelex.o
	$(CXX) -o $@ $(CXXDEBUGFLAGS) -I. -I.. -I ../../../include -I/usr/local/include strokegen.o strokelex.o $(LEXLIB)

OGLRoman.cpp : Roman.stroke strokegen
	./strokegen -s StrokeRoman < Roman.stroke > $@

#glut_mroman.c : MonoRoman.stroke strokegen
#	./strokegen -s glutStrokeMonoRoman < MonoRoman.stroke > $@


clean::
	$(RM) y.tab.h y.tab.c lex.yy.c gram.h gram.c lex.c
	$(RM) strokelex.c strokegen.c $(GEN_STROKES) strokegen capturexfont


