2001-06-02 17:46:38 +00:00
|
|
|
## 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
|
|
|
|
|
|
|
|
## Make sure these will be cleaned even when they're not built by
|
|
|
|
## default.
|
|
|
|
CLEANFILES = libltdl.la libltdlc.la
|
|
|
|
|
|
|
|
libltdl_la_SOURCES = ltdl.c
|
2001-09-19 22:00:24 +00:00
|
|
|
libltdl_la_LDFLAGS = -no-undefined -version-info 4:0:1
|
2001-06-02 17:46:38 +00:00
|
|
|
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
|
|
|
|
|
2003-04-19 13:47:57 +00:00
|
|
|
$(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool
|
2001-06-02 17:46:38 +00:00
|
|
|
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 \
|
2005-04-03 21:40:24 +00:00
|
|
|
case $$file in \
|
|
|
|
$(srcdir)/*) file=`echo "$$file" | sed "s|^$(srcdir)/||"`;; \
|
|
|
|
esac; \
|
2001-06-02 17:46:38 +00:00
|
|
|
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
|