Reformat example code to match libftdi style:
[libftdi] / examples / Makefile.am
... / ...
CommitLineData
1METASOURCES = AUTO
2INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/ftdipp
3LDADD = $(top_builddir)/src/libftdi.la
4
5
6if HAVE_LIBFTDIPP
7examples_libftdipp = find_all_pp
8else
9examples_libftdipp =
10endif
11
12
13if BUILD_EXAMPLES
14all_examples = simple \
15 bitbang \
16 bitbang2 \
17 bitbang_ft2232 \
18 bitbang_cbus \
19 find_all \
20 serial_read \
21 baud_test \
22 $(examples_libftdipp)
23else
24all_examples =
25endif
26bin_PROGRAMS = $(all_examples)
27
28# Don't install the example files
29AM_LDFLAGS = -no-install
30
31simple_SOURCES = simple.c
32bitbang_SOURCES = bitbang.c
33bitbang2_SOURCES = bitbang2.c
34bitbang_ft2232_SOURCES = bitbang_ft2232.c
35bitbang_cbus_SOURCES = bitbang_cbus.c
36find_all_SOURCES = find_all.c
37serial_read_SOURCES = serial_read.c
38baud_test_SOURCES = baud_test.c
39
40if HAVE_LIBFTDIPP
41find_all_pp_SOURCES = find_all_pp.cpp
42find_all_pp_LDADD = $(top_builddir)/ftdipp/libftdipp.la $(LDADD)
43endif
44
45EXTRA_DIST = CMakeLists.txt