]> git.ipfire.org Git - thirdparty/gcc.git/blame - libjava/libltdl/Makefile.am
cygming.h (TARGET_USE_JCR_SECTION): Enable.
[thirdparty/gcc.git] / libjava / libltdl / Makefile.am
CommitLineData
06f56737
TT
1## Process this file with automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS = no-dependencies foreign
4
8a489465
JH
5ACLOCAL_AMFLAGS = -I ../.. -I ../../config
6
77de5d85
TT
7INCLUDES = $(GCINCS)
8
06f56737
TT
9if INSTALL_LTDL
10include_HEADERS = ltdl.h
11lib_LTLIBRARIES = libltdl.la
12else
13noinst_HEADERS = ltdl.h
14endif
15
16if CONVENIENCE_LTDL
17noinst_LTLIBRARIES = libltdlc.la
18endif
19
9e129d90
MK
20## Make sure these will be cleaned even when they're not built by
21## default.
22CLEANFILES = libltdl.la libltdlc.la
23
06f56737 24libltdl_la_SOURCES = ltdl.c
6a92b6c7 25libltdl_la_LDFLAGS = -no-undefined -version-info 4:1:1
06f56737
TT
26libltdl_la_LIBADD = $(LIBADD_DL)
27
28libltdlc_la_SOURCES = ltdl.c
29libltdlc_la_LIBADD = $(LIBADD_DL)
30
31## Because we do not have automatic dependency tracking:
32ltdl.lo: ltdl.h config.h
33
9e129d90 34$(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool
06f56737
TT
35libtool: $(LIBTOOL_DEPS)
36 $(SHELL) ./config.status --recheck
37
fa275f0a
TT
38## These are installed as a subdirectory of pkgdatadir so that
39## libtoolize --ltdl can find them later:
40ltdldatadir = $(datadir)/libtool/libltdl
41ltdldatafiles = 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
46
3118f0d5
TT
47## GCJ LOCAL: fix install buglet. See PR 27818
48if INSTALL_LTDL
fa275f0a
TT
49## To avoid spurious reconfiguration when the user installs these files
50## with libtoolize, we have to preserve their timestamps carefully:
51install-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 -; )
3118f0d5 56endif