Makefile.in 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. # Makefile for libcharset/lib
  2. #### Start of system configuration section. ####
  3. # Directories used by "make":
  4. srcdir = @srcdir@
  5. # Directories used by "make install":
  6. prefix = @prefix@
  7. local_prefix = /usr/local
  8. exec_prefix = @exec_prefix@
  9. libdir = @libdir@
  10. # Programs used by "make":
  11. CC = @CC@
  12. CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@
  13. CPPFLAGS = @CPPFLAGS@
  14. LDFLAGS = @LDFLAGS@
  15. INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/.. -I../include
  16. # -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_DLL_EXPORTED macro.
  17. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
  18. DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBCHARSET -DBUILDING_DLL \
  19. -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  20. -Dset_relocation_prefix=libcharset_set_relocation_prefix \
  21. -Drelocate=libcharset_relocate @DEFS@
  22. LIBTOOL = @LIBTOOL@
  23. LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
  24. LIBTOOL_LINK = $(LIBTOOL) --mode=link
  25. LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
  26. LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
  27. RM = rm -f
  28. # Programs used by "make install":
  29. INSTALL = @INSTALL@
  30. INSTALL_DATA = @INSTALL_DATA@
  31. mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
  32. #### End of system configuration section. ####
  33. PACKAGE = @PACKAGE@
  34. VERSION = @VERSION@
  35. SHELL = /bin/sh
  36. # Before making a release, change this according to the libtool documentation,
  37. # section "Library interface versions".
  38. LIBCHARSET_VERSION_INFO = 1:0:0
  39. # Needed by $(LIBTOOL).
  40. top_builddir = ..
  41. SOURCES = $(srcdir)/localcharset.c $(srcdir)/relocatable.c
  42. OBJECTS = localcharset.lo relocatable.lo
  43. all : libcharset.la charset.alias ref-add.sed ref-del.sed
  44. libcharset.la : $(OBJECTS)
  45. $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libcharset.la -rpath $(libdir) -version-info $(LIBCHARSET_VERSION_INFO) -no-undefined $(OBJECTS)
  46. localcharset.lo : $(srcdir)/localcharset.c
  47. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/localcharset.c
  48. relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h
  49. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/relocatable.c
  50. charset.alias: $(srcdir)/config.charset
  51. $(SHELL) $(srcdir)/config.charset '@host@' > t-$@
  52. mv t-$@ $@
  53. ref-add.sed : $(srcdir)/ref-add.sin
  54. sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-$@
  55. mv t-$@ $@
  56. ref-del.sed : $(srcdir)/ref-del.sin
  57. sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-$@
  58. mv t-$@ $@
  59. # Installs the library and include files only. Typically called with only
  60. # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
  61. install-lib : all force
  62. $(mkinstalldirs) $(libdir)
  63. $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(libdir)/libcharset.la
  64. test -f $(libdir)/charset.alias && orig=$(libdir)/charset.alias \
  65. || orig=charset.alias; \
  66. sed -f ref-add.sed $$orig > $(libdir)/t-charset.alias; \
  67. $(INSTALL_DATA) $(libdir)/t-charset.alias $(libdir)/charset.alias; \
  68. rm -f $(libdir)/t-charset.alias
  69. # The following is needed in order to install a simple file in $(libdir)
  70. # which is shared with other installed packages. We use a list of referencing
  71. # packages so that "make uninstall" will remove the file if and only if it
  72. # is not used by another installed package.
  73. # On systems with glibc-2.1 or newer, the file is redundant, therefore we
  74. # avoid installing it.
  75. install : all force
  76. if test @GLIBC21@ = no; then \
  77. case '@host_os@' in \
  78. darwin[56]*) \
  79. need_charset_alias=true ;; \
  80. darwin* | cygwin* | mingw* | pw32* | cegcc*) \
  81. need_charset_alias=false ;; \
  82. *) \
  83. need_charset_alias=true ;; \
  84. esac ; \
  85. else \
  86. need_charset_alias=false ; \
  87. fi ; \
  88. $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
  89. $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(DESTDIR)$(libdir)/libcharset.la
  90. if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  91. sed -f ref-add.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
  92. $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
  93. rm -f $(DESTDIR)$(libdir)/t-charset.alias; \
  94. else \
  95. if $$need_charset_alias; then \
  96. sed -f ref-add.sed charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
  97. $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
  98. rm -f $(DESTDIR)$(libdir)/t-charset.alias; \
  99. fi ; \
  100. fi
  101. install-strip : install
  102. installdirs : force
  103. $(mkinstalldirs) $(DESTDIR)$(libdir)
  104. uninstall : force
  105. $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libcharset.la
  106. if test -f $(DESTDIR)$(libdir)/charset.alias; then \
  107. sed -f ref-del.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \
  108. if grep '^# Packages using this file: $$' $(DESTDIR)$(libdir)/t-charset.alias > /dev/null; then \
  109. rm -f $(DESTDIR)$(libdir)/charset.alias; \
  110. else \
  111. $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \
  112. fi; \
  113. rm -f $(DESTDIR)$(libdir)/t-charset.alias; \
  114. fi
  115. check : all
  116. mostlyclean : clean
  117. clean : force
  118. $(RM) *.o *.lo *.a *.la *.o.lock core *.stackdump charset.alias ref-add.sed ref-del.sed
  119. $(RM) -r .libs _libs
  120. distclean : clean
  121. $(RM) config.status config.log config.cache Makefile libtool
  122. maintainer-clean : distclean
  123. force :