- changes
[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 libgnunettun_la_LDFLAGS = \
19   $(GN_LIB_LDFLAGS) \
20   -version-info 0:0:0
21
22
23 check_PROGRAMS = \
24  test_tun
25
26
27 if ENABLE_TEST_RUN
28 TESTS = $(check_PROGRAMS)
29 endif
30
31 test_tun_SOURCES = \
32  test_tun.c
33 test_tun_LDADD = \
34  $(top_builddir)/src/util/libgnunetutil.la \
35  $(top_builddir)/src/tun/libgnunettun.la