summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-11-11 19:15:28 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-11-11 19:15:28 -0800
commit91eb09a12a040795a2aca06de050b4507af93790 (patch)
treeec99bf559a02e8e31cd1dbeac6e08ac4ead0202f /Makefile.am
parent0f5de703f7641cf583b907c047df98b1014d5653 (diff)
downloadvyatta-cfg-91eb09a12a040795a2aca06de050b4507af93790.tar.gz
vyatta-cfg-91eb09a12a040795a2aca06de050b4507af93790.zip
continue config parser work
* add parser to package build. * add prefix, error handling, etc. * fix handling of empty and 1-char values in lex. * add API function.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c0520b9..5d30019 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -18,6 +18,12 @@ completion_SCRIPTS = etc/bash_completion.d/20vyatta-cfg
initd_SCRIPTS = etc/init.d/vyatta-router
dhcphook_SCRIPTS = scripts/vyatta-dhclient-hook
+src/cparse/cparse.cpp: src/cparse/cparse.ypp src/cparse/cparse_def.h
+ bison -p cparse_ --defines=src/cparse/cparse.h -o $@ $<
+
+src/cparse/cparse_lex.c: src/cparse/cparse_lex.l src/cparse/cparse.cpp
+ flex -P cparse_ -o $@ $<
+
lib_LTLIBRARIES = src/libvyatta-cfg.la
src_libvyatta_cfg_la_LIBADD = /usr/lib/libglib-2.0.la
src_libvyatta_cfg_la_LIBADD += /usr/lib/libgio-2.0.la
@@ -35,7 +41,11 @@ src_libvyatta_cfg_la_SOURCES += src/cstore/cstore-varref.cpp
src_libvyatta_cfg_la_SOURCES += src/cstore/unionfs/cstore-unionfs.cpp
src_libvyatta_cfg_la_SOURCES += src/cnode/cnode.cpp
src_libvyatta_cfg_la_SOURCES += src/cnode/cnode-algorithm.cpp
+src_libvyatta_cfg_la_SOURCES += src/cparse/cparse.cpp
+src_libvyatta_cfg_la_SOURCES += src/cparse/cparse_lex.c
CLEANFILES = src/cli_parse.c src/cli_parse.h src/cli_def.c src/cli_val.c
+CLEANFILES += src/cparse/cparse.cpp src/cparse/cparse.h
+CLEANFILES += src/cparse/cparse_lex.c
LDADD = src/libvyatta-cfg.la
LDADD += /usr/lib/libglib-2.0.la
@@ -53,6 +63,9 @@ vnincdir = $(vincludedir)/cnode
vninc_HEADERS = src/cnode/cnode.hpp
vninc_HEADERS += src/cnode/cnode-algorithm.hpp
+vpincdir = $(vincludedir)/cparse
+vpinc_HEADERS = src/cparse/cparse.hpp
+
sbin_PROGRAMS = src/priority
sbin_PROGRAMS += src/my_commit
sbin_PROGRAMS += src/exe_action