aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/gentoo/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/repositories/gentoo/Makefile.am')
-rw-r--r--paludis/repositories/gentoo/Makefile.am263
1 files changed, 263 insertions, 0 deletions
diff --git a/paludis/repositories/gentoo/Makefile.am b/paludis/repositories/gentoo/Makefile.am
new file mode 100644
index 000000000..7d8f1662d
--- /dev/null
+++ b/paludis/repositories/gentoo/Makefile.am
@@ -0,0 +1,263 @@
+SUBDIRS = ebuild .
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
+DISTCLEANFILES = \
+ portage_repository-sr.hh portage_repository-sr.cc \
+ glsa-sr.hh glsa-sr.cc \
+ portage_repository_params-sr.hh portage_repository_params-sr.cc \
+ vdb_repository-sr.hh vdb_repository-sr.cc
+MAINTAINERCLEANFILES = Makefile.in
+
+AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
+DEFS= \
+ -DSYSCONFDIR=\"$(sysconfdir)\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DLIBDIR=\"$(libdir)\"
+
+paludis_repositories_libdir = $(libdir)/paludis/repositories
+
+if MONOLITHIC
+
+if ENABLE_GLSA
+
+noinst_LTLIBRARIES = \
+ libpaludisgentoorepository.la \
+ libpaludisgentoorepositoryxmlthings.la
+
+else
+
+noinst_LTLIBRARIES = \
+ libpaludisgentoorepository.la
+
+endif
+
+else
+
+paludis_repositories_lib_LTLIBRARIES = libpaludisgentoorepository.la
+
+if ENABLE_GLSA
+
+lib_LTLIBRARIES = libpaludisgentoorepositoryxmlthings.la
+
+endif
+
+endif
+
+paludis_repositories_gentoo_includedir = $(includedir)/paludis/repositories/gentoo/
+libpaludisgentoorepository_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0
+
+paludis_repositories_gentoo_include_HEADERS = \
+ glsa.hh \
+ glsa-sr.hh \
+ portage_repository-sr.hh \
+ portage_repository.hh \
+ portage_repository_profile_file.hh \
+ portage_repository_profile.hh \
+ portage_repository_exceptions.hh \
+ portage_repository_news.hh \
+ portage_repository_params.hh \
+ portage_repository_params-sr.hh \
+ portage_repository_sets.hh \
+ portage_repository_entries.hh \
+ ebuild_entries.hh \
+ ebuild_flat_metadata_cache.hh \
+ eclass_mtimes.hh \
+ make_ebuild_repository.hh \
+ use_desc.hh \
+ portage_virtual_version_metadata.hh \
+ vdb_repository.hh \
+ vdb_version_metadata.hh \
+ vdb_repository-sr.hh
+
+libpaludisgentoorepository_la_SOURCES = \
+ glsa.cc \
+ portage_repository.cc \
+ portage_repository_profile_file.cc \
+ portage_repository_profile.cc \
+ portage_repository_exceptions.cc \
+ portage_repository_news.cc \
+ portage_repository_sets.cc \
+ portage_repository_entries.cc \
+ ebuild_entries.cc \
+ ebuild_flat_metadata_cache.cc \
+ eclass_mtimes.cc \
+ portage_repository_params.cc \
+ make_ebuild_repository.cc \
+ use_desc.cc \
+ portage_virtual_version_metadata.cc \
+ registration.cc \
+ vdb_repository.cc \
+ vdb_version_metadata.cc
+ $(paludis_repositories_gentoo_include_HEADERS)
+
+if MONOLITHIC
+
+libpaludisgentoorepository_la_LIBADD = \
+ libpaludisgentoorepositoryxmlthings.la \
+ $(DYNAMIC_LD_LIBS)
+
+else
+
+libpaludisgentoorepository_la_LIBADD = \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(DYNAMIC_LD_LIBS)
+
+endif
+
+portage_repository_TEST_SOURCES = portage_repository_TEST.cc
+
+if MONOLITHIC
+
+portage_repository_TEST_LDADD = \
+ libpaludisgentoorepository.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/environment/test/libpaludistestenvironment.la \
+ $(top_builddir)/test/libtest.a \
+ $(DYNAMIC_LD_LIBS)
+
+else
+
+portage_repository_TEST_LDADD = \
+ libpaludisgentoorepository.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/environment/test/libpaludistestenvironment.la \
+ $(top_builddir)/test/libtest.a \
+ $(DYNAMIC_LD_LIBS)
+
+endif
+
+portage_repository_TEST_CXXFLAGS = $(AM_CXXFLAGS) -I$(top_srcdir)
+
+EXTRA_DIST = \
+ glsa.sr \
+ portage_repository_TEST.cc \
+ portage_repository_TEST_setup.sh \
+ portage_repository_TEST_cleanup.sh \
+ portage_repository_params-sr.hh \
+ portage_repository_params-sr.cc \
+ portage_repository_params.sr \
+ portage_repository-sr.hh \
+ portage_repository-sr.cc \
+ portage_repository.sr \
+ xml_things_TEST.cc \
+ xml_things_TEST_setup.sh \
+ xml_things_TEST_cleanup.sh \
+ vdb_repository_TEST.cc \
+ vdb_repository_TEST_setup.sh \
+ vdb_repository_TEST_cleanup.sh \
+ vdb_repository-sr.hh \
+ vdb_repository-sr.cc \
+ vdb_repository.sr
+
+BUILT_SOURCES = \
+ portage_repository_params-sr.hh \
+ portage_repository_params-sr.cc \
+ portage_repository-sr.hh \
+ portage_repository-sr.cc \
+ glsa-sr.hh \
+ glsa-sr.cc \
+ vdb_repository-sr.hh \
+ vdb_repository-sr.cc
+
+check_SCRIPTS = \
+ portage_repository_TEST_setup.sh portage_repository_TEST_cleanup.sh \
+ xml_things_TEST_setup.sh xml_things_TEST_cleanup.sh \
+ vdb_repository_TEST_setup.sh vdb_repository_TEST_cleanup.sh
+
+TESTS_ENVIRONMENT = env \
+ PALUDIS_EBUILD_DIR="$(top_srcdir)/paludis/repositories/gentoo/ebuild/" \
+ PALUDIS_SKIP_CONFIG="yes" \
+ TEST_SCRIPT_DIR="$(srcdir)/" \
+ PALUDIS_REPOSITORY_SO_DIR="$(top_builddir)/paludis/repositories" \
+ LD_LIBRARY_PATH="`$(top_srcdir)/paludis/repositories/gentoo/ebuild/utils/canonicalise $(top_builddir)/paludis/repositories/gentoo/`:` \
+ $(top_srcdir)/paludis/repositories/gentoo/ebuild/utils/canonicalise $(top_builddir)/paludis/repositories/gentoo/.libs/`" \
+ bash $(top_srcdir)/test/run_test.sh
+
+portage_repository-sr.hh : portage_repository.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/portage_repository.sr > $@
+
+portage_repository-sr.cc : portage_repository.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/portage_repository.sr > $@
+
+portage_repository_params-sr.hh : portage_repository_params.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/portage_repository_params.sr > $@
+
+portage_repository_params-sr.cc : portage_repository_params.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/portage_repository_params.sr > $@
+
+glsa-sr.hh : glsa.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/glsa.sr > $@
+
+glsa-sr.cc : glsa.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/glsa.sr > $@
+
+vdb_repository-sr.hh : vdb_repository.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/vdb_repository.sr > $@
+
+vdb_repository-sr.cc : vdb_repository.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/vdb_repository.sr > $@
+
+
+libpaludisgentoorepositoryxmlthings_la_SOURCES = xml_things.cc xml_things.hh
+libpaludisgentoorepositoryxmlthings_la_CXXFLAGS = $(AM_CXXFLAGS) @LIBXML2DEPS_CFLAGS@
+
+if MONOLITHIC
+
+libpaludisgentoorepositoryxmlthings_la_LIBADD = @LIBXML2DEPS_LIBS@ \
+ $(DYNAMIC_LD_LIBS)
+
+else
+
+libpaludisgentoorepositoryxmlthings_la_LIBADD = @LIBXML2DEPS_LIBS@ \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/libpaludis.la
+
+endif
+
+libpaludisgentoorepositoryxmlthings_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0
+
+if ENABLE_GLSA
+
+GLSA_TESTS = xml_things_TEST
+xml_things_TEST_SOURCES = xml_things_TEST.cc
+
+if MONOLITHIC
+
+xml_things_TEST_LDADD = \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/test/libtest.a \
+ libpaludisgentoorepository.la \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/environment/test/libpaludistestenvironment.la \
+ $(top_builddir)/test/libtest.a \
+ libpaludisgentoorepositoryxmlthings.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(DYNAMIC_LD_LIBS)
+
+else
+
+xml_things_TEST_LDADD = \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/test/libtest.a \
+ libpaludisgentoorepository.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/environment/test/libpaludistestenvironment.la \
+ $(top_builddir)/test/libtest.a \
+ $(DYNAMIC_LD_LIBS)
+
+endif
+
+endif
+
+TESTS = portage_repository_TEST $(GLSA_TESTS)
+check_PROGRAMS = $(TESTS)
+
+built-sources : $(BUILT_SOURCES)
+ for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+