aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/ruby/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to '0.8.0/ruby/Makefile.am')
-rw-r--r--0.8.0/ruby/Makefile.am135
1 files changed, 135 insertions, 0 deletions
diff --git a/0.8.0/ruby/Makefile.am b/0.8.0/ruby/Makefile.am
new file mode 100644
index 0000000..744be49
--- /dev/null
+++ b/0.8.0/ruby/Makefile.am
@@ -0,0 +1,135 @@
+SUBDIRS = . demos
+
+AM_CXXFLAGS = -I$(top_srcdir) -I$(srcdir)/ \
+ @PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC@ \
+ @PALUDIS_CXXFLAGS_NO_WREDUNDANT_DECLS@ \
+ @PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST@
+
+DEFS= \
+ -DSYSCONFDIR=\"$(sysconfdir)\" \
+ -DDATADIR=\"$(datadir)\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
+ -DLIBDIR=\"$(libdir)\"
+
+CLEANFILES = *~ gmon.out *.gcov *.gcno *.gcda *.o *.so .libs/*.so
+MAINTAINERCLEANFILES = Makefile.in
+
+IF_RUBY_TESTS = \
+ paludis_ruby_TEST.rb \
+ log_TEST.rb \
+ environment_TEST.rb \
+ package_database_entry_TEST.rb \
+ version_spec_TEST.rb \
+ mask_reasons_TEST.rb \
+ dep_atom_TEST.rb \
+ package_database_TEST.rb \
+ repository_TEST.rb
+
+IF_RUBY_SOURCES = \
+ paludis_ruby.cc paludis_ruby.hh \
+ environment.cc \
+ package_database_entry.cc \
+ version_spec.cc \
+ mask_reasons.cc \
+ dep_atom.cc \
+ log.cc \
+ package_database.cc \
+ repository.cc
+
+EXTRA_DIST = $(IF_RUBY_TESTS) $(IF_RUBY_SOURCES) \
+ environment_TEST_setup.sh environment_TEST_cleanup.sh \
+ package_database_TEST_setup.sh package_database_TEST_cleanup.sh \
+ repository_TEST_setup.sh repository_TEST_cleanup.sh
+
+TESTS_ENVIRONMENT = env \
+ PALUDIS_NO_GLOBAL_HOOKS="yes" \
+ PALUDIS_NO_XTERM_TITLES="yes" \
+ PALUDIS_EBUILD_DIR="`$(top_srcdir)/ebuild/utils/canonicalise $(top_srcdir)/ebuild/`" \
+ PALUDIS_EBUILD_DIR_FALLBACK="`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/ebuild/`" \
+ PALUDIS_REPOSITORY_SO_DIR="`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/paludis/repositories`" \
+ SYSCONFDIR="$(sysconfdir)" \
+ LD_LIBRARY_PATH=`echo "\`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/paludis/.libs\`: \
+ \`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/paludis/util/.libs\`: \
+ \`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/paludis/environment/default/.libs\`: \
+ \`$(top_srcdir)/ebuild/utils/canonicalise $(top_builddir)/paludis/environment/no_config/.libs\`" \
+ | tr -d ' '` \
+ bash $(top_srcdir)/test/run_test.sh "ruby -I ./.libs/"
+
+if ENABLE_RUBY
+
+OUR_OBJECTS = \
+ environment.o \
+ dep_atom.o \
+ log.o \
+ mask_reasons.o \
+ package_database.o \
+ package_database_entry.o \
+ version_spec.o \
+ repository.o \
+ paludis_ruby.o
+
+TESTS = $(IF_RUBY_TESTS)
+noinst_DATA = $(OUR_OBJECTS)
+check_DATA = .libs/Paludis.so
+rubylibdir = $(DESTDIR)/@RUBY_INSTALL_DIR@
+rubylib_DATA = Paludis.so
+
+OUR_CXXCOMPILE = $(CXX) -fPIC $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \
+ -I. -I@RUBY_SITEARCHDIR@ -I@RUBY_ARCHDIR@ -c
+
+paludis_ruby.o : paludis_ruby.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/paludis_ruby.cc
+
+environment.o : environment.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/environment.cc
+
+dep_atom.o : dep_atom.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/dep_atom.cc
+
+package_database_entry.o : package_database_entry.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/package_database_entry.cc
+
+package_database.o : package_database.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/package_database.cc
+
+version_spec.o : version_spec.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/version_spec.cc
+
+mask_reasons.o : mask_reasons.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/mask_reasons.cc
+
+log.o : log.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/log.cc
+
+repository.o : repository.cc paludis_ruby.hh
+ $(OUR_CXXCOMPILE) -o $@ $(srcdir)/repository.cc
+
+.libs/Paludis.so : $(OUR_OBJECTS)
+ mkdir -p .libs
+ $(CXX) -fPIC -shared $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) \
+ -I@RUBY_SITEARCHDIR@ -l@RUBY_SONAME@ \
+ -o $@ \
+ $^ \
+ $(top_builddir)/paludis/util/.libs/libpaludisutil.so \
+ $(top_builddir)/paludis/.libs/libpaludis.so \
+ $(top_builddir)/paludis/environment/default/.libs/libpaludisdefaultenvironment.so \
+ $(top_builddir)/paludis/environment/no_config/.libs/libpaludisnoconfigenvironment.so
+
+Paludis.so : $(OUR_OBJECTS)
+ mkdir -p .libs
+ $(CXX) -fPIC -shared $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) \
+ -I@RUBY_SITEARCHDIR@ -l@RUBY_SONAME@ \
+ -o $@ \
+ $^ \
+ -L$(top_builddir)/paludis/util/.libs/ -lpaludisutil \
+ -L$(top_builddir)/paludis/.libs/ -lpaludis \
+ -L$(top_builddir)/paludis/environment/default/.libs/ -lpaludisdefaultenvironment \
+ -L$(top_builddir)/paludis/environment/no_config/.libs/ -lpaludisnoconfigenvironment
+
+endif
+