-fix
[oweals/gnunet.git] / src / tun / 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 = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12 lib_LTLIBRARIES = libgnunettun.la
13
14 libgnunettun_la_SOURCES = \
15   tun.c
16 libgnunettun_la_LIBADD = \
17  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
18  $(LTLIBINTL)
19 libgnunettun_la_LDFLAGS = \
20   $(GN_LIB_LDFLAGS) \
21   -version-info 0:0:0
22
23
24 check_PROGRAMS = \
25  test_tun
26
27
28 if ENABLE_TEST_RUN
29 TESTS = $(check_PROGRAMS)
30 endif
31
32 test_tun_SOURCES = \
33  test_tun.c
34 test_tun_LDADD = \
35  $(top_builddir)/src/util/libgnunetutil.la \
36  $(top_builddir)/src/tun/libgnunettun.la