the big NAT change
[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   nat.c 
15
16 libgnunetnat_la_LIBADD = \
17   $(top_builddir)/src/util/libgnunetutil.la \
18   $(GN_LIBINTL) @EXT_LIBS@ 
19
20 libgnunetnat_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS) $(WINFLAGS) \
22   -version-info 0:0:0           
23
24 check_PROGRAMS = \
25   test-nat
26
27 if ENABLE_TEST_RUN
28  TESTS = $(check_PROGRAMS)
29 endif
30
31 test_nat_SOURCES = \
32   test_nat.c
33
34 test_nat_LDADD = \
35  $(top_builddir)/src/nat/libgnunetnat.la \
36  $(top_builddir)/src/util/libgnunetutil.la \
37  @LIBCURL@
38
39 EXTRA_DIST = \
40  test_nat_data.conf