CP1258 handles combining characters.
[libiconv.git] / lib / Makefile.in
blobe55bd642f39f2db7e52f0d11d9582435ee966c86
1 # Makefile for libiconv/lib
3 #### Start of system configuration section. ####
5 # Directories used by "make":
6 srcdir = @srcdir@
8 # Directories used by "make install":
9 prefix = @prefix@
10 local_prefix = /usr/local
11 exec_prefix = @exec_prefix@
12 libdir = @libdir@
14 # Programs used by "make":
15 CC = @CC@
16 CFLAGS = @CFLAGS@
17 CPPFLAGS = @CPPFLAGS@
18 LDFLAGS = @LDFLAGS@
19 INCLUDES = -I. -I$(srcdir) -I../include -I$(srcdir)/../include
20 LIBTOOL = @LIBTOOL@
21 LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile
22 LIBTOOL_LINK = $(LIBTOOL) --mode=link
23 LIBTOOL_INSTALL = $(LIBTOOL) --mode=install
24 LIBTOOL_UNINSTALL = $(LIBTOOL) --mode=uninstall
25 CP = cp
26 MV = mv
27 LN = @LN@
28 LN_S = @LN_S@
29 RM = rm -f
31 # Programs used by "make install":
32 INSTALL = @INSTALL@
33 INSTALL_PROGRAM = @INSTALL_PROGRAM@
34 INSTALL_DATA = @INSTALL_DATA@
36 #### End of system configuration section. ####
38 SHELL = /bin/sh
40 # Before making a release, change this according to the libtool documentation,
41 # section "Library interface versions".
42 LIBICONV_VERSION_INFO = 2:3:0
44 # Needed by $(LIBTOOL).
45 top_builddir = ..
47 SOURCES = $(srcdir)/iconv.c
49 OBJECTS = iconv.lo
51 LIBCHARSET_OBJECTS = ../libcharset/lib/localcharset.lo
53 all : libiconv.la @PLUGLIB@
55 libiconv.la : $(OBJECTS)
56 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) -o libiconv.la -rpath $(libdir) -version-info $(LIBICONV_VERSION_INFO) -no-undefined $(OBJECTS) $(LIBCHARSET_OBJECTS)
58 libiconv_plug.so : libiconv_plug_@OS@.so
59 $(RM) libiconv_plug.so
60 $(LN_S) libiconv_plug_@OS@.so libiconv_plug.so
62 libiconv_plug_linux.so : $(SOURCES)
63 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) $(LIBCHARSET_OBJECTS) -shared -o libiconv_plug_linux.so
65 libiconv_plug_solaris.so : $(SOURCES)
66 if test -n "@GCC@"; then \
67 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) $(LIBCHARSET_OBJECTS) -G -o libiconv_plug_solaris.so; \
68 else \
69 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -KPIC -DPIC -DLIBICONV_PLUG $(SOURCES) $(LIBCHARSET_OBJECTS) -G -o libiconv_plug_solaris.so; \
72 libiconv_plug_osf.so : $(SOURCES)
73 if test -n "@GCC@"; then \
74 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -fPIC -DPIC -DLIBICONV_PLUG $(SOURCES) $(LIBCHARSET_OBJECTS) -shared -o libiconv_plug_osf.so; \
75 else \
76 $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPIC -DLIBICONV_PLUG $(SOURCES) $(LIBCHARSET_OBJECTS) -c -o iconv_plug.o; \
77 /bin/ld -shared -expect_unresolved \* -o libiconv_plug_osf.so iconv_plug.o; \
80 iconv.lo : $(srcdir)/iconv.c $(srcdir)/converters.h $(srcdir)/encodings.def $(srcdir)/encodings_aix.def $(srcdir)/encodings_osf1.def $(srcdir)/encodings_dos.def $(srcdir)/encodings_local.def $(srcdir)/aliases.h $(srcdir)/aliases_aix.h $(srcdir)/aliases_osf1.h $(srcdir)/aliases_dos.h $(srcdir)/flags.h
81 $(LIBTOOL_COMPILE) $(CC) $(CPPFLAGS) $(CFLAGS) $(INCLUDES) -c $(srcdir)/iconv.c
83 # Installs the library and include files only. Typically called with only
84 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
85 install-lib : all force
86 if [ ! -d $(libdir) ] ; then mkdir $(libdir) ; fi
87 $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(libdir)/libiconv.la
89 install : all force
90 if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
91 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
92 if [ ! -d $(DESTDIR)$(libdir) ] ; then mkdir $(DESTDIR)$(libdir) ; fi
93 $(LIBTOOL_INSTALL) $(INSTALL_DATA) libiconv.la $(DESTDIR)$(libdir)/libiconv.la
94 if test -n "@PLUGLIB@"; then $(INSTALL_DATA) @PLUGLIB@ $(DESTDIR)$(libdir)/@PLUGLIB@.new && mv $(DESTDIR)$(libdir)/@PLUGLIB@.new $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
96 installdirs : force
97 if [ ! -d $(DESTDIR)$(prefix) ] ; then mkdir $(DESTDIR)$(prefix) ; fi
98 if [ ! -d $(DESTDIR)$(exec_prefix) ] ; then mkdir $(DESTDIR)$(exec_prefix) ; fi
99 if [ ! -d $(DESTDIR)$(libdir) ] ; then mkdir $(DESTDIR)$(libdir) ; fi
101 uninstall : force
102 $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libiconv.la
103 if test -n "@PLUGLIB@"; then $(RM) $(DESTDIR)$(libdir)/@PLUGLIB@ ; fi
105 check : all
107 mostlyclean : clean
109 clean : force
110 $(RM) *.o *.lo *.a *.la libiconv_plug* core
111 $(RM) -r .libs _libs
113 distclean : clean
114 $(RM) Makefile config.h libtool
116 maintainer-clean : distclean
118 force :