OSDN Git Service

* c-common.h (check_case_value): Remove prototype.
[pf3gnuchains/gcc-fork.git] / libjava / libltdl / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 AUTOMAKE_OPTIONS = no-dependencies foreign
4
5 INCLUDES = $(GCINCS)
6
7 if INSTALL_LTDL
8 include_HEADERS = ltdl.h
9 lib_LTLIBRARIES = libltdl.la
10 else
11 noinst_HEADERS = ltdl.h
12 endif
13
14 if CONVENIENCE_LTDL
15 noinst_LTLIBRARIES = libltdlc.la
16 endif
17
18 ## Make sure these will be cleaned even when they're not built by
19 ## default.
20 CLEANFILES = libltdl.la libltdlc.la
21
22 libltdl_la_SOURCES = ltdl.c
23 libltdl_la_LDFLAGS = -no-undefined -version-info 4:0:1
24 libltdl_la_LIBADD = $(LIBADD_DL)
25
26 libltdlc_la_SOURCES = ltdl.c
27 libltdlc_la_LIBADD = $(LIBADD_DL)
28
29 ## Because we do not have automatic dependency tracking:
30 ltdl.lo: ltdl.h config.h
31
32 $(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool
33 libtool: $(LIBTOOL_DEPS)
34         $(SHELL) ./config.status --recheck
35
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