Edit

thodg/libiconv/src/Makefile.in

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2002-05-23 11:46:13
    Hash : 207fbc34
    Message : Hacks for the circular dependency with libintl.

  • src/Makefile.in
  • # Makefile for libiconv/src
    
    #### Start of system configuration section. ####
    
    # Directories used by "make":
    srcdir = @srcdir@
    
    # Directories used by "make install":
    prefix = @prefix@
    local_prefix = /usr/local
    exec_prefix = @exec_prefix@
    bindir = @bindir@
    datadir = @datadir@
    localedir = $(datadir)/locale
    
    # Programs used by "make":
    CC = @CC@
    CFLAGS = @CFLAGS@
    CPPFLAGS = @CPPFLAGS@
    LDFLAGS = @LDFLAGS@
    INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include
    LIBTOOL = @LIBTOOL@
    LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
    LIBTOOL_LINK = $(LIBTOOL) --mode=link
    LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
    LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
    RM = rm -f
    @SET_MAKE@
    
    # Programs used by "make install":
    INSTALL = @INSTALL@
    INSTALL_PROGRAM = @INSTALL_PROGRAM@
    INSTALL_DATA = @INSTALL_DATA@
    
    #### End of system configuration section. ####
    
    SHELL = /bin/sh
    
    # Needed by $(LIBTOOL).
    top_builddir = ..
    
    all : iconv
    
    # When linking with libintl and producing a shared libiconv, we need to omit
    # the -liconv flag that might be present in @LTLIBINTL@. Otherwise, on FreeBSD,
    # when a libiconv <= 1.7 is already installed and we install a libiconv >= 1.8,
    # we get a link error.
    iconv : iconv.@OBJEXT@ ../lib/libiconv.la
    	build_shared=`$(LIBTOOL) --config | grep '^build_libtool_libs=' | sed -e 's/build_libtool_libs=//'`; \
    	libintl=`if test "$$build_shared" = yes; then \
    		   echo " @LTLIBINTL@ " | sed -e 's, -liconv , ,g' -e 's, [^ ]*/libiconv\.[^ ]* , ,g'; \
    		 else \
    		   echo " @LTLIBINTL@ "; \
    		 fi` ; \
    	$(LIBTOOL_LINK) $(CC) $(LDFLAGS) iconv.@OBJEXT@ ../lib/libiconv.la $$libintl -o $@
    
    iconv.@OBJEXT@ : $(srcdir)/iconv.c
    	$(CC) -c $(INCLUDES) -I../lib $(CFLAGS) $(CPPFLAGS) -DLOCALEDIR=\"$(localedir)\" $(srcdir)/iconv.c
    
    # The following rule is necessary to avoid a toplevel "make -n check" failure.
    ../lib/libiconv.la :
    	cd ../lib && $(MAKE) libiconv.la
    
    install : all force
    	if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
    	if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
    	if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir $(DESTDIR)$(bindir) ; fi
    	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv $(DESTDIR)$(bindir)/iconv
    
    installdirs : force
    	if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
    	if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
    	if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir $(DESTDIR)$(bindir) ; fi
    
    uninstall : force
    	$(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(bindir)/iconv
    
    check : all
    
    mostlyclean : clean
    
    clean : force
    	$(RM) *.@OBJEXT@ *.lo iconv core
    	$(RM) -r .libs _libs
    
    distclean : clean
    	$(RM) Makefile config.h
    
    maintainer-clean : distclean
    
    force :