diff options
author | Tom Tromey <tromey@gcc.gnu.org> | 2000-01-17 19:00:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-01-17 19:00:44 +0000 |
commit | 06f56737169a939227bfac13f099484ad09b3bf4 (patch) | |
tree | 66e5cb719e3cc597d29f0ae79b62ea51cc0d18da /libjava/libltdl/Makefile.am | |
parent | 451f21ef2d9259022af8f15c344c7cd7333a74ee (diff) | |
download | gcc-06f56737169a939227bfac13f099484ad09b3bf4.tar.gz |
Initial revision
From-SVN: r31468
Diffstat (limited to 'libjava/libltdl/Makefile.am')
-rw-r--r-- | libjava/libltdl/Makefile.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libjava/libltdl/Makefile.am b/libjava/libltdl/Makefile.am new file mode 100644 index 00000000000..a1df9fc37b7 --- /dev/null +++ b/libjava/libltdl/Makefile.am @@ -0,0 +1,44 @@ +## Process this file with automake to produce Makefile.in + +AUTOMAKE_OPTIONS = no-dependencies foreign + +if INSTALL_LTDL +include_HEADERS = ltdl.h +lib_LTLIBRARIES = libltdl.la +else +noinst_HEADERS = ltdl.h +endif + +if CONVENIENCE_LTDL +noinst_LTLIBRARIES = libltdlc.la +endif + +libltdl_la_SOURCES = ltdl.c +libltdl_la_LDFLAGS = -version-info 1:2:1 +libltdl_la_LIBADD = $(LIBADD_DL) + +libltdlc_la_SOURCES = ltdl.c +libltdlc_la_LIBADD = $(LIBADD_DL) + +## Because we do not have automatic dependency tracking: +ltdl.lo: ltdl.h config.h + +$(OBJECTS): libtool +libtool: $(LIBTOOL_DEPS) + $(SHELL) ./config.status --recheck + +## This allows us to install libltdl without using ln and without creating +## a world writeable directory. +## FIXME: Remove this rule once automake can do this properly by itself. +local-install-files: $(DISTFILES) + -rm -rf $(DESTDIR)$(datadir)/libtool/libltdl + $(mkinstalldirs) $(DESTDIR)$(datadir)/libtool/libltdl + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + if test -d $$d/$$file; then \ + cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \ + else \ + test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \ + || cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \ + fi; \ + done |