|
version 1.1.1.1, 2012/02/21 22:57:48
|
version 1.1.1.2, 2021/03/17 13:38:46
|
|
Line 18 CPPFLAGS = @CPPFLAGS@
|
Line 18 CPPFLAGS = @CPPFLAGS@
|
| LDFLAGS = @LDFLAGS@ |
LDFLAGS = @LDFLAGS@ |
| INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/.. -I../include |
INCLUDES = -I. -I$(srcdir) -I.. -I$(srcdir)/.. -I../include |
| # -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_DLL_EXPORTED macro. |
# -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_DLL_EXPORTED macro. |
| # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. | DEFS = -DBUILDING_LIBCHARSET @DEFS@ |
| DEFS = -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBCHARSET -DBUILDING_DLL \ | |
| -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ | |
| -Dset_relocation_prefix=libcharset_set_relocation_prefix \ | |
| -Drelocate=libcharset_relocate @DEFS@ | |
| LIBTOOL = @LIBTOOL@ |
LIBTOOL = @LIBTOOL@ |
| LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile |
LIBTOOL_COMPILE = $(LIBTOOL) --mode=compile |
| LIBTOOL_LINK = $(LIBTOOL) --mode=link |
LIBTOOL_LINK = $(LIBTOOL) --mode=link |
|
Line 40 mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinst
|
Line 36 mkinstalldirs = $(SHELL) @top_srcdir@/build-aux/mkinst
|
| PACKAGE = @PACKAGE@ |
PACKAGE = @PACKAGE@ |
| VERSION = @VERSION@ |
VERSION = @VERSION@ |
| |
|
| SHELL = /bin/sh | SHELL = @SHELL@ |
| |
|
| # Before making a release, change this according to the libtool documentation, |
# Before making a release, change this according to the libtool documentation, |
| # section "Library interface versions". |
# section "Library interface versions". |
|
Line 49 LIBCHARSET_VERSION_INFO = 1:0:0
|
Line 45 LIBCHARSET_VERSION_INFO = 1:0:0
|
| # Needed by $(LIBTOOL). |
# Needed by $(LIBTOOL). |
| top_builddir = .. |
top_builddir = .. |
| |
|
| SOURCES = $(srcdir)/localcharset.c $(srcdir)/relocatable.c | SOURCES = $(srcdir)/localcharset.c $(srcdir)/relocatable-stub.c |
| |
|
| OBJECTS = localcharset.lo relocatable.lo | OBJECTS = localcharset.lo relocatable-stub.lo |
| |
|
| all : libcharset.la charset.alias ref-add.sed ref-del.sed | all : libcharset.la |
| |
|
| libcharset.la : $(OBJECTS) |
libcharset.la : $(OBJECTS) |
| $(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libcharset.la -rpath $(libdir) -version-info $(LIBCHARSET_VERSION_INFO) -no-undefined $(OBJECTS) |
$(LIBTOOL_LINK) $(CC) $(LDFLAGS) $(CFLAGS) -o libcharset.la -rpath $(libdir) -version-info $(LIBCHARSET_VERSION_INFO) -no-undefined $(OBJECTS) |
|
Line 61 libcharset.la : $(OBJECTS)
|
Line 57 libcharset.la : $(OBJECTS)
|
| localcharset.lo : $(srcdir)/localcharset.c |
localcharset.lo : $(srcdir)/localcharset.c |
| $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/localcharset.c |
$(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/localcharset.c |
| |
|
| relocatable.lo : $(srcdir)/relocatable.c $(srcdir)/relocatable.h | relocatable-stub.lo : $(srcdir)/relocatable-stub.c |
| $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/relocatable.c | $(LIBTOOL_COMPILE) $(CC) $(INCLUDES) $(CFLAGS) $(CPPFLAGS) $(DEFS) -c $(srcdir)/relocatable-stub.c |
| |
|
| charset.alias: $(srcdir)/config.charset |
|
| $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ |
|
| mv t-$@ $@ |
|
| |
|
| ref-add.sed : $(srcdir)/ref-add.sin |
|
| sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-$@ |
|
| mv t-$@ $@ |
|
| |
|
| ref-del.sed : $(srcdir)/ref-del.sin |
|
| sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-$@ |
|
| mv t-$@ $@ |
|
| |
|
| # Installs the library and include files only. Typically called with only |
# Installs the library and include files only. Typically called with only |
| # $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. |
# $(libdir) and $(includedir) - don't use $(prefix) and $(exec_prefix) here. |
| install-lib : all force |
install-lib : all force |
| $(mkinstalldirs) $(libdir) |
$(mkinstalldirs) $(libdir) |
| $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(libdir)/libcharset.la | $(LIBTOOL_INSTALL) $(INSTALL) libcharset.la $(libdir)/libcharset.la |
| test -f $(libdir)/charset.alias && orig=$(libdir)/charset.alias \ | |
| || orig=charset.alias; \ | |
| sed -f ref-add.sed $$orig > $(libdir)/t-charset.alias; \ | |
| $(INSTALL_DATA) $(libdir)/t-charset.alias $(libdir)/charset.alias; \ | |
| rm -f $(libdir)/t-charset.alias | |
| |
|
| # The following is needed in order to install a simple file in $(libdir) |
# The following is needed in order to install a simple file in $(libdir) |
| # which is shared with other installed packages. We use a list of referencing |
# which is shared with other installed packages. We use a list of referencing |
|
Line 95 install-lib : all force
|
Line 74 install-lib : all force
|
| # avoid installing it. |
# avoid installing it. |
| |
|
| install : all force |
install : all force |
| if test @GLIBC21@ = no; then \ |
|
| case '@host_os@' in \ |
|
| darwin[56]*) \ |
|
| need_charset_alias=true ;; \ |
|
| darwin* | cygwin* | mingw* | pw32* | cegcc*) \ |
|
| need_charset_alias=false ;; \ |
|
| *) \ |
|
| need_charset_alias=true ;; \ |
|
| esac ; \ |
|
| else \ |
|
| need_charset_alias=false ; \ |
|
| fi ; \ |
|
| $(mkinstalldirs) $(DESTDIR)$(libdir) ; \ |
$(mkinstalldirs) $(DESTDIR)$(libdir) ; \ |
| $(LIBTOOL_INSTALL) $(INSTALL_DATA) libcharset.la $(DESTDIR)$(libdir)/libcharset.la | $(LIBTOOL_INSTALL) $(INSTALL) libcharset.la $(DESTDIR)$(libdir)/libcharset.la |
| if test -f $(DESTDIR)$(libdir)/charset.alias; then \ | |
| sed -f ref-add.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \ | |
| $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \ | |
| rm -f $(DESTDIR)$(libdir)/t-charset.alias; \ | |
| else \ | |
| if $$need_charset_alias; then \ | |
| sed -f ref-add.sed charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \ | |
| $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \ | |
| rm -f $(DESTDIR)$(libdir)/t-charset.alias; \ | |
| fi ; \ | |
| fi | |
| |
|
| install-strip : install |
install-strip : install |
| |
|
|
Line 128 installdirs : force
|
Line 84 installdirs : force
|
| |
|
| uninstall : force |
uninstall : force |
| $(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libcharset.la |
$(LIBTOOL_UNINSTALL) $(RM) $(DESTDIR)$(libdir)/libcharset.la |
| if test -f $(DESTDIR)$(libdir)/charset.alias; then \ |
|
| sed -f ref-del.sed $(DESTDIR)$(libdir)/charset.alias > $(DESTDIR)$(libdir)/t-charset.alias; \ |
|
| if grep '^# Packages using this file: $$' $(DESTDIR)$(libdir)/t-charset.alias > /dev/null; then \ |
|
| rm -f $(DESTDIR)$(libdir)/charset.alias; \ |
|
| else \ |
|
| $(INSTALL_DATA) $(DESTDIR)$(libdir)/t-charset.alias $(DESTDIR)$(libdir)/charset.alias; \ |
|
| fi; \ |
|
| rm -f $(DESTDIR)$(libdir)/t-charset.alias; \ |
|
| fi |
|
| |
|
| check : all |
check : all |
| |
|
| mostlyclean : clean |
mostlyclean : clean |
| |
|
| clean : force |
clean : force |
| $(RM) *.o *.lo *.a *.la *.o.lock core *.stackdump charset.alias ref-add.sed ref-del.sed | $(RM) *.o *.lo *.a *.la *.o.lock core *.stackdump |
| $(RM) -r .libs _libs |
$(RM) -r .libs _libs |
| |
|
| distclean : clean |
distclean : clean |
| $(RM) config.status config.log config.cache Makefile libtool | $(RM) Makefile |
| |
|
| maintainer-clean : distclean |
maintainer-clean : distclean |
| |
|
| |
# List of source files. |
| |
SOURCE_FILES = \ |
| |
ChangeLog Makefile.in \ |
| |
relocatable-stub.c |
| |
# List of files bidirectionally synced with gnulib. |
| |
GNULIB_SYNCED_FILES = \ |
| |
localcharset.c |
| |
# List of distributed files imported from other packages. |
| |
IMPORTED_FILES = |
| |
# List of distributed files generated by autotools or Makefile.devel. |
| |
GENERATED_FILES = |
| |
# List of distributed files generated by "make". |
| |
DISTRIBUTED_BUILT_FILES = |
| |
# List of distributed files. |
| |
DISTFILES = $(SOURCE_FILES) $(GNULIB_SYNCED_FILES) $(IMPORTED_FILES) $(GENERATED_FILES) $(DISTRIBUTED_BUILT_FILES) |
| |
|
| |
distdir : $(DISTFILES) |
| |
for file in $(DISTFILES); do \ |
| |
if test -f $$file; then dir='.'; else dir='$(srcdir)'; fi; \ |
| |
cp -p "$$dir/$$file" '$(distdir)'/$$file || exit 1; \ |
| |
done |
| |
|
| force : |
force : |
| |
|