unset XDG environment variable during testcases, as they can screw things up badly
[oweals/gnunet.git] / src / tun / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 if MINGW
5   WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
6 endif
7
8 if USE_COVERAGE
9   AM_CFLAGS = --coverage -O0
10   XLIB = -lgcov
11 endif
12
13 lib_LTLIBRARIES = libgnunettun.la
14
15 libgnunettun_la_SOURCES = \
16   tun.c \
17   regex.c
18 libgnunettun_la_LIBADD = \
19  $(top_builddir)/src/util/libgnunetutil.la $(XLIB) \
20  $(LTLIBINTL)
21 libgnunettun_la_LDFLAGS = \
22   $(GN_LIB_LDFLAGS) \
23   -version-info 1:0:1
24
25
26 check_PROGRAMS = \
27  test_tun \
28  test_regex
29
30 if ENABLE_TEST_RUN
31 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
32 TESTS = $(check_PROGRAMS)
33 endif
34
35 test_tun_SOURCES = \
36  test_tun.c
37 test_tun_LDADD = \
38  $(top_builddir)/src/util/libgnunetutil.la \
39  libgnunettun.la
40
41
42 test_regex_SOURCES = \
43  test_regex.c
44 test_regex_LDADD = \
45  $(top_builddir)/src/util/libgnunetutil.la \
46  libgnunettun.la