summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am58
1 files changed, 43 insertions, 15 deletions
diff --git a/Makefile.am b/Makefile.am
index 41dbdb8..b38f0fd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = . perl_dmod
+
share_perl5dir = /opt/vyatta/share/perl5/Vyatta
completiondir = /etc/bash_completion.d
initddir = /etc/init.d
@@ -8,6 +10,7 @@ dhcphookdir = /etc/dhcp3/dhclient-exit-hooks.d
enumdir = $(datadir)/enumeration
AM_CFLAGS = -I src -Wall -I /usr/include/glib-2.0 -I /usr/lib/glib-2.0/include
+AM_CXXFLAGS = -I src -Wall -Werror
AM_YFLAGS = -d --name-prefix=yy_`basename $* .y`_
AM_LFLAGS = --prefix=yy_`basename $* .l`_ -olex.yy.c
@@ -18,32 +21,50 @@ dhcphook_SCRIPTS = scripts/vyatta-dhclient-hook
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
+src_libvyatta_cfg_la_LIBADD += -lboost_system
+src_libvyatta_cfg_la_LIBADD += -lboost_filesystem
src_libvyatta_cfg_la_LDFLAGS = -version-info 1:0:0
-src_libvyatta_cfg_la_SOURCES = src/cli_parse.y src/cli_def.l src/cli_val.l \
- src/cli_new.c src/cli_path_utils.c \
- src/common/common.c src/common/unionfs.c \
- src/cli_val_engine.c src/cli_objects.c
+src_libvyatta_cfg_la_SOURCES = src/cli_parse.y src/cli_def.l src/cli_val.l
+src_libvyatta_cfg_la_SOURCES += src/cli_new.c src/cli_path_utils.c
+src_libvyatta_cfg_la_SOURCES += src/common/common.c src/common/unionfs.c
+src_libvyatta_cfg_la_SOURCES += src/cli_val_engine.c src/cli_objects.c
+src_libvyatta_cfg_la_SOURCES += src/cstore/cstore-c.cpp
+src_libvyatta_cfg_la_SOURCES += src/cstore/cstore.cpp
+src_libvyatta_cfg_la_SOURCES += src/cstore/cstore-varref.cpp
+src_libvyatta_cfg_la_SOURCES += src/cstore/unionfs/cstore-unionfs.cpp
CLEANFILES = src/cli_parse.c src/cli_parse.h src/cli_def.c src/cli_val.c
LDADD = src/libvyatta-cfg.la
LDADD += /usr/lib/libglib-2.0.la
+vincludedir = $(includedir)/vyatta-cfg
+vinclude_HEADERS = src/cli_val.h
+vinclude_HEADERS += src/cli_val_engine.h
+vinclude_HEADERS += src/cli_path_utils.h
+
+vcincdir = $(vincludedir)/cstore
+vcinc_HEADERS = src/cstore/cstore-c.h
+vcinc_HEADERS += src/cstore/cstore.hpp
+
+vcuincdir = $(vcincdir)/unionfs
+vcuinc_HEADERS = src/cstore/unionfs/cstore-unionfs.hpp
+
sbin_PROGRAMS = src/priority
-sbin_PROGRAMS += src/my_commit2
+sbin_PROGRAMS += src/my_commit
sbin_PROGRAMS += src/exe_action
sbin_PROGRAMS += src/dump
-sbin_PROGRAMS += src/my_delete
-sbin_PROGRAMS += src/my_set
sbin_PROGRAMS += src/check_tmpl
sbin_PROGRAMS += src/net_set
+sbin_PROGRAMS += src/my_cli_bin
+sbin_PROGRAMS += src/my_cli_shell_api
src_priority_SOURCES = src/priority.c
-src_my_commit2_SOURCES = src/commit2.c
+src_my_commit_SOURCES = src/commit2.c
src_exe_action_SOURCES = src/exe_action.c
src_dump_SOURCES = src/dump_session.c
-src_my_delete_SOURCES = src/delete.c
-src_my_set_SOURCES = src/set.c
src_check_tmpl_SOURCES = src/check_tmpl.c
-src_net_set = src/net_set.c
+src_net_set_SOURCES = src/net_set.c
+src_my_cli_bin_SOURCES = src/cli_bin.cpp
+src_my_cli_shell_api_SOURCES = src/cli_shell_api.cpp
sbin_SCRIPTS = scripts/vyatta-cfg-cmd-wrapper
sbin_SCRIPTS += scripts/vyatta-validate-type.pl
@@ -55,8 +76,6 @@ sbin_SCRIPTS += scripts/vyatta-cli-expand-var.pl
sbin_SCRIPTS += scripts/vyatta-output-config.pl
sbin_SCRIPTS += scripts/vyatta-save-config.pl
sbin_SCRIPTS += scripts/vyatta-load-config.pl
-sbin_SCRIPTS += scripts/vyatta-activate-config.pl
-sbin_SCRIPTS += scripts/vyatta-comment-config.pl
sbin_SCRIPTS += scripts/vyatta-cfg-notify
sbin_SCRIPTS += scripts/vyatta-irqaffin
sbin_SCRIPTS += scripts/vyatta-auto-irqaffin.pl
@@ -68,7 +87,6 @@ share_perl5_DATA = lib/Vyatta/Config.pm
share_perl5_DATA += lib/Vyatta/Misc.pm
share_perl5_DATA += lib/Vyatta/Interface.pm
share_perl5_DATA += lib/Vyatta/TypeChecker.pm
-share_perl5_DATA += lib/Vyatta/ConfigDOMTree.pm
share_perl5_DATA += lib/Vyatta/ConfigOutput.pm
share_perl5_DATA += lib/Vyatta/ConfigLoad.pm
share_perl5_DATA += lib/Vyatta/Keepalived.pm
@@ -87,4 +105,14 @@ install-exec-hook:
mkdir -p $(DESTDIR)$(commit_run_dir)
mkdir -p $(DESTDIR)$(etc_shell_leveldir)
cd etc/shell/level; $(cpiop) $(DESTDIR)$(etc_shell_leveldir)
- cd $(DESTDIR)/opt/vyatta/sbin; ln -s my_commit2 my_commit
+ cd $(DESTDIR)/opt/vyatta/sbin; \
+ ln -sf my_cli_bin my_set; \
+ ln -sf my_cli_bin my_delete; \
+ ln -sf my_cli_bin my_activate; \
+ ln -sf my_cli_bin my_deactivate; \
+ ln -sf my_cli_bin my_rename; \
+ ln -sf my_cli_bin my_copy; \
+ ln -sf my_cli_bin my_comment; \
+ ln -sf my_cli_bin my_discard; \
+ ln -sf my_cli_bin my_move
+