Makefile.am 1.6 KB

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