Support normal socket (non-NSP) name lookups in resolver (for testing)
[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 TESTS = $(check_PROGRAMS)
31 endif
32
33 test_tun_SOURCES = \
34  test_tun.c
35 test_tun_LDADD = \
36  $(top_builddir)/src/util/libgnunetutil.la \
37  $(top_builddir)/src/tun/libgnunettun.la
38
39
40 test_regex_SOURCES = \
41  test_regex.c
42 test_regex_LDADD = \
43  $(top_builddir)/src/util/libgnunetutil.la \
44  $(top_builddir)/src/tun/libgnunettun.la