fixing segv
[oweals/gnunet.git] / src / nat / 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 = -fprofile-arcs -ftest-coverage
9 endif
10
11 if !MINGW
12
13 if HAVE_EXPERIMENTAL
14 lib_LTLIBRARIES = libgnunetnat.la
15 endif
16
17 libgnunetnat_la_SOURCES = \
18   upnp.c upnp.h \
19   upnp-commands.c upnp-commands.h \
20   upnp-discover.c upnp-discover.h \
21   upnp-igd-parse.c upnp-igd-parse.h \
22   upnp-minixml.c upnp-minixml.h \
23   upnp-reply-parse.c upnp-reply-parse.h bsdqueue.h \
24   nat.c 
25
26 libgnunetnat_la_CFLAGS = \
27  -I$(top_scrdir)/include \
28  -DDEBUG_UPNP -g -O0
29
30 libgnunetnat_la_LIBADD = \
31   $(top_builddir)/src/util/libgnunetutil.la \
32   $(GN_LIBINTL) @EXT_LIBS@ 
33
34 libgnunetnat_la_LDFLAGS = \
35   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
36   -version-info 0:0:0
37
38 if HAVE_EXPERIMENTAL
39 check_PROGRAMS = \
40   test-nat
41 endif
42
43 if !DISABLE_TEST_RUN
44 TESTS = $(check_PROGRAMS)
45 endif
46
47 test_nat_SOURCES = \
48   test_nat.c
49
50 test_nat_LDADD = \
51  $(top_builddir)/src/nat/libgnunetnat.la \
52  $(top_builddir)/src/util/libgnunetutil.la \
53  @LIBCURL@
54 endif