1 # Makefile for libiconv/src
3 #### Start of system configuration section. ####
5 # Directories used by "make":
8 # Directories used by "make install":
10 local_prefix
= /usr
/local
11 exec_prefix = @
exec_prefix@
14 # Programs used by "make":
19 INCLUDES
= -I.
-I
$(srcdir) -I..
/include -I
$(srcdir)/..
/include
21 LIBTOOL_COMPILE
= $(LIBTOOL
) --mode
=compile
22 LIBTOOL_LINK
= $(LIBTOOL
) --mode
=link
23 LIBTOOL_INSTALL
= $(LIBTOOL
) --mode
=install
24 LIBTOOL_UNINSTALL
= $(LIBTOOL
) --mode
=uninstall
28 # Programs used by "make install":
30 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
31 INSTALL_DATA
= @INSTALL_DATA@
33 #### End of system configuration section. ####
37 # Needed by $(LIBTOOL).
42 iconv
: iconv.@OBJEXT@ ..
/lib
/libiconv.la
43 $(LIBTOOL_LINK
) $(CC
) $(LDFLAGS
) iconv.@OBJEXT@ ..
/lib
/libiconv.la
-o
$@
45 iconv.@OBJEXT@
: $(srcdir)/iconv.c
46 $(CC
) -c
$(INCLUDES
) -I..
/lib
$(CFLAGS
) $(CPPFLAGS
) $(srcdir)/iconv.c
48 # The following rule is necessary to avoid a toplevel "make -n check" failure.
50 cd ..
/lib
&& $(MAKE
) libiconv.la
53 if
[ ! -d
$(DESTDIR
)$(prefix) ] ; then mkdir
$(DESTDIR
)$(prefix) ; fi
54 if
[ ! -d
$(DESTDIR
)$(exec_prefix) ] ; then mkdir
$(DESTDIR
)$(exec_prefix) ; fi
55 if
[ ! -d
$(DESTDIR
)$(bindir) ] ; then mkdir
$(DESTDIR
)$(bindir) ; fi
56 $(LIBTOOL_INSTALL
) $(INSTALL_PROGRAM
) iconv
$(DESTDIR
)$(bindir)/iconv
59 if
[ ! -d
$(DESTDIR
)$(prefix) ] ; then mkdir
$(DESTDIR
)$(prefix) ; fi
60 if
[ ! -d
$(DESTDIR
)$(exec_prefix) ] ; then mkdir
$(DESTDIR
)$(exec_prefix) ; fi
61 if
[ ! -d
$(DESTDIR
)$(bindir) ] ; then mkdir
$(DESTDIR
)$(bindir) ; fi
64 $(LIBTOOL_UNINSTALL
) $(RM
) $(DESTDIR
)$(bindir)/iconv
71 $(RM
) *.@OBJEXT@
*.lo iconv core
77 maintainer-clean
: distclean