aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/paludis/environment/default/Makefile.am
blob: 9ca00d0675d5ae20dce9282eba3091464214ca3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
MAINTAINERCLEANFILES = Makefile.in
AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
DEFS= \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBDIR=\"$(libdir)\"

libpaludisdefaultenvironment_la_SOURCES = \
	default_config.cc      default_config.hh \
	default_environment.cc default_environment.hh

libpaludisdefaultenvironment_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0
libpaludisdefaultenvironment_la_LIBADD = \
	$(top_builddir)/paludis/util/libpaludisutil.la \
	$(top_builddir)/paludis/libpaludis.la

lib_LTLIBRARIES = libpaludisdefaultenvironment.la
paludis_environment_default_includedir = $(includedir)/paludis/environment/test
paludis_environment_default_include_HEADERS = default_config.hh default_environment.hh

EXTRA_DIST = \
	default_environment_TEST_setup.sh \
	default_environment_TEST.cc \
	default_environment_TEST_cleanup.sh

TESTS = default_environment_TEST

TESTS_ENVIRONMENT = env \
	PALUDIS_EBUILD_DIR="$(top_srcdir)/ebuild/" \
	PALUDIS_SKIP_CONFIG="yes" \
	PALUDIS_REPOSITORY_SO_DIR="$(top_builddir)/paludis/repositories" \
	TEST_SCRIPT_DIR="$(srcdir)/" \
	bash $(top_srcdir)/test/run_test.sh

check_PROGRAMS = $(TESTS)
check_SCRIPTS = default_environment_TEST_setup.sh default_environment_TEST_cleanup.sh

default_environment_TEST_SOURCES = default_environment_TEST.cc
default_environment_TEST_LDADD = \
	$(top_builddir)/paludis/util/test_extras.o \
	$(top_builddir)/test/libtest.a \
	$(top_builddir)/paludis/libpaludis.la \
	$(top_builddir)/paludis/util/libpaludisutil.la \
	libpaludisdefaultenvironment.la