Initial revision
[gcc.git] / libjava / libltdl / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = no-dependencies foreign
4
5 if INSTALL_LTDL
6 include_HEADERS = ltdl.h
7 lib_LTLIBRARIES = libltdl.la
8 else
9 noinst_HEADERS = ltdl.h
10 endif
11
12 if CONVENIENCE_LTDL
13 noinst_LTLIBRARIES = libltdlc.la
14 endif
15
16 libltdl_la_SOURCES = ltdl.c
17 libltdl_la_LDFLAGS = -version-info 1:2:1
18 libltdl_la_LIBADD = $(LIBADD_DL)
19
20 libltdlc_la_SOURCES = ltdl.c
21 libltdlc_la_LIBADD = $(LIBADD_DL)
22
23 ## Because we do not have automatic dependency tracking:
24 ltdl.lo: ltdl.h config.h
25
26 $(OBJECTS): libtool
27 libtool: $(LIBTOOL_DEPS)
28 $(SHELL) ./config.status --recheck
29
30 ## This allows us to install libltdl without using ln and without creating
31 ## a world writeable directory.
32 ## FIXME: Remove this rule once automake can do this properly by itself.
33 local-install-files: $(DISTFILES)
34 -rm -rf $(DESTDIR)$(datadir)/libtool/libltdl
35 $(mkinstalldirs) $(DESTDIR)$(datadir)/libtool/libltdl
36 @for file in $(DISTFILES); do \
37 d=$(srcdir); \
38 if test -d $$d/$$file; then \
39 cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
40 else \
41 test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
42 || cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
43 fi; \
44 done