X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=examples%2FMakefile.am;h=bd5725361e0f260e844064a3bf10425ead41be6f;hp=ce82a62e76e7dd72fc736b54a4ba8bb1ea46e803;hb=b0c551aa781667812bbe26df2c1100f76b8de28d;hpb=818b119666360f52e42b9a95ec3949152228d835 diff --git a/examples/Makefile.am b/examples/Makefile.am index ce82a62..bd57253 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,13 +1,23 @@ 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 \ + memorytest +else +examples_libftdipp = +endif + + bin_PROGRAMS = simple \ bitbang \ bitbang2 \ bitbang_ft2232 \ bitbang_cbus \ - find_all + find_all \ + $(examples_libftdipp) # Don't install the example files AM_LDFLAGS = -no-install @@ -18,3 +28,10 @@ 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) +memorytest_SOURCES = memorytest.cpp +memorytest_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD) +endif