aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/portage/Makefile.am
blob: b8143ed925f80c9ee73759e9f21439538f8ffd58 (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
include $(top_srcdir)/misc/common-makefile.am

AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
DEFS= \
	-DSYSCONFDIR=\"$(sysconfdir)\" \
	-DLIBEXECDIR=\"$(libexecdir)\" \
	-DDATADIR=\"$(datadir)\" \
	-DLIBDIR=\"$(libdir)\"

libpaludisportageenvironment_la_SOURCES = \
	registration.cc \
	portage_environment.cc portage_environment.hh

libexecenvdir = $(libexecdir)/paludis/environments/portage/
libexecenv_SCRIPTS = bashrc

noinst_LTLIBRARIES = libpaludisportageenvironment.la

noinst_HEADERS = \
	portage_environment.hh

EXTRA_DIST = \
	$(BUILT_SOURCES) \
	$(libexecenv_SCRIPTS) \
	portage_environment_TEST_setup.sh \
	portage_environment_TEST.cc \
	portage_environment_TEST_cleanup.sh

TESTS = portage_environment_TEST

portage_environment_TEST_SOURCES = portage_environment_TEST.cc
portage_environment_TEST_LDADD = \
	$(top_builddir)/test/libtest.a \
	$(top_builddir)/paludis/libpaludis_@PALUDIS_PC_SLOT@.la \
	$(top_builddir)/paludis/util/libpaludisutil_@PALUDIS_PC_SLOT@.la \
	$(DYNAMIC_LD_LIBS)

portage_environment_TEST_CXXFLAGS = $(AM_CXXFLAGS) @PALUDIS_CXXFLAGS_NO_DEBUGGING@

check_PROGRAMS = $(TESTS)
check_SCRIPTS = portage_environment_TEST_setup.sh portage_environment_TEST_cleanup.sh