Added C++ examples to the build process
[libftdi] / examples / Makefile.am
1 METASOURCES = AUTO
2 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/ftdipp
3 LDADD = $(top_builddir)/src/libftdi.la
4
5
6 if HAVE_LIBFTDIPP
7 examples_libftdipp = find_all_pp \
8         memorytest
9 else
10 examples_libftdipp =
11 endif
12
13
14 bin_PROGRAMS = simple \
15         bitbang       \
16         bitbang2      \
17         bitbang_ft2232 \
18         bitbang_cbus \
19         find_all \
20         $(examples_libftdipp)
21
22 # Don't install the example files
23 AM_LDFLAGS = -no-install
24
25 simple_SOURCES = simple.c
26 bitbang_SOURCES = bitbang.c
27 bitbang2_SOURCES = bitbang2.c
28 bitbang_ft2232_SOURCES = bitbang_ft2232.c
29 bitbang_cbus_SOURCES = bitbang_cbus.c
30 find_all_SOURCES = find_all.c
31
32 if HAVE_LIBFTDIPP
33 find_all_pp_SOURCES = find_all_pp.cpp
34 find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
35 memorytest_SOURCES = memorytest.cpp
36 memorytest_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
37 endif