LRN: Use GNUNET_strdup() instead of strdup ()
[oweals/gnunet.git] / src / ats / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 pkgcfgdir= $(pkgdatadir)/config.d/
4
5 dist_pkgcfg_DATA = \
6   ats.conf
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = -fprofile-arcs -ftest-coverage
14 endif
15
16 lib_LTLIBRARIES = libgnunetats.la
17
18 libgnunetats_la_SOURCES = \
19   ats_api_scheduling.c \
20   ats_api_performance.c 
21
22 libgnunetats_la_LIBADD = \
23  $(top_builddir)/src/util/libgnunetutil.la
24
25 libgnunetats_la_LDFLAGS = \
26  $(GN_LIB_LDFLAGS)
27
28
29 bin_PROGRAMS = \
30  gnunet-service-ats
31
32 gnunet_service_ats_SOURCES = \
33  gnunet-service-ats.c gnunet-service-ats.h\
34  gnunet-service-ats_addresses.c gnunet-service-ats_addresses.h \
35  gnunet-service-ats_performance.c gnunet-service-ats_performance.h \
36  gnunet-service-ats_scheduling.c gnunet-service-ats_scheduling.h \
37  gnunet-service-ats_reservations.c gnunet-service-ats_reservations.h
38 gnunet_service_ats_LDADD = \
39   $(top_builddir)/src/statistics/libgnunetstatistics.la \
40   $(top_builddir)/src/util/libgnunetutil.la \
41   $(GN_LIBINTL)
42
43
44 check_PROGRAMS = \
45  test_ats_api_scheduling
46 # test_ats_api_bandwidth_consumption
47
48 if ENABLE_TEST_RUN
49 TESTS = $(check_PROGRAMS)
50 endif
51
52 test_ats_api_scheduling_SOURCES = \
53  test_ats_api_scheduling.c
54 test_ats_api_scheduling_LDADD = \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(top_builddir)/src/ats/libgnunetats.la  
57
58 #test_ats_api_bandwidth_consumption_SOURCES = \
59 # test_ats_api_bandwidth_consumption.c
60 #test_ats_api_bandwidth_consumption_LDADD = \
61 #  $(top_builddir)/src/util/libgnunetutil.la \
62 #  $(top_builddir)/src/ats/libgnunetats.la  
63
64 #test_ats_api_update_address_SOURCES = \
65 # test_ats_api_update_address.c
66 #test_ats_api_update_address_LDADD = \
67 #  $(top_builddir)/src/util/libgnunetutil.la \
68 #  $(top_builddir)/src/ats/libgnunetats.la  
69
70
71 EXTRA_DIST = \
72   ats.h \
73   test_ats_api.conf
74