fixing leak
[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 if !MINGW
14 if HAVE_ESMTP
15 if HAVE_OPENSSL
16
17
18 lib_LTLIBRARIES = libmonkeyedb.la \
19                                   libmonkeyaction.la
20
21 libmonkeyedb_la_SOURCES = \
22   edb_api.c \
23   gnunet_monkey_edb.h
24
25 libmonkeyedb_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   -lsqlite3 \
28   $(GN_LIBINTL) $(XLIB)  
29
30 libmonkeyaction_la_SOURCES = \
31   action_api.c \
32   gnunet_monkey_action.h
33
34 libmonkeyaction_la_LIBADD = \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL) $(XLIB)  
37
38 bin_PROGRAMS = \
39  gnunet-monkey \
40  gnunet-service-monkey 
41
42 noinst_PROGRAMS = \
43  bug_null_pointer_exception 
44
45 gnunet_monkey_SOURCES = \
46  gdbmi.h \
47  gdbmi_alloc.c \
48  gdbmi_breakpoint.c \
49  gdbmi_connect.c \
50  gdbmi_data_man.c \
51  gdbmi_error.c \
52  gdbmi_get_free_pty.c \
53  gdbmi_get_free_vt.c \
54  gdbmi_misc.c \
55  gdbmi_parse.c \
56  gdbmi_prg_control.c \
57  gdbmi_stack_man.c \
58  gdbmi_symbol_query.c \
59  gdbmi_target_man.c \
60  gdbmi_thread.c \
61  gdbmi_var_obj.c \
62  gnunet-monkey.c \
63  mail_sender.c
64
65 gnunet_monkey_LDADD = \
66   $(top_builddir)/src/util/libgnunetutil.la \
67   $(top_builddir)/src/monkey/libmonkeyedb.la \
68   $(top_builddir)/src/monkey/libmonkeyaction.la \
69   -lesmtp \
70   $(GN_LIBINTL)
71
72
73 gnunet_service_monkey_SOURCES = \
74  gnunet-service-monkey.c         
75 gnunet_service_monkey_LDADD = \
76   $(top_builddir)/src/util/libgnunetutil.la \
77   $(GN_LIBINTL)
78
79
80 bug_null_pointer_exception:
81         gcc -g -O0 -o bug_null_pointer_exception bug_null_pointer_exception.c
82
83 check_PROGRAMS = \
84     test_monkey_edb
85     #test_gnunet_monkey 
86
87 if !DISABLE_TEST_RUN
88 # TESTS = $(check_SCRIPTS)
89 TESTS = $(check_PROGRAMS)
90 endif
91
92 test_monkey_edb_SOURCES = \
93   test_monkey_edb.c
94 test_monkey_edb_LDADD = \
95   $(top_builddir)/src/util/libgnunetutil.la \
96   $(top_builddir)/src/monkey/libmonkeyedb.la
97
98 #test_gnunet_monkey_SOURCES = \
99  #test_gnunet_monkey.c
100 #test_gnunet_monkey_LDADD = \
101   #$(top_builddir)/src/arm/libgnunetarm.la \
102   #$(top_builddir)/src/util/libgnunetutil.la  
103
104
105 check_SCRIPTS = \
106   #test_gnunet_monkey.sh \
107   #test_monkey_npe.sh
108
109 #EXTRA_DIST = \
110 #$(check_SCRIPTS) 
111 #test_gnunet_monkey_data.conf 
112
113 endif
114 endif
115 endif