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":
16 CFLAGS
= @CFLAGS@ @CFLAG_VISIBILITY@
18 LDFLAGS
= @LDFLAGS@
$(LDFLAGS_@WOE32DLL@
)
19 LDFLAGS_yes
= -Wl
,--export-all-symbols
21 INCLUDES
= -I.
-I
$(srcdir) -I..
/include -I
$(srcdir)/..
/include -I..
-I
$(srcdir)/..
22 # -DBUILDING_LIBICONV: Change expansion of LIBICONV_SHLIB_EXPORTED macro.
23 # -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_SHLIB_EXPORTED macro in
25 DEFS
= -DBUILDING_LIBICONV
-DBUILDING_LIBCHARSET @DEFS@
27 LIBTOOL_COMPILE
= $(LIBTOOL
) --mode
=compile
28 LIBTOOL_LINK
= $(LIBTOOL
) --mode
=link
29 LIBTOOL_INSTALL
= $(LIBTOOL
) --mode
=install
30 LIBTOOL_UNINSTALL
= $(LIBTOOL
) --mode
=uninstall
32 # Windows resource compiler (windres). Used via libtool.
40 # Programs used by "make install":
42 INSTALL_PROGRAM
= @INSTALL_PROGRAM@
43 INSTALL_DATA
= @INSTALL_DATA@
44 mkinstalldirs
= $(SHELL
) @top_srcdir@
/build-aux
/mkinstalldirs
46 #### End of system configuration section. ####
50 # Before making a release, change this according to the libtool documentation,
51 # section "Library interface versions".
52 LIBICONV_VERSION_INFO
= 8:1:6
54 PACKAGE_VERSION
= @VERSION@
56 # Needed by $(LIBTOOL).
59 SOURCES
= $(srcdir)/iconv.c
$(srcdir)/..
/libcharset
/lib
/localcharset.c
$(srcdir)/compat.c
61 OBJECTS
= iconv.lo localcharset.lo compat.lo
$(OBJECTS_EXP_@WOE32DLL@
) $(OBJECTS_RES_@WOE32@
)
62 OBJECTS_EXP_yes
= iconv-exports.lo
64 OBJECTS_RES_yes
= libiconv.res.lo
69 libiconv.la
: $(OBJECTS
)
70 $(LIBTOOL_LINK
) $(CC
) $(LDFLAGS
) $(CFLAGS
) -o libiconv.la
-rpath
$(libdir) -version-info
$(LIBICONV_VERSION_INFO
) -no-undefined
$(OBJECTS
)
72 iconv.lo
: $(srcdir)/iconv.c
$(srcdir)/converters.h \
73 $(srcdir)/encodings.def
$(srcdir)/encodings_aix.def
$(srcdir)/encodings_osf1.def
$(srcdir)/encodings_dos.def
$(srcdir)/encodings_local.def \
74 $(srcdir)/aliases.h
$(srcdir)/aliases_sysaix.h
$(srcdir)/aliases_syshpux.h
$(srcdir)/aliases_sysosf1.h
$(srcdir)/aliases_syssolaris.h \
75 $(srcdir)/aliases_aix.h
$(srcdir)/aliases_aix_sysaix.h \
76 $(srcdir)/aliases_osf1.h
$(srcdir)/aliases_osf1_sysosf1.h \
77 $(srcdir)/aliases_dos.h \
78 $(srcdir)/aliases_extra.h \
79 $(srcdir)/flags.h
$(srcdir)/translit.h
80 $(LIBTOOL_COMPILE
) $(CC
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) $(DEFS
) -c
$(srcdir)/iconv.c
82 localcharset.lo
: $(srcdir)/..
/libcharset
/lib
/localcharset.c
83 $(LIBTOOL_COMPILE
) $(CC
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) $(DEFS
) -c
$(srcdir)/..
/libcharset
/lib
/localcharset.c
85 compat.lo
: $(srcdir)/compat.c
86 $(LIBTOOL_COMPILE
) $(CC
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) $(DEFS
) -c
$(srcdir)/compat.c
88 iconv-exports.lo
: $(srcdir)/..
/woe32dll
/iconv-exports.c
89 $(LIBTOOL_COMPILE
) $(CC
) $(INCLUDES
) $(CPPFLAGS
) $(CFLAGS
) $(DEFS
) -c
$(srcdir)/..
/woe32dll
/iconv-exports.c
91 libiconv.res.lo
: $(srcdir)/..
/windows
/libiconv.rc
92 $(LIBTOOL_COMPILE
) --tag
=RC
$(RC
) `$(SHELL) $(srcdir)/../windows/windres-options --escape $(PACKAGE_VERSION)` -i
$(srcdir)/..
/windows
/libiconv.rc
-o libiconv.res.lo
--output-format
=coff
94 # Installs the library and include files only. Typically called with only
95 # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here.
96 install-lib
: all force
97 if
[ ! -d
$(libdir) ] ; then
$(mkinstalldirs
) $(libdir) ; fi
98 $(LIBTOOL_INSTALL
) $(INSTALL
) libiconv.la
$(libdir)/libiconv.la
100 # On AIX, libiconv.a must include the object files of /lib/libiconv.a,
101 # otherwise the setlocale() call fails when invoked from executables linked
102 # with -rpath $(libdir), even if linked without -liconv.
104 if
[ ! -d
$(DESTDIR
)$(libdir) ] ; then
$(mkinstalldirs
) $(DESTDIR
)$(libdir) ; fi
105 $(LIBTOOL_INSTALL
) $(INSTALL
) libiconv.la
$(DESTDIR
)$(libdir)/libiconv.la
106 case
"@host_os@" in \
107 aix
*) (cd
$(DESTDIR
)$(libdir) && \
108 objects
=`$(AR) t libiconv.a`" "`$(AR) t /lib/libiconv.a` && \
109 $(AR
) x libiconv.a
&& $(AR
) x
/lib
/libiconv.a
&& \
110 $(AR
) q libiconv.new.a
$$objects && \
112 mv
-f libiconv.new.a libiconv.a
) ;; \
115 install-strip
: install
118 if
[ ! -d
$(DESTDIR
)$(libdir) ] ; then
$(mkinstalldirs
) $(DESTDIR
)$(libdir) ; fi
121 $(LIBTOOL_UNINSTALL
) $(RM
) $(DESTDIR
)$(libdir)/libiconv.la
128 $(RM
) *.o
*.lo
*.a
*.la core
*.stackdump so_locations
132 $(RM
) Makefile config.h
134 maintainer-clean
: distclean
136 # List of source files.
138 Makefile.in config.h.in \
144 encodings_extra.def \
145 encodings_local.def \
207 mac_centraleurope.h \
275 gb18030_2005.h gb18030_2022.h \
395 # List of distributed files imported from other packages.
397 # List of distributed files generated by autotools or Makefile.devel.
399 aliases.gperf aliases_sysaix.gperf aliases_syshpux.gperf aliases_sysosf1.gperf aliases_syssolaris.gperf \
400 aliases.h aliases_sysaix.h aliases_syshpux.h aliases_sysosf1.h aliases_syssolaris.h \
401 aliases_aix.h aliases_aix_sysaix.h \
402 aliases_osf1.h aliases_osf1_sysosf1.h \
406 canonical.h canonical_sysaix.h canonical_syshpux.h canonical_sysosf1.h canonical_syssolaris.h \
407 canonical_aix.h canonical_aix_sysaix.h \
408 canonical_osf1.h canonical_osf1_sysosf1.h \
412 canonical_local.h canonical_local_sysaix.h canonical_local_syshpux.h canonical_local_sysosf1.h canonical_local_syssolaris.h \
415 # List of distributed files generated by "make".
416 DISTRIBUTED_BUILT_FILES
=
417 # List of distributed files.
418 DISTFILES
= $(SOURCE_FILES
) $(IMPORTED_FILES
) $(GENERATED_FILES
) $(DISTRIBUTED_BUILT_FILES
)
420 distdir
: $(DISTFILES
)
421 for file in
$(DISTFILES
); do \
422 if
test -f
$$file; then
dir='.'; else dir='$(srcdir)'; fi
; \
423 cp
-p
"$$dir/$$file" '$(distdir)'/$$file || exit
1; \