Enable out-of-source build
[libmodbus.git] / tests / Makefile.am
blob4f18f34cfb2de1b3784b0169097641c06f823dd8
1 EXTRA_DIST = README
3 noinst_PROGRAMS = \
4         bandwidth-server-one \
5         bandwidth-server-many-up \
6         bandwidth-client \
7         random-test-server \
8         random-test-client \
9         unit-test-server \
10         unit-test-client \
11         version
13 common_ldflags = \
14         $(top_builddir)/src/libmodbus.la
16 bandwidth_server_one_SOURCES = bandwidth-server-one.c
17 bandwidth_server_one_LDADD = $(common_ldflags)
19 bandwidth_server_many_up_SOURCES = bandwidth-server-many-up.c
20 bandwidth_server_many_up_LDADD = $(common_ldflags)
22 bandwidth_client_SOURCES = bandwidth-client.c
23 bandwidth_client_LDADD = $(common_ldflags)
25 random_test_server_SOURCES = random-test-server.c
26 random_test_server_LDADD = $(common_ldflags)
28 random_test_client_SOURCES = random-test-client.c
29 random_test_client_LDADD = $(common_ldflags)
31 unit_test_server_SOURCES = unit-test-server.c unit-test.h
32 unit_test_server_LDADD = $(common_ldflags)
34 unit_test_client_SOURCES = unit-test-client.c unit-test.h
35 unit_test_client_LDADD = $(common_ldflags)
37 version_SOURCES = version.c
38 version_LDADD = $(common_ldflags)
40 AM_CPPFLAGS = \
41     -include $(top_builddir)/config.h \
42     -DSYSCONFDIR=\""$(sysconfdir)"\" \
43     -DLIBEXECDIR=\""$(libexecdir)"\" \
44     -I${top_srcdir}/src \
45     -I${top_builddir}/src
47 AM_CFLAGS = ${my_CFLAGS}
49 CLEANFILES = *~