Makefile.in 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # Makefile for libiconv/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@ $(LDFLAGS_@WOE32DLL@)
  15. LDFLAGS_yes = -Wl,--export-all-symbols
  16. LDFLAGS_no =
  17. INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include -I.. -I$(srcdir)/..
  18. # -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
  19. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
  20. DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBICONV -DBUILDING_DLL \
  21. -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  22. -Dset_relocation_prefix=libiconv_set_relocation_prefix \
  23. -Drelocate=libiconv_relocate @DEFS@
  24. LIBTOOL = @LIBTOOL@
  25. LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
  26. LIBTOOL_LINK = $(LIBTOOL) --mode=link
  27. LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
  28. LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
  29. # Windows resource compiler (windres). Used via libtool.
  30. RC = @RC@
  31. CP = cp
  32. MV = mv
  33. LN = @LN@
  34. LN_S = @LN_S@
  35. RM = rm -f
  36. # Programs used by "make install":
  37. INSTALL = @INSTALL@
  38. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  39. INSTALL_DATA = @INSTALL_DATA@
  40. mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
  41. #### End of system configuration section. ####
  42. SHELL = /bin/sh
  43. # Before making a release, change this according to the libtool documentation,
  44. # section "Library interface versions".
  45. LIBICONV_VERSION_INFO = 7:0:5
  46. PACKAGE_VERSION = @VERSION@
  47. # Needed by $(LIBTOOL).
  48. top_builddir = ..
  49. SOURCES = $(srcdir)/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.c
  50. OBJECTS = iconv.lo localcharset.lo relocatable.lo $(OBJECTS_EXP_@WOE32DLL@) $(OBJECTS_RES_@WOE32@)
  51. OBJECTS_EXP_yes = iconv-exports.lo
  52. OBJECTS_EXP_no =
  53. OBJECTS_RES_yes = libiconv.res.lo
  54. OBJECTS_RES_no =
  55. all : libiconv.la
  56. libiconv.la : $(OBJECTS)
  57. $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS)
  58. iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h \
  59. $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def \
  60. $(srcdir)/aliases.h $(srcdir)/aliases_sysaix.h $(srcdir)/aliases_syshpux.h $(srcdir)/aliases_sysosf1.h $(srcdir)/aliases_syssolaris.h \
  61. $(srcdir)/aliases_aix.h $(srcdir)/aliases_aix_sysaix.h \
  62. $(srcdir)/aliases_osf1.h $(srcdir)/aliases_osf1_sysosf1.h \
  63. $(srcdir)/aliases_dos.h \
  64. $(srcdir)/aliases_extra.h \
  65. $(srcdir)/flags.h $(srcdir)/translit.h
  66. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/iconv.c
  67. localcharset.lo : $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/relocatable.h
  68. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../libcharset/lib/localcharset.c
  69. relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h
  70. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/relocatable.c
  71. iconv-exports.lo : $(srcdir)/../woe32dll/iconv-exports.c
  72. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -c $(srcdir)/../woe32dll/iconv-exports.c
  73. libiconv.res.lo : $(srcdir)/../windows/libiconv.rc
  74. $(LIBTOOL_COMPILE) --tag=RC $(RC) `$(SHELL) $(srcdir)/../windows/windres-options --escape $(PACKAGE_VERSION)` -i $(srcdir)/../windows/libiconv.rc -o libiconv.res.lo --output-format=coff
  75. # Installs the library and include files only. Typically called with only
  76. # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
  77. install-lib : all force
  78. if [ ! -d $(libdir) ] ; then $(mkinstalldirs) $(libdir) ; fi
  79. $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(libdir)/libiconv.la
  80. # On AIX, libiconv.a must include the object files of /lib/libiconv.a,
  81. # otherwise the setlocale() call fails when invoked from executables linked
  82. # with -rpath $(libdir), even if linked without -liconv.
  83. install : all force
  84. if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
  85. $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(DESTDIR)$(libdir)/libiconv.la
  86. case "@host_os@" in \
  87. aix*) (cd $(DESTDIR)$(libdir) && \
  88. objects=`ar t libiconv.a`" "`ar t /lib/libiconv.a` && \
  89. ar x libiconv.a && ar x /lib/libiconv.a && \
  90. ar q libiconv.new.a $$objects && \
  91. rm -f $$objects && \
  92. mv -f libiconv.new.a libiconv.a) ;; \
  93. esac
  94. install-strip : install
  95. installdirs : force
  96. if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
  97. uninstall : force
  98. $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la
  99. check : all
  100. mostlyclean : clean
  101. clean : force
  102. $(RM) *.o *.lo *.a *.la core *.stackdump so_locations
  103. $(RM) -r .libs _libs
  104. distclean : clean
  105. $(RM) Makefile config.h libtool
  106. maintainer-clean : distclean
  107. force :