- const
[oweals/gnunet.git] / src / env / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 pkgcfgdir= $(pkgdatadir)/config.d/
5
6 libexecdir= $(pkglibdir)/libexec/
7
8 if MINGW
9  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
10 endif
11
12 if USE_COVERAGE
13   AM_CFLAGS = --coverage -O0
14   XLIB = -lgcov
15 endif
16
17 lib_LTLIBRARIES = libgnunetenv.la
18
19 libgnunetenv_la_SOURCES = \
20   env.c
21 libgnunetenv_la_LIBADD = \
22   $(top_builddir)/src/util/libgnunetutil.la \
23   $(GN_LIBINTL) $(XLIB)
24 libgnunetenv_la_LDFLAGS = \
25   $(GN_LIB_LDFLAGS)  $(WINFLAGS) \
26   -version-info 0:0:0
27
28 if HAVE_TESTING
29 check_PROGRAMS = \
30  test_env
31 endif
32
33 if ENABLE_TEST_RUN
34 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
35 TESTS = $(check_PROGRAMS)
36 endif
37
38 test_env_SOURCES = \
39  test_env.c
40 test_env_LDADD = \
41   libgnunetenv.la \
42   $(top_builddir)/src/testing/libgnunettesting.la \
43   $(top_builddir)/src/util/libgnunetutil.la