File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / libiconv / src / Makefile.in
Revision 1.1.1.3 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 13:38:46 2021 UTC (3 years, 7 months ago) by misho
Branches: libiconv, MAIN
CVS tags: v1_16p0, HEAD
libiconv 1.16

    1: # Makefile for libiconv/src
    2: 
    3: #### Start of system configuration section. ####
    4: 
    5: # Directories used by "make":
    6: srcdir = @srcdir@
    7: top_srcdir = @top_srcdir@
    8: 
    9: # Directories used by "make install":
   10: prefix = @prefix@
   11: local_prefix = /usr/local
   12: exec_prefix = @exec_prefix@
   13: bindir = @bindir@
   14: libdir = @libdir@
   15: datarootdir = @datarootdir@
   16: datadir = @datadir@
   17: localedir = @localedir@
   18: 
   19: # Programs used by "make":
   20: CC = @CC@
   21: CFLAGS = @CFLAGS@
   22: CPPFLAGS = @CPPFLAGS@
   23: LDFLAGS = @LDFLAGS@
   24: INCLUDES = -I. -I$(srcdir) -I.. -I../include -I$(srcdir)/../include -I../srclib -I$(srcdir)/../srclib
   25: LIBTOOL = @LIBTOOL@
   26: LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
   27: LIBTOOL_LINK = $(LIBTOOL) --mode=link
   28: LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
   29: LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
   30: WINDRES = @WINDRES@
   31: RM = rm -f
   32: @SET_MAKE@
   33: 
   34: # Programs used by "make install":
   35: INSTALL = @INSTALL@
   36: INSTALL_PROGRAM = @INSTALL_PROGRAM@
   37: INSTALL_DATA = @INSTALL_DATA@
   38: mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinstalldirs
   39: 
   40: # Programs used by "make install-strip":
   41: STRIP = @STRIP@
   42: INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
   43: install_sh = @install_sh@
   44: 
   45: #### End of system configuration section. ####
   46: 
   47: SHELL = @SHELL@
   48: 
   49: PACKAGE_VERSION = @VERSION@
   50: 
   51: # Needed by $(LIBTOOL).
   52: top_builddir = ..
   53: 
   54: # Needed by SET_RELOCATABLE.
   55: EXEEXT = @EXEEXT@
   56: 
   57: # Needed by RELOCATABLE_LDFLAGS.
   58: host = @host@
   59: 
   60: OBJECTS_RES_yes = iconv.res
   61: OBJECTS_RES_no =
   62: 
   63: # We cannot link with libintl until libiconv is installed. (When we call
   64: # libtool with arguments "../lib/libiconv.la -lintl", libtool will call ld
   65: # with "../lib/.libs/libiconv.so $libdir/libintl.so $libdir/libiconv.so",
   66: # (remember that $libdir/libintl.la lists $libdir/libiconv.so as a dependency),
   67: # and this gives a fatal linker error on Solaris because the two libiconv.so
   68: # files are different but have the same soname.
   69: # So we can link the iconv executable only after we have installed libiconv,
   70: # i.e. during "make install". The intermediate 'iconv' executable is built
   71: # without internationalization and not linked with libintl.
   72: 
   73: all : iconv_no_i18n$(EXEEXT) iconv.@OBJEXT@ $(OBJECTS_RES_@WOE32@)
   74: 
   75: # This is the temporary iconv executable, without internationalization.
   76: iconv_no_i18n$(EXEEXT) : iconv_no_i18n.@OBJEXT@ ../lib/libiconv.la $(OBJECTS_RES_@WOE32@)
   77: 	$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) iconv_no_i18n.@OBJEXT@ ../srclib/libicrt.a ../lib/libiconv.la $(OBJECTS_RES_@WOE32@) -o $@
   78: 
   79: iconv_no_i18n.@OBJEXT@ : $(srcdir)/iconv_no_i18n.c $(srcdir)/iconv.c
   80: 	$(CC) -c $(INCLUDES) -I../lib $(CFLAGS) $(CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" -DLOCALEDIR=\"$(localedir)\" $(srcdir)/iconv_no_i18n.c
   81: 
   82: iconv.@OBJEXT@ : $(srcdir)/iconv.c
   83: 	$(CC) -c $(INCLUDES) -I../lib $(CFLAGS) $(CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" -DLOCALEDIR=\"$(localedir)\" $(srcdir)/iconv.c
   84: 
   85: iconv.res : $(srcdir)/../windows/iconv.rc
   86: 	$(WINDRES) `$(SHELL) $(srcdir)/../windows/windres-options --escape $(PACKAGE_VERSION)` -i $(srcdir)/../windows/iconv.rc -o iconv.res --output-format=coff
   87: 
   88: # The following rule is necessary to avoid a toplevel "make -n check" failure.
   89: ../lib/libiconv.la :
   90: 	cd ../lib && $(MAKE) libiconv.la
   91: 
   92: # Support for relocatability.
   93: RELOCATABLE_LIBRARY_PATH = $(libdir)
   94: RELOCATABLE_SRC_DIR = $(top_srcdir)/srclib
   95: RELOCATABLE_BUILD_DIR = ../srclib
   96: RELOCATABLE_CONFIG_H_DIR = ..
   97: RELOCATABLE_LDFLAGS = @RELOCATABLE_LDFLAGS@
   98: RELOCATABLE_STRIP = :
   99: INSTALL_PROGRAM_ENV = @INSTALL_PROGRAM_ENV@
  100: iconv_LDFLAGS = `if test -n '$(RELOCATABLE_LDFLAGS)'; then $(RELOCATABLE_LDFLAGS) $(bindir); fi`
  101: 
  102: # During "make install", we can build the final iconv executable.
  103: # On HP-UX, in order to ensure that the new libiconv.sl will override the old
  104: # one that is hardcoded in libintl.sl, we need to mention libiconv.sl before
  105: # libintl.sl on the link command line. We have to bypass libtool in order to
  106: # achieve this.
  107: # On Solaris, the linker gives an error if we are using libintl.so and it
  108: # refers to a libiconv.so in $prefix/lib since then it sees two libiconv.so's,
  109: # one in $prefix/lib and one in ../lib/.libs. So we have to avoid using
  110: # ../lib/libiconv.la entirely.
  111: install : all force
  112: 	if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi
  113: 	case "@host_os@" in \
  114: 	  hpux*) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv @LIBINTL@ $(OBJECTS_RES_@WOE32@) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)"; fi` -o iconv$(EXEEXT);; \
  115: 	  *) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.@OBJEXT@ ../srclib/libicrt.a ../lib/libiconv.la @LTLIBINTL@ $(OBJECTS_RES_@WOE32@) -o iconv$(EXEEXT);; \
  116: 	esac
  117: 	$(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv$(EXEEXT) $(DESTDIR)$(bindir)/iconv$(EXEEXT)
  118: 
  119: install-strip : force
  120: 	case '$(INSTALL_PROGRAM)' in \
  121: 	  */install-reloc) \
  122: 	    $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' RELOCATABLE_STRIP='$(STRIP)' ;; \
  123: 	  *) \
  124: 	    $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' ;; \
  125: 	esac
  126: 
  127: installdirs : force
  128: 	if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi
  129: 
  130: uninstall : force
  131: 	$(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(bindir)/iconv$(EXEEXT)
  132: 
  133: check : all
  134: 
  135: mostlyclean : clean
  136: 
  137: clean : force
  138: 	$(RM) *.@OBJEXT@ *.lo iconv.res iconv_no_i18n iconv_no_i18n$(EXEEXT) iconv$(EXEEXT) core *.stackdump
  139: 	$(RM) -r .libs _libs
  140: 
  141: distclean : clean
  142: 	$(RM) Makefile
  143: 
  144: maintainer-clean : distclean
  145: 
  146: # List of source files.
  147: SOURCE_FILES = \
  148:   Makefile.in \
  149:   iconv.c iconv_no_i18n.c
  150: # List of distributed files imported from other packages.
  151: IMPORTED_FILES =
  152: # List of distributed files generated by autotools or Makefile.devel.
  153: GENERATED_FILES =
  154: # List of distributed files generated by "make".
  155: DISTRIBUTED_BUILT_FILES =
  156: # List of distributed files.
  157: DISTFILES = $(SOURCE_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES)
  158: 
  159: distdir : $(DISTFILES)
  160: 	for file in $(DISTFILES); do \
  161: 	  if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \
  162: 	  cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \
  163: 	done
  164: 
  165: force :
  166: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>