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