Merge with gcc-4_3-branch up to revision 175516.
[official-gcc.git] / libjava / libltdl / Makefile.am
blob0c2e26386be2dc34d05f6ed1ac11cb8de511aae9
1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = no-dependencies foreign no-dist
5 ACLOCAL_AMFLAGS = -I ../.. -I ../../config
7 INCLUDES = $(GCINCS)
9 if INSTALL_LTDL
10 include_HEADERS = ltdl.h
11 lib_LTLIBRARIES = libltdl.la
12 else
13 noinst_HEADERS = ltdl.h
14 endif
16 if CONVENIENCE_LTDL
17 noinst_LTLIBRARIES = libltdlc.la
18 endif
20 ## Make sure these will be cleaned even when they're not built by
21 ## default.
22 CLEANFILES = libltdl.la libltdlc.la
24 libltdl_la_SOURCES = ltdl.c
25 libltdl_la_LDFLAGS = -no-undefined -version-info 4:1:1
26 libltdl_la_LIBADD = $(LIBADD_DL)
28 libltdlc_la_SOURCES = ltdl.c
29 libltdlc_la_LIBADD = $(LIBADD_DL)
31 ## Because we do not have automatic dependency tracking:
32 ltdl.lo: ltdl.h config.h
34 $(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool
35 libtool: $(LIBTOOL_DEPS)
36         $(SHELL) ./config.status --recheck
38 ## These are installed as a subdirectory of pkgdatadir so that
39 ## libtoolize --ltdl can find them later:
40 ltdldatadir = $(datadir)/libtool/libltdl
41 ltdldatafiles = COPYING.LIB README acinclude.m4 aclocal.m4 \
42                 Makefile.am Makefile.in configure.ac configure \
43                 config-h.in config.guess config.sub \
44                 install-sh missing ltmain.sh \
45                 ltdl.c ltdl.h
47 ## GCJ LOCAL: fix install buglet.  See PR 27818
48 if INSTALL_LTDL
49 ## To avoid spurious reconfiguration when the user installs these files
50 ## with libtoolize, we have to preserve their timestamps carefully:
51 install-data-local:
52         -rm -rf $(DESTDIR)$(ltdldatadir)
53         $(mkinstalldirs) $(DESTDIR)$(ltdldatadir)
54         ( cd $(srcdir) && $(AMTAR) chf - $(ltdldatafiles); ) \
55           | ( umask 0 && cd $(DESTDIR)$(ltdldatadir) && $(AMTAR) xf -; )
56 endif