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