2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / libltdl / Makefile.am
blob7b7f0006bcde4073383519df80027fa6aabd0cb3
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = no-dependencies foreign
5 INCLUDES = $(GCINCS)
7 if INSTALL_LTDL
8 include_HEADERS = ltdl.h
9 lib_LTLIBRARIES = libltdl.la
10 else
11 noinst_HEADERS = ltdl.h
12 endif
14 if CONVENIENCE_LTDL
15 noinst_LTLIBRARIES = libltdlc.la
16 endif
18 ## Make sure these will be cleaned even when they're not built by
19 ## default.
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 \
43           d=$(srcdir); \
44           if test -d $$d/$$file; then \
45             cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
46           else \
47             test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
48             || cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
49           fi; \
50         done