summaryrefslogtreecommitdiff
path: root/src/testing/Makefile.am
blob: f680ad6698c5b75583c565abda100e35fdfe3232 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
INCLUDES = -I$(top_srcdir)/src/include

if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
endif

if USE_COVERAGE
  AM_CFLAGS = --coverage -O0
  XLIB = -lgcov
endif

pkgcfgdir= $(pkgdatadir)/config.d/

dist_pkgcfg_DATA = \
  testing.conf

lib_LTLIBRARIES = \
  libgnunettesting.la 

libgnunettesting_la_SOURCES = \
  testing.c  
libgnunettesting_la_LIBADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(LTLIBINTL)
libgnunettesting_la_LDFLAGS = \
 $(GN_LIB_LDFLAGS) \
 -version-info 0:1:0

bin_PROGRAMS = \
 gnunet-testing-run-service \
 gnunet-testing


gnunet_testing_run_service_SOURCES = \
 gnunet-testing-run-service.c

gnunet_testing_run_service_LDADD = \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(GN_LIBINTL)
gnunet_testing_run_service_DEPENDENCIES = \
  libgnunettesting.la

gnunet_testing_SOURCES = \
 gnunet-testing.c         
gnunet_testing_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la \
 $(GN_LIBINTL)
gnunet_testing_DEPENDENCIES = \
 libgnunettesting.la


check_PROGRAMS = \
 test_testing_portreservation \
 test_testing_peerstartup \
 test_testing_servicestartup

if ENABLE_TEST_RUN 
TESTS = \
 test_testing_portreservation \
 test_testing_peerstartup \
 test_testing_servicestartup
endif

test_testing_portreservation_SOURCES = \
 test_testing_portreservation.c
test_testing_portreservation_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_peerstartup_SOURCES = \
 test_testing_peerstartup.c
test_testing_peerstartup_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la

test_testing_servicestartup_SOURCES = \
 test_testing_servicestartup.c
test_testing_servicestartup_LDADD = \
 $(top_builddir)/src/testing/libgnunettesting.la \
 $(top_builddir)/src/util/libgnunetutil.la


EXTRA_DIST = \
  test_testing_defaults.conf