# Makefile for libiconv/src #### Start of system configuration section. #### # Directories used by "make": srcdir = . top_srcdir = .. # Directories used by "make install": prefix = /usr/local/Cellar/libiconv/1.13.1 local_prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin libdir = ${exec_prefix}/lib datarootdir = ${prefix}/share datadir = ${datarootdir} localedir = ${datarootdir}/locale # Programs used by "make": CC = gcc CFLAGS = -g -O2 CPPFLAGS = -I/usr/local/Cellar/libiconv/1.13.1/include LDFLAGS = INCLUDES = -I. -I$(srcdir) -I.. -I../include -I$(srcdir)/../include -I../srclib -I$(srcdir)/../srclib LIBTOOL = /bin/sh $(top_builddir)/libtool LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile LIBTOOL_LINK = $(LIBTOOL) --mode=link LIBTOOL_INSTALL = $(LIBTOOL) --mode=install LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall WINDRES = RM = rm -f # Programs used by "make install": INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} INSTALL_DATA = ${INSTALL} -m 644 mkinstalldirs = $(SHELL) ../build-aux/mkinstalldirs # Programs used by "make install-strip": STRIP = /usr/bin/strip INSTALL_STRIP_PROGRAM = $(install_sh) -c -s install_sh = ${SHELL} /Users/johnomalley/Rails_Projects/Rails_4.1/controller_scaffolding/test/dummy/libiconv-1.13.1/build-aux/install-sh #### End of system configuration section. #### SHELL = /bin/sh PACKAGE_VERSION = 1.13.1 # Needed by $(LIBTOOL). top_builddir = .. # Needed by SET_RELOCATABLE. EXEEXT = # Needed by RELOCATABLE_LDFLAGS. host = i386-apple-darwin13.3.0 OBJECTS_RES_yes = iconv.res OBJECTS_RES_no = # We cannot link with libintl until libiconv is installed. (When we call # libtool with arguments "../lib/libiconv.la -lintl", libtool will call ld # with "../lib/.libs/libiconv.so $libdir/libintl.so $libdir/libiconv.so", # (remember that $libdir/libintl.la lists $libdir/libiconv.so as a dependency), # and this gives a fatal linker error on Solaris because the two libiconv.so # files are different but have the same soname. # So we can link the iconv executable only after we have installed libiconv, # i.e. during "make install". The intermediate 'iconv' executable is built # without internationalization and not linked with libintl. all : iconv_no_i18n iconv.o $(OBJECTS_RES_no) test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx || chmod 777 . # This is the temporary iconv executable, without internationalization. iconv_no_i18n : iconv_no_i18n.o ../lib/libiconv.la $(OBJECTS_RES_no) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) iconv_no_i18n.o ../srclib/libicrt.a ../lib/libiconv.la $(OBJECTS_RES_no) -o $@ iconv_no_i18n.o : $(srcdir)/iconv_no_i18n.c $(srcdir)/iconv.c $(CC) -c $(INCLUDES) -I../lib $(CFLAGS) $(CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" -DLOCALEDIR=\"$(localedir)\" $(srcdir)/iconv_no_i18n.c iconv.o : $(srcdir)/iconv.c $(CC) -c $(INCLUDES) -I../lib $(CFLAGS) $(CPPFLAGS) -DINSTALLDIR=\"$(bindir)\" -DLOCALEDIR=\"$(localedir)\" $(srcdir)/iconv.c iconv.res : $(srcdir)/../windows/iconv.rc $(WINDRES) `$(SHELL) $(srcdir)/../windows/windres-options --escape $(PACKAGE_VERSION)` -i $(srcdir)/../windows/iconv.rc -o iconv.res --output-format=coff # The following rule is necessary to avoid a toplevel "make -n check" failure. ../lib/libiconv.la : cd ../lib && $(MAKE) libiconv.la # Support for relocatability. RELOCATABLE_LIBRARY_PATH = $(libdir) RELOCATABLE_SRC_DIR = $(top_srcdir)/srclib RELOCATABLE_BUILD_DIR = ../srclib RELOCATABLE_CONFIG_H_DIR = .. RELOCATABLE_LDFLAGS = RELOCATABLE_STRIP = : INSTALL_PROGRAM_ENV = iconv_LDFLAGS = `if test -n '$(RELOCATABLE_LDFLAGS)'; then $(RELOCATABLE_LDFLAGS) $(bindir); fi` # During "make install", we can build the final iconv executable. # On HP-UX, in order to ensure that the new libiconv.sl will override the old # one that is hardcoded in libintl.sl, we need to mention libiconv.sl before # libintl.sl on the link command line. We have to bypass libtool in order to # achieve this. # On Solaris, the linker gives an error if we are using libintl.so and it # refers to a libiconv.so in $prefix/lib since then it sees two libiconv.so's, # one in $prefix/lib and one in ../lib/.libs. So we have to avoid using # ../lib/libiconv.la entirely. install : all force if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi case "darwin13.3.0" in \ hpux*) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a -L$(DESTDIR)$(libdir) -liconv $(OBJECTS_RES_no) `if test -n '$(DESTDIR)'; then echo " -Wl,+b -Wl,$(libdir)"; fi` -o iconv$(EXEEXT);; \ *) $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(iconv_LDFLAGS) iconv.o ../srclib/libicrt.a $(DESTDIR)$(libdir)/libiconv.la $(OBJECTS_RES_no) -o iconv$(EXEEXT);; \ esac $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) iconv$(EXEEXT) $(DESTDIR)$(bindir)/iconv$(EXEEXT) install-strip : force case '$(INSTALL_PROGRAM)' in \ */install-reloc) \ $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' RELOCATABLE_STRIP='$(STRIP)' ;; \ *) \ $(MAKE) install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' ;; \ esac installdirs : force if [ ! -d $(DESTDIR)$(bindir) ] ; then $(mkinstalldirs) $(DESTDIR)$(bindir) ; fi uninstall : force $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(bindir)/iconv$(EXEEXT) check : all mostlyclean : clean clean : force $(RM) *.o *.lo iconv.res iconv_no_i18n iconv_no_i18n$(EXEEXT) iconv$(EXEEXT) core *.stackdump $(RM) -r .libs _libs distclean : clean $(RM) Makefile maintainer-clean : distclean force :