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