From 3f4c09183f64891da5888035c7fdff800791c80f Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 5 Jun 2003 18:10:44 +0000 Subject: [PATCH] Moved sample code to examples dir --- contrib/ldapc++/Makefile.am | 4 ++-- contrib/ldapc++/configure.in | 6 +++--- contrib/ldapc++/examples/Makefile.am | 8 ++++++++ contrib/ldapc++/{src => examples}/main.cpp | 0 contrib/ldapc++/src/Makefile.am | 6 ------ 5 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 contrib/ldapc++/examples/Makefile.am rename contrib/ldapc++/{src => examples}/main.cpp (100%) diff --git a/contrib/ldapc++/Makefile.am b/contrib/ldapc++/Makefile.am index d042552ff7..85c1b008fd 100644 --- a/contrib/ldapc++/Makefile.am +++ b/contrib/ldapc++/Makefile.am @@ -1,8 +1,8 @@ ## -# Copyright 2000, OpenLDAP Foundation, All Rights Reserved. +# Copyright 2000-2003, OpenLDAP Foundation, All Rights Reserved. # COPYING RESTRICTIONS APPLY, see COPYRIGHT file ## EXTRA_DIST = BUGS -SUBDIRS = src +SUBDIRS = src examples diff --git a/contrib/ldapc++/configure.in b/contrib/ldapc++/configure.in index a622bf759e..f303f743b5 100644 --- a/contrib/ldapc++/configure.in +++ b/contrib/ldapc++/configure.in @@ -1,4 +1,4 @@ -dnl Copyright 2000, OpenLDAP Foundation, All Rights Reserved. +dnl Copyright 2000-2003, OpenLDAP Foundation, All Rights Reserved. dnl COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -8,7 +8,7 @@ dnl disable config.cache dnl define([AC_CACHE_LOAD], ) dnl define([AC_CACHE_SAVE], ) -AC_INIT(src/main.cpp) +AC_INIT(examples/main.cpp) AM_INIT_AUTOMAKE(main, 0.0.1) AM_CONFIG_HEADER(src/config.h) @@ -91,4 +91,4 @@ dnl Checks for typedefs, structures, and compiler characteristics. dnl Checks for library functions. -AC_OUTPUT(Makefile src/Makefile) +AC_OUTPUT(Makefile src/Makefile examples/Makefile) diff --git a/contrib/ldapc++/examples/Makefile.am b/contrib/ldapc++/examples/Makefile.am new file mode 100644 index 0000000000..3e3a6b82d4 --- /dev/null +++ b/contrib/ldapc++/examples/Makefile.am @@ -0,0 +1,8 @@ +## +# Copyright 2003, OpenLDAP Foundation, All Rights Reserved. +# COPYING RESTRICTIONS APPLY, see COPYRIGHT file +## +noinst_PROGRAMS = main + +main_SOURCES = main.cpp +main_LDADD = ../src/libldapcpp.la diff --git a/contrib/ldapc++/src/main.cpp b/contrib/ldapc++/examples/main.cpp similarity index 100% rename from contrib/ldapc++/src/main.cpp rename to contrib/ldapc++/examples/main.cpp diff --git a/contrib/ldapc++/src/Makefile.am b/contrib/ldapc++/src/Makefile.am index d9e85faa3a..20a594b27c 100644 --- a/contrib/ldapc++/src/Makefile.am +++ b/contrib/ldapc++/src/Makefile.am @@ -80,10 +80,4 @@ noinst_HEADERS = LDAPAddRequest.h \ libldapcpp_la_LIBADD = -lldap -llber libldapcpp_la_LDFLAGS = -version-info 0:1:0 - -noinst_PROGRAMS = main - -main_SOURCES = main.cpp -main_LDADD = ./libldapcpp.la - -- 2.39.5