source: translator/Parser/module.mk @ 0b8cd722

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since 0b8cd722 was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 1.0 KB
RevLine 
[51b7345]1###
2### This file is part of the Cforall project
3###
4### $Id: module.mk,v 1.12 2005/08/30 19:11:40 rcbilson Exp $
5###
6
7YACC=bison
8YFLAGS=-d --debug -v
9LEX=flex
10LFLAGS=
11
12SRC += Parser/cfa.y \
13       Parser/lex.l \
14       Parser/TypedefTable.cc \
15       Parser/ParseNode.cc \
16       Parser/DeclarationNode.cc \
17       Parser/ExpressionNode.cc \
18       Parser/StatementNode.cc \
19       Parser/InitializerNode.cc \
20       Parser/TypeData.cc \
21       Parser/LinkageSpec.cc \
22       Parser/parseutility.cc \
23       Parser/Parser.cc
24
25EXTRA_OUTPUT += Parser/cfa.tab.cc \
26                Parser/cfa.tab.h \
27                Parser/lex.yy.cc \
28                Parser/cfa.output
29
30LIBS += -lfl
31
32Parser/Parser.cc: Parser/cfa.tab.h
33
34Parser/cfa.tab.cc: Parser/cfa.y
35        $(YACC) $(YFLAGS) $< --file-prefix=Parser/cfa
36        -mv Parser/cfa.tab.c Parser/cfa.tab.cc
37
38Parser/cfa.tab.h: Parser/cfa.tab.cc
39
40Parser/lex.yy.cc: Parser/lex.l Parser/cfa.tab.h Parser/TypedefTable.h
41        $(LEX) $(LFLAGS) -o$@ $<
42
43Parser/lex.yy.o: Parser/lex.yy.cc Parser/ParseNode.h
44        $(CXX) $(CXXFLAGS) -Wno-unused -c -o $@ $<
Note: See TracBrowser for help on using the repository browser.