SENSOR service integration
[oweals/gnunet.git] / src / sensor / Makefile.am
1 AM_CPPFLAGS = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 libexecdir= $(pkglibdir)/libexec/
6
7 dist_pkgcfg_DATA = \
8   sensor.conf
9
10 if MINGW
11  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
12 endif
13
14 if USE_COVERAGE
15   AM_CFLAGS = -fprofile-arcs -ftest-coverage
16 endif
17
18 bin_PROGRAMS = \
19  gnunet-sensor 
20
21 libexec_PROGRAMS = \
22  gnunet-service-sensor
23
24 lib_LTLIBRARIES = \
25  libgnunetsensor.la
26
27 gnunet_sensor_SOURCES = \
28  gnunet-sensor.c         
29 gnunet_sensor_LDADD = \
30   $(top_builddir)/src/util/libgnunetutil.la \
31   libgnunetsensor.la \
32   $(GN_LIBINTL)
33
34 gnunet_service_sensor_SOURCES = \
35  gnunet-service-sensor.c         
36 gnunet_service_sensor_LDADD = \
37   $(top_builddir)/src/util/libgnunetutil.la \
38   $(GN_LIBINTL)
39
40 libgnunetsensor_la_SOURCES = \
41   sensor_api.c 
42 libgnunetsensor_la_LIBADD = \
43   $(top_builddir)/src/util/libgnunetutil.la
44 libgnunetsensor_la_LDFLAGS = \
45   $(GNUNET_LDFLAGS)
46
47 check_PROGRAMS = \
48  test_sensor_api
49
50 if ENABLE_TEST_RUN
51 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
52 TESTS = $(check_PROGRAMS)
53 endif
54
55 test_sensor_api_SOURCES = \
56  test_sensor_api.c
57 test_sensor_api_LDADD = \
58   $(top_builddir)/src/util/libgnunetutil.la  
59