Makefile.in 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Makefile for libiconv/preload
  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../lib -I$(srcdir)/../lib -I../include -I$(srcdir)/../include -I.. -I$(srcdir)/..
  16. # -DBUILDING_LIBICONV: Change expansion of LIBICONV_DLL_EXPORTED macro.
  17. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro.
  18. DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBICONV -DBUILDING_DLL \
  19. -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \
  20. -Dset_relocation_prefix=libiconv_set_relocation_prefix \
  21. -Drelocate=libiconv_relocate @DEFS@
  22. LIBTOOL = @LIBTOOL@
  23. LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
  24. LIBTOOL_LINK = $(LIBTOOL) --mode=link
  25. LN_S = @LN_S@
  26. RM = rm -f
  27. # Programs used by "make install":
  28. INSTALL = @INSTALL@
  29. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  30. INSTALL_DATA = @INSTALL_DATA@
  31. mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
  32. #### End of system configuration section. ####
  33. SHELL = /bin/sh
  34. # Needed by $(LIBTOOL).
  35. top_builddir = .
  36. SOURCES = $(srcdir)/../lib/iconv.c $(srcdir)/../libcharset/lib/localcharset.c $(srcdir)/../lib/relocatable.c
  37. all : @PLUGLIB@
  38. preloadable_libiconv.so : $(SOURCES)
  39. $(RM) -r objects
  40. mkdir objects && \
  41. for f in $(SOURCES); do \
  42. $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(DEFS) -DLIBICONV_PLUG -c $$f -o objects/`basename $$f | sed -e 's,\.c$$,.o,'` || exit 1; \
  43. done && \
  44. $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libiconv.la -rpath $(libdir) -no-undefined objects/*.lo && \
  45. $(RM) -r objects
  46. cp .libs/libiconv.so preloadable_libiconv.so
  47. install : all force
  48. if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
  49. if test -n "@PLUGLIB@"; then $(INSTALL_DATA) @PLUGLIB@ $(DESTDIR)$(libdir)/@PLUGLIB@.new && mv $(DESTDIR)$(libdir)/@PLUGLIB@.new $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
  50. install-strip : install
  51. installdirs : force
  52. if [ ! -d $(DESTDIR)$(libdir) ] ; then $(mkinstalldirs) $(DESTDIR)$(libdir) ; fi
  53. uninstall : force
  54. if test -n "@PLUGLIB@"; then $(RM) $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
  55. check : all
  56. mostlyclean : clean
  57. clean : force
  58. $(RM) *.o *.lo *.a *.la preloadable_libiconv* core *.stackdump so_locations
  59. $(RM) -r .libs _libs objects
  60. distclean : clean
  61. $(RM) config.status config.log config.cache Makefile libtool
  62. maintainer-clean : distclean
  63. force :