Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/module.mk

    r334163c r843054c2  
    88## module.mk --
    99##
    10 ## Author           : Peter A. Buhr
     10## Author           : Richard C. Bilson
    1111## Created On       : Sat May 16 15:29:09 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Mon Jun  1 08:16:25 2015
    14 ## Update Count     : 83
     13## Last Modified On : Thu May 21 21:17:07 2015
     14## Update Count     : 2
    1515###############################################################################
    1616
    17 BUILT_SOURCES = Parser/parser.h
     17YACC=bison
     18YFLAGS=-d --debug -v
     19LEX=flex
     20LFLAGS=
    1821
    19 AM_YFLAGS = -d -t -v
    20 cfa_cpp_LDADD = ${LEXLIB}       # yywrap
    21 MAINTAINERCLEANFILES = Parser/parser.output
    22 
    23 SRC += Parser/parser.yy \
    24        Parser/lex.ll \
     22SRC += Parser/cfa.y \
     23       Parser/lex.l \
    2524       Parser/TypedefTable.cc \
    2625       Parser/ParseNode.cc \
     
    3332       Parser/parseutility.cc \
    3433       Parser/Parser.cc
     34
     35EXTRA_OUTPUT += Parser/cfa.tab.cc \
     36                Parser/cfa.tab.h \
     37                Parser/lex.yy.cc \
     38                Parser/cfa.output
     39
     40LIBS += -lfl
     41
     42Parser/Parser.cc: Parser/cfa.tab.h
     43
     44Parser/cfa.tab.cc: Parser/cfa.y
     45        $(YACC) $(YFLAGS) $< --file-prefix=Parser/cfa
     46        -mv Parser/cfa.tab.c Parser/cfa.tab.cc
     47
     48Parser/cfa.tab.h: Parser/cfa.tab.cc
     49
     50Parser/lex.yy.cc: Parser/lex.l Parser/cfa.tab.h Parser/TypedefTable.h
     51        $(LEX) $(LFLAGS) -o$@ $<
     52
     53Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h
     54        $(CXX) $(CXXFLAGS) -Wno-unused -c -o $@ $<
Note: See TracChangeset for help on using the changeset viewer.