Adding "Monkey", GNUnet module for automatic debugging. Experimental code so far.
[oweals/gnunet.git] / src / monkey / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12
13 lib_LTLIBRARIES = libgnunetmonkey.la
14
15 libgnunetmonkey_la_SOURCES = \
16   monkey_api.c monkey.h
17 libgnunetmonkey_la_LIBADD = \
18   $(top_builddir)/src/util/libgnunetutil.la \
19   -lesmtp
20 libgnunetmonkey_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
22   -version-info 0:0:0
23
24
25 bin_PROGRAMS = \
26  gnunet-monkey \
27  gnunet-service-monkey \
28  bug_null_pointer_exception \
29  mail_sender
30
31 gnunet_monkey_SOURCES = \
32  mi_gdb.h \
33  alloc.c \
34  breakpoint.c \
35  connect.c \
36  cpp_int.cc \
37  data_man.c \
38  error.c \
39  get_free_pty.c \
40  get_free_vt.c \
41  gnunet-monkey.c \
42  misc.c \
43  parse.c \
44  prg_control.c \
45  stack_man.c \
46  symbol_query.c \
47  target_man.c \
48  thread.c \
49  var_obj.c
50             
51 gnunet_monkey_LDADD = \
52   $(top_builddir)/src/monkey/libgnunetmonkey.la \
53   $(top_builddir)/src/util/libgnunetutil.la \
54   $(GN_LIBINTL)
55
56
57
58 gnunet_service_monkey_SOURCES = \
59  gnunet-service-monkey.c         
60 gnunet_service_monkey_LDADD = \
61   $(top_builddir)/src/monkey/libgnunetmonkey.la \
62   $(top_builddir)/src/util/libgnunetutil.la \
63   $(GN_LIBINTL)
64
65
66 mail_sender_SOURCES = \
67         mail_sender.c
68 mail_sender_LDADD = \
69         $(top_builddir)/src/monkey/libgnunetmonkey.la \
70         $(top_builddir)/src/util/libgnunetutil.la \
71         $(GN_LIBINTL)
72
73 bug_null_pointer_exception_SOURCES = \
74         bug_null_pointer_exception.c
75 bug_null_pointer_exception_LDADD = \
76         $(top_builddir)/src/monkey/libgnunetmonkey.la \
77         $(top_builddir)/src/util/libgnunetutil.la \
78         $(GN_LIBINTL)
79
80
81         
82 check_PROGRAMS = \
83  test_monkey_api
84
85 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
86
87 test_monkey_api_SOURCES = \
88  test_monkey_api.c
89 test_monkey_api_LDADD = \
90   $(top_builddir)/src/monkey/libgnunetmonkey.la \
91   $(top_builddir)/src/util/libgnunetutil.la  
92
93 check_SCRIPTS = \
94   test_gnunet_monkey.sh
95
96 EXTRA_DIST = \
97   test_monkey_api_data.conf \
98   $(check_SCRIPTS) 
99
100