1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = no-dependencies foreign
8 include_HEADERS = ltdl.h
9 lib_LTLIBRARIES = libltdl.la
11 noinst_HEADERS = ltdl.h
15 noinst_LTLIBRARIES = libltdlc.la
18 ## Make sure these will be cleaned even when they're not built by
20 CLEANFILES = libltdl.la libltdlc.la
22 libltdl_la_SOURCES = ltdl.c
23 libltdl_la_LDFLAGS = -no-undefined -version-info 4:0:1
24 libltdl_la_LIBADD = $(LIBADD_DL)
26 libltdlc_la_SOURCES = ltdl.c
27 libltdlc_la_LIBADD = $(LIBADD_DL)
29 ## Because we do not have automatic dependency tracking:
30 ltdl.lo: ltdl.h config.h
32 $(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool
33 libtool: $(LIBTOOL_DEPS)
34 $(SHELL) ./config.status --recheck
36 ## This allows us to install libltdl without using ln and without creating
37 ## a world writeable directory.
38 ## FIXME: Remove this rule once automake can do this properly by itself.
39 local-install-files: $(DISTFILES)
40 -rm -rf $(DESTDIR)$(datadir)/libtool/libltdl
41 $(mkinstalldirs) $(DESTDIR)$(datadir)/libtool/libltdl
42 @for file in $(DISTFILES); do \
44 if test -d $$d/$$file; then \
45 cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
47 test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
48 || cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \