OSDN Git Service

Daily bump.
[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:1: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 ## These are installed as a subdirectory of pkgdatadir so that
37 ## libtoolize --ltdl can find them later:
38 ltdldatadir = $(datadir)/libtool/libltdl
39 ltdldatafiles = COPYING.LIB README acinclude.m4 aclocal.m4 \
40                 Makefile.am Makefile.in configure.ac configure \
41                 config-h.in config.guess config.sub \
42                 install-sh missing ltmain.sh \
43                 ltdl.c ltdl.h
44
45 ## To avoid spurious reconfiguration when the user installs these files
46 ## with libtoolize, we have to preserve their timestamps carefully:
47 install-data-local:
48         -rm -rf $(DESTDIR)$(ltdldatadir)
49         $(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
50         ( cd $(srcdir) && $(AMTAR) chf - $(ltdldatafiles); ) \
51           | ( umask 0 && cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )