X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=examples%2FMakefile.am;h=bcd50eca3558b3994a102723b519dae5f16c9c1e;hb=2f6b4bb6a67d7b3a0d4b0ba216637c8bdaac728f;hp=a11640aaed9dfa3843dc37315a02d3ee9cd6542d;hpb=ad397a4bb9a5c258c8655e30f6856c0103d49a9e;p=libftdi diff --git a/examples/Makefile.am b/examples/Makefile.am index a11640a..bcd50ec 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,13 +1,36 @@ METASOURCES = AUTO -INCLUDES = -I$(top_srcdir)/src +INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/ftdipp LDADD = $(top_builddir)/src/libftdi.la + +if HAVE_LIBFTDIPP +examples_libftdipp = find_all_pp +else +examples_libftdipp = +endif + + bin_PROGRAMS = simple \ bitbang \ bitbang2 \ - bitbang_ft2232 + bitbang_ft2232 \ + bitbang_cbus \ + find_all \ + $(examples_libftdipp) + +# Don't install the example files +AM_LDFLAGS = -no-install 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 + +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