fixes to build
[oweals/gnunet.git] / src / nat / Makefile.am
1 SUBDIRS = miniupnp libnatpmp
2
3 INCLUDES = -I$(top_srcdir)/src/include
4
5 if MINGW
6   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7 endif
8
9 if USE_COVERAGE
10   AM_CFLAGS = -fprofile-arcs -ftest-coverage
11 endif
12
13 if !MINGW
14
15 lib_LTLIBRARIES = libgnunetnat.la
16
17 libgnunetnat_la_SOURCES = \
18   upnp.c upnp.h \
19   natpmp.c natpmp.h \
20   nat.c 
21
22 libgnunetnat_la_CFLAGS = \
23  -I$(top_scrdir)/include
24
25 libgnunetnat_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   $(top_builddir)/src/nat/miniupnp/libminiupnp.la \
28   $(top_builddir)/src/nat/libnatpmp/libnatpmp.la \
29   $(GN_LIBINTL) @EXT_LIBS@
30
31 libgnunetnat_la_LDFLAGS = \
32   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
33   -version-info 0:0:0
34
35 check_PROGRAMS = \
36   test-nat
37
38 if !DISABLE_TEST_RUN
39 TESTS = $(check_PROGRAMS)
40 endif
41
42 test_nat_SOURCES = \
43   test_nat.c
44
45 test_nat_LDADD = \
46  $(top_builddir)/src/nat/libgnunetnat.la \
47  $(top_builddir)/src/util/libgnunetutil.la
48
49 endif