X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=examples%2FMakefile.am;h=f45c7e5ad0c1ede1fcd118e290036415bd64839d;hp=50820c299550c6c9d77fed88ee875d6d8fdff49c;hb=05c2e40a3c720c63a75d36a33d0d5de0677f8f57;hpb=6db32169ce93f0ec8e5a9b2c299760509ff1ef44 diff --git a/examples/Makefile.am b/examples/Makefile.am index 50820c2..f45c7e5 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,12 +1,29 @@ METASOURCES = AUTO -INCLUDES = -I$(top_srcdir)/src +INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/ftdipp LDADD = $(top_builddir)/src/libftdi.la -bin_PROGRAMS = simple \ + +if HAVE_LIBFTDIPP +examples_libftdipp = find_all_pp +else +examples_libftdipp = +endif + + +if BUILD_EXAMPLES +all_examples = simple \ bitbang \ bitbang2 \ bitbang_ft2232 \ - find_all + bitbang_cbus \ + find_all \ + serial_read \ + baud_test \ + $(examples_libftdipp) +else +all_examples = +endif +bin_PROGRAMS = $(all_examples) # Don't install the example files AM_LDFLAGS = -no-install @@ -15,4 +32,14 @@ simple_SOURCES = simple.c bitbang_SOURCES = bitbang.c bitbang2_SOURCES = bitbang2.c bitbang_ft2232_SOURCES = bitbang_ft2232.c +bitbang_cbus_SOURCES = bitbang_cbus.c find_all_SOURCES = find_all.c +serial_read_SOURCES = serial_read.c +baud_test_SOURCES = baud_test.c + +if HAVE_LIBFTDIPP +find_all_pp_SOURCES = find_all_pp.cpp +find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD) +endif + +EXTRA_DIST = CMakeLists.txt