]>
Commit | Line | Data |
---|---|---|
06f56737 TT |
1 | ## Process this file with automake to produce Makefile.in |
2 | ||
3 | AUTOMAKE_OPTIONS = no-dependencies foreign | |
4 | ||
8a489465 JH |
5 | ACLOCAL_AMFLAGS = -I ../.. -I ../../config |
6 | ||
77de5d85 TT |
7 | INCLUDES = $(GCINCS) |
8 | ||
06f56737 TT |
9 | if INSTALL_LTDL |
10 | include_HEADERS = ltdl.h | |
11 | lib_LTLIBRARIES = libltdl.la | |
12 | else | |
13 | noinst_HEADERS = ltdl.h | |
14 | endif | |
15 | ||
16 | if CONVENIENCE_LTDL | |
17 | noinst_LTLIBRARIES = libltdlc.la | |
18 | endif | |
19 | ||
9e129d90 MK |
20 | ## Make sure these will be cleaned even when they're not built by |
21 | ## default. | |
22 | CLEANFILES = libltdl.la libltdlc.la | |
23 | ||
06f56737 | 24 | libltdl_la_SOURCES = ltdl.c |
6a92b6c7 | 25 | libltdl_la_LDFLAGS = -no-undefined -version-info 4:1:1 |
06f56737 TT |
26 | libltdl_la_LIBADD = $(LIBADD_DL) |
27 | ||
28 | libltdlc_la_SOURCES = ltdl.c | |
29 | libltdlc_la_LIBADD = $(LIBADD_DL) | |
30 | ||
31 | ## Because we do not have automatic dependency tracking: | |
32 | ltdl.lo: ltdl.h config.h | |
33 | ||
9e129d90 | 34 | $(libltdl_la_OBJECTS) $(libltdlc_la_OBJECTS): libtool |
06f56737 TT |
35 | libtool: $(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: | |
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 | |
46 | ||
3118f0d5 TT |
47 | ## GCJ LOCAL: fix install buglet. See PR 27818 |
48 | if 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: | |
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 -; ) | |
3118f0d5 | 56 | endif |