1999-03-20 08:27:33 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
1998-11-20 06:53:40 +08:00
|
|
|
AUTOMAKE_OPTIONS = no-dependencies foreign
|
1998-11-18 15:29:36 +08:00
|
|
|
|
1998-12-24 03:33:09 +08:00
|
|
|
if INSTALL_LTDL
|
|
|
|
include_HEADERS = ltdl.h
|
1999-03-10 07:09:01 +08:00
|
|
|
lib_LTLIBRARIES = libltdl.la
|
1998-12-24 03:33:09 +08:00
|
|
|
else
|
|
|
|
noinst_HEADERS = ltdl.h
|
|
|
|
endif
|
1998-12-23 18:27:14 +08:00
|
|
|
|
1999-03-10 06:02:09 +08:00
|
|
|
if CONVENIENCE_LTDL
|
1999-03-10 07:09:01 +08:00
|
|
|
noinst_LTLIBRARIES = libltdlc.la
|
1999-03-10 06:02:09 +08:00
|
|
|
endif
|
1999-01-27 14:15:21 +08:00
|
|
|
|
1999-03-08 23:56:45 +08:00
|
|
|
libltdl_la_SOURCES = ltdl.c
|
2000-01-20 04:34:37 +08:00
|
|
|
libltdl_la_LDFLAGS = -no-undefined -version-info 2:0:2
|
1999-03-08 23:56:45 +08:00
|
|
|
libltdl_la_LIBADD = $(LIBADD_DL)
|
1999-01-27 14:15:21 +08:00
|
|
|
|
1999-03-10 07:09:01 +08:00
|
|
|
libltdlc_la_SOURCES = ltdl.c
|
|
|
|
libltdlc_la_LIBADD = $(LIBADD_DL)
|
1999-01-18 21:30:43 +08:00
|
|
|
|
1999-04-29 16:09:19 +08:00
|
|
|
## Because we do not have automatic dependency tracking:
|
|
|
|
ltdl.lo: ltdl.h config.h
|
|
|
|
|
1999-03-12 05:28:36 +08:00
|
|
|
$(OBJECTS): libtool
|
1999-01-18 21:30:43 +08:00
|
|
|
libtool: $(LIBTOOL_DEPS)
|
1999-01-20 07:56:32 +08:00
|
|
|
$(SHELL) ./config.status --recheck
|
1999-05-22 20:50:00 +08:00
|
|
|
|
|
|
|
## This allows us to install libltdl without using ln and without creating
|
|
|
|
## a world writeable directory.
|
1999-11-02 20:33:05 +08:00
|
|
|
## FIXME: Remove this rule once automake can do this properly by itself.
|
1999-05-22 20:50:00 +08:00
|
|
|
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 \
|
1999-10-04 00:36:32 +08:00
|
|
|
cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
|
1999-05-22 20:50:00 +08:00
|
|
|
else \
|
|
|
|
test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
|
1999-10-04 00:36:32 +08:00
|
|
|
|| cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
|
1999-05-22 20:50:00 +08:00
|
|
|
fi; \
|
|
|
|
done
|