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