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