From: Arvin Schnell Date: Mon, 24 Jun 2013 15:57:21 +0000 (+0200) Subject: - moved C++ examples to subdir X-Git-Tag: v0.1.5~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4fcc8d8f865787545c8b3014a45565d923db32fa;p=thirdparty%2Fsnapper.git - moved C++ examples to subdir --- diff --git a/configure.ac b/configure.ac index b4a5e72a..b66c4d1b 100644 --- a/configure.ac +++ b/configure.ac @@ -123,7 +123,8 @@ AC_OUTPUT( Makefile snapper/Makefile examples/Makefile - examples/C/Makefile + examples/c/Makefile + examples/c++-lib/Makefile dbus/Makefile server/Makefile client/Makefile diff --git a/examples/Makefile.am b/examples/Makefile.am index 526c1852..54d259bb 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -2,23 +2,5 @@ # Makefile.am for snapper/examples # -SUBDIRS = C - -INCLUDES = -I$(top_srcdir) - -LDADD = ../snapper/libsnapper.la - -noinst_PROGRAMS = List ListAll Create CmpDirs CreateTimeline SnapTest - -List_SOURCES = List.cc - -ListAll_SOURCES = ListAll.cc - -Create_SOURCES = Create.cc - -CmpDirs_SOURCES = CmpDirs.cc - -CreateTimeline_SOURCES = CreateTimeline.cc - -SnapTest_SOURCES = SnapTest.cc +SUBDIRS = c c++-lib diff --git a/examples/.gitignore b/examples/c++-lib/.gitignore similarity index 100% rename from examples/.gitignore rename to examples/c++-lib/.gitignore diff --git a/examples/CmpDirs.cc b/examples/c++-lib/CmpDirs.cc similarity index 100% rename from examples/CmpDirs.cc rename to examples/c++-lib/CmpDirs.cc diff --git a/examples/Create.cc b/examples/c++-lib/Create.cc similarity index 100% rename from examples/Create.cc rename to examples/c++-lib/Create.cc diff --git a/examples/CreateTimeline.cc b/examples/c++-lib/CreateTimeline.cc similarity index 100% rename from examples/CreateTimeline.cc rename to examples/c++-lib/CreateTimeline.cc diff --git a/examples/List.cc b/examples/c++-lib/List.cc similarity index 100% rename from examples/List.cc rename to examples/c++-lib/List.cc diff --git a/examples/ListAll.cc b/examples/c++-lib/ListAll.cc similarity index 100% rename from examples/ListAll.cc rename to examples/c++-lib/ListAll.cc diff --git a/examples/c++-lib/Makefile.am b/examples/c++-lib/Makefile.am new file mode 100644 index 00000000..a33cd11f --- /dev/null +++ b/examples/c++-lib/Makefile.am @@ -0,0 +1,22 @@ +# +# Makefile.am for snapper/examples/c++-lib +# + +INCLUDES = -I$(top_srcdir) + +LDADD = ../../snapper/libsnapper.la + +noinst_PROGRAMS = List ListAll Create CmpDirs CreateTimeline SnapTest + +List_SOURCES = List.cc + +ListAll_SOURCES = ListAll.cc + +Create_SOURCES = Create.cc + +CmpDirs_SOURCES = CmpDirs.cc + +CreateTimeline_SOURCES = CreateTimeline.cc + +SnapTest_SOURCES = SnapTest.cc + diff --git a/examples/SnapTest.cc b/examples/c++-lib/SnapTest.cc similarity index 100% rename from examples/SnapTest.cc rename to examples/c++-lib/SnapTest.cc diff --git a/examples/C/.gitignore b/examples/c/.gitignore similarity index 100% rename from examples/C/.gitignore rename to examples/c/.gitignore diff --git a/examples/C/Makefile.am b/examples/c/Makefile.am similarity index 79% rename from examples/C/Makefile.am rename to examples/c/Makefile.am index b60d0c3d..3b9d6b0c 100644 --- a/examples/C/Makefile.am +++ b/examples/c/Makefile.am @@ -1,5 +1,5 @@ # -# Makefile.am for snapper/examples/C +# Makefile.am for snapper/examples/c # INCLUDES = -I$(top_srcdir) $(DBUS_CFLAGS) diff --git a/examples/C/snapper_dbus_cli.c b/examples/c/snapper_dbus_cli.c similarity index 100% rename from examples/C/snapper_dbus_cli.c rename to examples/c/snapper_dbus_cli.c