examples: add sio example
[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 else
9 examples_libftdipp =
10 endif
11
12
13 bin_PROGRAMS = simple \
14         bitbang       \
15         bitbang2      \
16         bitbang_ft2232 \
17         bitbang_cbus \
18         find_all \
19         sio \
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 sio_SOURCES = sio.c
32
33 if HAVE_LIBFTDIPP
34 find_all_pp_SOURCES = find_all_pp.cpp
35 find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
36 endif
37
38 EXTRA_DIST = CMakeLists.txt