1 # Makefile for libiconv/lib
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
31 # Programs used by "make install":
33 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
34 INSTALL_DATA
= @INSTALL_DATA@
36 #### End of system configuration section. ####
40 # Before making a release, change this according to the libtool documentation,
41 # section "Library interface versions".
42 LIBICONV_VERSION_INFO
= 2:4:0
44 # Needed by $(LIBTOOL).
47 SOURCES
= $(srcdir)/iconv.c
51 LIBCHARSET_OBJECTS
= ..
/libcharset
/lib
/localcharset.lo
53 all : @PLUGLIB@ libiconv.la
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
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
) -fPIC
-DPIC
-DLIBICONV_PLUG
$(SOURCES
) -x none
$(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
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
) -fPIC
-DPIC
-DLIBICONV_PLUG
$(SOURCES
) -x none
$(LIBCHARSET_OBJECTS
) -G
-o libiconv_plug_solaris.so
; \
69 $(LIBTOOL_LINK
) $(CC
) $(LDFLAGS
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
) -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
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
) -fPIC
-DPIC
-DLIBICONV_PLUG
$(SOURCES
) -x none
$(LIBCHARSET_OBJECTS
) -shared
-o libiconv_plug_osf.so
; \
76 $(LIBTOOL_LINK
) $(CC
) $(LDFLAGS
) $(INCLUDES
) $(CFLAGS
) $(CPPFLAGS
) -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
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) -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
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
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
102 $(LIBTOOL_UNINSTALL
) $(RM
) $(DESTDIR
)$(libdir)/libiconv.la
103 if
test -n
"@PLUGLIB@"; then
$(RM
) $(DESTDIR
)$(libdir)/@PLUGLIB@
; fi
110 $(RM
) *.o
*.lo
*.a
*.la libiconv_plug
* core so_locations
114 $(RM
) Makefile config.h libtool
116 maintainer-clean
: distclean