- add 2s for new state, reduce buffer
[oweals/gnunet.git] / src / tun / Makefile.am
1 AM_CPPFLAGS = -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   regex.c
17 libgnunettun_la_LIBADD = \
18  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
19  $(LTLIBINTL)
20 libgnunettun_la_LDFLAGS = \
21   $(GN_LIB_LDFLAGS) \
22   -version-info 1:0:1
23
24
25 check_PROGRAMS = \
26  test_tun \
27  test_regex
28
29 if ENABLE_TEST_RUN
30 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
31 TESTS = $(check_PROGRAMS)
32 endif
33
34 test_tun_SOURCES = \
35  test_tun.c
36 test_tun_LDADD = \
37  $(top_builddir)/src/util/libgnunetutil.la \
38  $(top_builddir)/src/tun/libgnunettun.la
39
40
41 test_regex_SOURCES = \
42  test_regex.c
43 test_regex_LDADD = \
44  $(top_builddir)/src/util/libgnunetutil.la \
45  $(top_builddir)/src/tun/libgnunettun.la