aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments/paludis/Makefile.am
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-27 08:57:33 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-02-27 08:57:33 +0000
commit28c55bddf6933c7698daf209c8435aab17cbf781 (patch)
tree28cc5aadc003f9d66e15c7c927571df629a69d38 /paludis/environments/paludis/Makefile.am
parenta04702912561544b329e0fecafa9702d46e6a148 (diff)
downloadpaludis-28c55bddf6933c7698daf209c8435aab17cbf781.tar.gz
paludis-28c55bddf6933c7698daf209c8435aab17cbf781.tar.xz
Move over to dynamic environment framework. Remove gtkpaludis.
Diffstat (limited to 'paludis/environments/paludis/Makefile.am')
-rw-r--r--paludis/environments/paludis/Makefile.am109
1 files changed, 109 insertions, 0 deletions
diff --git a/paludis/environments/paludis/Makefile.am b/paludis/environments/paludis/Makefile.am
new file mode 100644
index 000000000..8654bd6aa
--- /dev/null
+++ b/paludis/environments/paludis/Makefile.am
@@ -0,0 +1,109 @@
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda
+DISTCLEANFILES = \
+ use_config_entry-sr.hh use_config_entry-sr.cc \
+ repository_config_entry-sr.hh repository_config_entry-sr.cc
+BUILT_SOURCES = $(DISTCLEANFILES)
+MAINTAINERCLEANFILES = Makefile.in
+AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@ @PALUDIS_CXXFLAGS_VISIBILITY@
+DEFS= \
+ -DSYSCONFDIR=\"$(sysconfdir)\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DLIBDIR=\"$(libdir)\"
+
+libpaludispaludisenvironment_la_SOURCES = \
+ paludis_config.cc paludis_config.hh \
+ paludis_environment.cc paludis_environment.hh \
+ registration.cc
+
+libpaludispaludisenvironment_la_LDFLAGS = -version-info @VERSION_LIB_CURRENT@:@VERSION_LIB_REVISION@:0
+
+if ! MONOLITHIC
+
+libpaludispaludisenvironment_la_LIBADD = \
+ $(top_builddir)/paludis/repositories/libpaludisrepositories.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/libpaludis.la
+
+endif
+
+libenvdir = $(libdir)/paludis/environments/
+
+if MONOLITHIC
+
+noinst_LTLIBRARIES = libpaludispaludisenvironment.la
+
+else
+
+libenv_LTLIBRARIES = libpaludispaludisenvironment.la
+
+endif
+
+paludis_environment_paludis_includedir = $(includedir)/paludis/environments/paludis
+paludis_environment_paludis_include_HEADERS = \
+ paludis_config.hh \
+ paludis_environment.hh \
+ use_config_entry-sr.hh \
+ repository_config_entry-sr.hh
+
+EXTRA_DIST = \
+ paludis_environment_TEST_setup.sh \
+ paludis_environment_TEST.cc \
+ paludis_environment_TEST_cleanup.sh \
+ $(BUILT_SOURCES) \
+ use_config_entry.sr \
+ repository_config_entry.sr
+
+TESTS = paludis_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 = paludis_environment_TEST_setup.sh paludis_environment_TEST_cleanup.sh
+
+paludis_environment_TEST_SOURCES = paludis_environment_TEST.cc
+
+if MONOLITHIC
+
+paludis_environment_TEST_LDADD = \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/test/libtest.a \
+ libpaludispaludisenvironment.la \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(top_builddir)/paludis/repositories/libpaludisrepositories.la \
+ $(DYNAMIC_LD_LIBS)
+
+else
+
+paludis_environment_TEST_LDADD = \
+ libpaludispaludisenvironment.la \
+ $(top_builddir)/paludis/util/test_extras.o \
+ $(top_builddir)/test/libtest.a \
+ $(top_builddir)/paludis/repositories/libpaludisrepositories.la \
+ $(top_builddir)/paludis/libpaludis.la \
+ $(top_builddir)/paludis/util/libpaludisutil.la \
+ $(DYNAMIC_LD_LIBS)
+
+endif
+
+built-sources : $(BUILT_SOURCES)
+ for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+
+use_config_entry-sr.hh : use_config_entry.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/use_config_entry.sr > $@
+
+use_config_entry-sr.cc : use_config_entry.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/use_config_entry.sr > $@
+
+repository_config_entry-sr.hh : repository_config_entry.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --header $(srcdir)/repository_config_entry.sr > $@
+
+repository_config_entry-sr.cc : repository_config_entry.sr $(top_srcdir)/misc/make_sr.bash
+ $(top_srcdir)/misc/make_sr.bash --source $(srcdir)/repository_config_entry.sr > $@
+