LocalCGeneratedFiles(y.tab.c y.tab.h lex.yy.c)

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

lex.yy.c: pervasives.l y.tab.h
    $(LEX) pervasives.l

MAIN = perv_gen

MAIN_FILES[] =
    y.tab
    lex.yy
    types
    pervgen-c
    op
    pervgen-ocaml
    ocamlcode
    ccode
    ../util/util

CProgram($(MAIN), $(MAIN_FILES))
