libftdi-git Archives

Subject: port libftdi to libusb-1.0 branch, master, updated. v0.17-34-gd94c58f

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 25 Jun 2010 12:43:39 +0200 (CEST)
The branch, master has been updated
       via  d94c58ffc3a3b757fe4d9af61f6d7f887180e0d4 (commit)
      from  29b1dfd985a87af8d51034212284f684eb35bc48 (commit)


- Log -----------------------------------------------------------------
commit d94c58ffc3a3b757fe4d9af61f6d7f887180e0d4
Author: Mike Frysinger <vapier@xxxxxxxxxx>
Date:   Tue Jun 22 18:46:09 2010 -0400

    libftdi: add a --without-examples configure flag
    
    There's a few places where I'm only concerned with building the libftdi
    library (for integrating it into a JTAG program), so the examples are just
    noise to me.  As such, add an --without-examples configure flag so people
    can easily disable the subdir.  The default is unchanged -- examples are
    still compiled & installed.
    
    Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>

-----------------------------------------------------------------------

Summary of changes:
 configure.in         |    4 ++++
 examples/Makefile.am |    7 ++++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/configure.in b/configure.in
index 9ddcc4e..e9d7b14 100644
--- a/configure.in
+++ b/configure.in
@@ -38,6 +38,10 @@ AC_ARG_WITH(async-mode,
 ])
 AC_SUBST(ENABLE_ASYNC_MODE)
 
+AC_ARG_WITH(examples,
+  AS_HELP_STRING([--without-examples], [disable example programs]))
+AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$with_examples" != "xno"])
+
 LIBFTDI_MODULES=
 LIBFTDI_MODULES_PKGCONFIG=
 
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 820599a..f45c7e5 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -10,7 +10,8 @@ examples_libftdipp =
 endif
 
 
-bin_PROGRAMS = simple \
+if BUILD_EXAMPLES
+all_examples = simple \
        bitbang       \
        bitbang2      \
        bitbang_ft2232 \
@@ -19,6 +20,10 @@ bin_PROGRAMS = simple \
        serial_read \
        baud_test \
        $(examples_libftdipp)
+else
+all_examples =
+endif
+bin_PROGRAMS = $(all_examples)
 
 # Don't install the example files
 AM_LDFLAGS = -no-install


hooks/post-receive
-- 
port libftdi to libusb-1.0

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • port libftdi to libusb-1.0 branch, master, updated. v0.17-34-gd94c58f, libftdi-git <=