bb8e5f509e6f644b0de02678d4f75ea1bd3a1160
[oweals/gnunet.git] / src / nse / 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 = libgnunetnse.la
14
15 libgnunetnse_la_SOURCES = \
16   nse_api.c nse.h
17 libgnunetnse_la_LIBADD = \
18   $(top_builddir)/src/util/libgnunetutil.la \
19   $(GN_LIBINTL) $(XLIB)
20 libgnunetnse_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
22   -version-info 0:0:0
23
24
25 bin_PROGRAMS = \
26  gnunet-service-nse
27
28 # gnunet_nse_SOURCES = \
29 # gnunet-nse.c         
30 # gnunet_nse_LDADD = \
31 #  $(top_builddir)/src/nse/libgnunetnse.la \
32 #  $(top_builddir)/src/util/libgnunetutil.la \
33 #  $(GN_LIBINTL)
34 # gnunet_nse_DEPENDENCIES = \
35 #  libgnunetnse.la                               
36
37 gnunet_service_nse_SOURCES = \
38  gnunet-service-nse.c         
39 gnunet_service_nse_LDADD = \
40   $(top_builddir)/src/nse/libgnunetnse.la \
41   $(top_builddir)/src/util/libgnunetutil.la \
42   $(top_builddir)/src/core/libgnunetcore.la \
43   $(GN_LIBINTL)
44 gnunet_service_nse_DEPENDENCIES = \
45   libgnunetnse.la                                
46
47 check_PROGRAMS = \
48  test_nse_api
49
50 if ENABLE_TEST_RUN
51 TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
52 endif
53
54 test_nse_api_SOURCES = \
55  test_nse_api.c
56 test_nse_api_LDADD = \
57   $(top_builddir)/src/nse/libgnunetnse.la \
58   $(top_builddir)/src/util/libgnunetutil.la 
59
60
61 EXTRA_DIST = \
62   test_nse_api_data.conf \
63   $(check_SCRIPTS) 
64
65