Reformat example code to match libftdi style:
[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
224bc6a0 7examples_libftdipp = find_all_pp
b0c551aa
TJ
8else
9examples_libftdipp =
10endif
11
12
d94c58ff
MF
13if BUILD_EXAMPLES
14all_examples = simple \
ad397a4b
TJ
15 bitbang \
16 bitbang2 \
6db32169 17 bitbang_ft2232 \
8144d211 18 bitbang_cbus \
b0c551aa 19 find_all \
6167b919 20 serial_read \
e0aca3fa 21 baud_test \
b0c551aa 22 $(examples_libftdipp)
d94c58ff
MF
23else
24all_examples =
25endif
26bin_PROGRAMS = $(all_examples)
ad397a4b 27
898c34dd
TJ
28# Don't install the example files
29AM_LDFLAGS = -no-install
30
ad397a4b
TJ
31simple_SOURCES = simple.c
32bitbang_SOURCES = bitbang.c
33bitbang2_SOURCES = bitbang2.c
34bitbang_ft2232_SOURCES = bitbang_ft2232.c
8144d211 35bitbang_cbus_SOURCES = bitbang_cbus.c
6db32169 36find_all_SOURCES = find_all.c
6167b919 37serial_read_SOURCES = serial_read.c
e0aca3fa 38baud_test_SOURCES = baud_test.c
b0c551aa
TJ
39
40if HAVE_LIBFTDIPP
41find_all_pp_SOURCES = find_all_pp.cpp
42find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
b0c551aa 43endif
d6d1f48a
TJ
44
45EXTRA_DIST = CMakeLists.txt