source: trunk/gcc/libjava/libltdl/Makefile.am@ 3003

Last change on this file since 3003 was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.2 KB
Line 
1## Process this file with automake to produce Makefile.in
2
3AUTOMAKE_OPTIONS = no-dependencies foreign
4
5INCLUDES = $(GCINCS)
6
7if INSTALL_LTDL
8include_HEADERS = ltdl.h
9lib_LTLIBRARIES = libltdl.la
10else
11noinst_HEADERS = ltdl.h
12endif
13
14if CONVENIENCE_LTDL
15noinst_LTLIBRARIES = libltdlc.la
16endif
17
18libltdl_la_SOURCES = ltdl.c
19libltdl_la_LDFLAGS = -no-undefined -version-info 2:0:2
20libltdl_la_LIBADD = $(LIBADD_DL)
21
22libltdlc_la_SOURCES = ltdl.c
23libltdlc_la_LIBADD = $(LIBADD_DL)
24
25## Because we do not have automatic dependency tracking:
26ltdl.lo: ltdl.h config.h
27
28$(OBJECTS): libtool
29libtool: $(LIBTOOL_DEPS)
30 $(SHELL) ./config.status --recheck
31
32## This allows us to install libltdl without using ln and without creating
33## a world writeable directory.
34## FIXME: Remove this rule once automake can do this properly by itself.
35local-install-files: $(DISTFILES)
36 -rm -rf $(DESTDIR)$(datadir)/libtool/libltdl
37 $(mkinstalldirs) $(DESTDIR)$(datadir)/libtool/libltdl
38 @for file in $(DISTFILES); do \
39 d=$(srcdir); \
40 if test -d $$d/$$file; then \
41 cp -r $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file; \
42 else \
43 test -f $(DESTDIR)$(datadir)/libtool/libltdl/$$file \
44 || cp $$d/$$file $(DESTDIR)$(datadir)/libtool/libltdl/$$file || :; \
45 fi; \
46 done
Note: See TracBrowser for help on using the repository browser.