(no commit message)
[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
15 lib_LTLIBRARIES = libgnunetmonkey.la
16
17 libgnunetmonkey_la_SOURCES = \
18   monkey_api.c monkey.h
19 libgnunetmonkey_la_LIBADD = \
20   $(top_builddir)/src/util/libgnunetutil.la \
21   -lesmtp
22 libgnunetmonkey_la_LDFLAGS = \
23   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
24   -version-info 0:0:0
25
26
27 bin_PROGRAMS = \
28  gnunet-monkey \
29  gnunet-service-monkey \
30  bug_null_pointer_exception \
31  mail_sender
32
33 gnunet_monkey_SOURCES = \
34  mi_gdb.h \
35  alloc.c \
36  breakpoint.c \
37  connect.c \
38  cpp_int.cc \
39  data_man.c \
40  error.c \
41  get_free_pty.c \
42  get_free_vt.c \
43  gnunet-monkey.c \
44  misc.c \
45  parse.c \
46  prg_control.c \
47  stack_man.c \
48  symbol_query.c \
49  target_man.c \
50  thread.c \
51  var_obj.c
52             
53 gnunet_monkey_LDADD = \
54   $(top_builddir)/src/monkey/libgnunetmonkey.la \
55   $(top_builddir)/src/util/libgnunetutil.la \
56   $(GN_LIBINTL)
57
58
59
60 gnunet_service_monkey_SOURCES = \
61  gnunet-service-monkey.c         
62 gnunet_service_monkey_LDADD = \
63   $(top_builddir)/src/monkey/libgnunetmonkey.la \
64   $(top_builddir)/src/util/libgnunetutil.la \
65   $(GN_LIBINTL)
66
67
68 mail_sender_SOURCES = \
69         mail_sender.c
70 mail_sender_LDADD = \
71         $(top_builddir)/src/monkey/libgnunetmonkey.la \
72         $(top_builddir)/src/util/libgnunetutil.la \
73         $(GN_LIBINTL)
74
75 bug_null_pointer_exception_SOURCES = \
76         bug_null_pointer_exception.c
77 bug_null_pointer_exception_LDADD = \
78         $(top_builddir)/src/monkey/libgnunetmonkey.la \
79         $(top_builddir)/src/util/libgnunetutil.la \
80         $(GN_LIBINTL)
81
82
83         
84 check_PROGRAMS = \
85  test_monkey_api
86
87 #TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
88
89 test_monkey_api_SOURCES = \
90  test_monkey_api.c
91 test_monkey_api_LDADD = \
92   $(top_builddir)/src/monkey/libgnunetmonkey.la \
93   $(top_builddir)/src/util/libgnunetutil.la  
94
95 check_SCRIPTS = \
96   test_gnunet_monkey.sh
97
98 EXTRA_DIST = \
99   test_monkey_api_data.conf \
100   $(check_SCRIPTS) 
101
102 endif
103