diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-05 16:29:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-05 16:29:23 +0200 |
commit | 4974b4763bd60eb875f93a71dbe2fe82ecfed9fc (patch) | |
tree | 9353fb3fec3fa5f77f1faaf6da8185e3d006e7ba /tests/parser/makefile | |
parent | e2299f6d95ba3264072d6ddc49f153ad73fd9d24 (diff) |
Add semantic graph and traversal mechanism
The parser now builds the semantic graph.
Diffstat (limited to 'tests/parser/makefile')
-rw-r--r-- | tests/parser/makefile | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/tests/parser/makefile b/tests/parser/makefile index 526b529..a43af9a 100644 --- a/tests/parser/makefile +++ b/tests/parser/makefile @@ -21,9 +21,33 @@ clean := $(out_base)/.clean # Build. # -$(driver): $(cxx_obj) $(out_root)/cli/lexer.o $(out_root)/cli/parser.o +# Import. +# +$(call import,\ + $(scf_root)/import/libcutl/stub.make,\ + l: cutl.l,cpp-options: cutl.l.cpp-options) -$(cxx_obj) $(cxx_od): cpp_options := -I$(src_base) -I$(src_root) +# Build. +# +cli_obj := \ +lexer.o \ +parser.o \ +semantics/class.o \ +semantics/elements.o \ +semantics/expression.o \ +semantics/namespace.o \ +semantics/option.o \ +semantics/unit.o \ +traversal/class.o \ +traversal/elements.o \ +traversal/namespace.o \ +traversal/option.o \ +traversal/unit.o + +$(driver): $(cxx_obj) $(addprefix $(out_root)/cli/,$(cli_obj)) $(cutl.l) + +$(cxx_obj) $(cxx_od): cpp_options := -I$(src_base) -I$(src_root)/cli +$(cxx_obj) $(cxx_od): $(cutl.l.cpp-options) $(call include-dep,$(cxx_od)) |