-initial testcase
[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
21
22 check_PROGRAMS = \
23  test_tun
24
25
26 if ENABLE_TEST_RUN
27 TESTS = $(check_PROGRAMS)
28 endif
29
30 test_tun_SOURCES = \
31  test_tun.c
32 test_tun_LDADD = \
33  $(top_builddir)/src/util/libgnunetutil.la \
34  $(top_builddir)/src/tun/libgnunettun.la