2000-02-17 19:39:52 +00:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
if HAVE_POSIX_DIR
|
|
|
|
POSIX_SUBDIR = posix
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_SIGNAL_DIR
|
|
|
|
SIGNAL_SUBDIR = signal
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_SYSCALL_DIR
|
|
|
|
SYSCALLS_SUBDIR = syscalls
|
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_UNIX_DIR
|
|
|
|
UNIX_SUBDIR = unix
|
|
|
|
endif
|
|
|
|
|
2007-01-31 19:34:38 +00:00
|
|
|
if HAVE_STDIO_DIR
|
|
|
|
STDIO_SUBDIR = stdio
|
|
|
|
endif
|
|
|
|
|
2002-07-17 23:25:44 +00:00
|
|
|
if HAVE_STDIO64_DIR
|
|
|
|
STDIO64_SUBDIR = stdio64
|
|
|
|
endif
|
|
|
|
|
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* acinclude.m4 (--enable-newlib-iconv): New configuration option.
(--enable-newlib-builtin-converters): Ditto.
* configure.in: Add code to set _ICONV_ENABLED flag.
Set _MB_LEN_MAX to 1 if not mb enabled.
* configure: Regenerated.
* aclocal.m4: Ditto.
* Makefile.in: Ditto.
* newlib.hin: Add _ICONV_ENABLED flag.
* libc/Makefile.am: Add support for iconv.
* libc/configure.in: Ditto.
* libc/Makefile.in: Regenerated.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/libc.texinfo: Add iconv documentation.
* libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
libc/iconv/README.TODO, libc/iconv/charset.aliases,
libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
libc/iconv/ccs/binary/big5.cct,
libc/iconv/ccs/binary/cns11643_plane1.cct,
libc/iconv/ccs/binary/cns11643_plane14.cct,
libc/iconv/ccs/binary/cns11643_plane2.cct,
libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
libc/iconv/ccs/binary/iso_8859_1.cct,
libc/iconv/ccs/binary/iso_8859_15.cct,
libc/iconv/ccs/binary/iso_8859_2.cct,
libc/iconv/ccs/binary/iso_8859_4.cct,
libc/iconv/ccs/binary/iso_8859_5.cct,
libc/iconv/ccs/binary/jis_x0201.cct,
libc/iconv/ccs/binary/jis_x0208_1983.cct,
libc/iconv/ccs/binary/jis_x0212_1990.cct,
libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
libc/iconv/ccs/binary/ksx1001.cct,
libc/iconv/ccs/binary/shift_jis.cct,
libc/iconv/ccs/binary/us_ascii.cct,
libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
libc/iconv/lib/local.h, libc/include/iconv.h: New files.
* libc/sys/linux/include/iconv.h: Ditto.
* libc/include/sys/_types.h (_iconv_t): Added.
* doc/aclocal.m4: Regenerated.
* doc/configure: Ditto.
* doc/Makefile.in: Ditto.
* iconvdata/Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*configure: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*configure: Ditto.
2004-01-23 21:37:46 +00:00
|
|
|
if ENABLE_NEWLIB_ICONV
|
|
|
|
NEWLIB_ICONV_DIRS = iconv
|
|
|
|
NEWLIB_ICONV_LIBS = iconv/ces/lib.$(aext) iconv/ccs/lib.$(aext) iconv/lib/lib.$(aext)
|
|
|
|
else
|
|
|
|
NEWLIB_ICONV_DIRS =
|
|
|
|
NEWLIB_ICONV_LIBS =
|
|
|
|
endif
|
|
|
|
|
2010-03-02 12:05:18 +00:00
|
|
|
if HAVE_XDR_DIR
|
|
|
|
XDR_SUBDIR = xdr
|
|
|
|
endif
|
|
|
|
|
2000-02-17 19:39:52 +00:00
|
|
|
# The order of SUBDIRS is important for the integrated documentation.
|
|
|
|
# Do not change the order without considering the doc impact.
|
2022-01-22 23:17:35 -05:00
|
|
|
SUBDIRS = argz stdlib ctype search $(STDIO_SUBDIR) $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale reent \
|
2022-01-22 23:00:39 -05:00
|
|
|
errno misc $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) \
|
|
|
|
$(XDR_SUBDIR) ssp
|
2022-01-22 23:10:46 -05:00
|
|
|
if HAVE_SYS_DIR
|
|
|
|
SUBDIRS += $(SYS_DIR)
|
|
|
|
endif
|
2022-01-22 23:00:39 -05:00
|
|
|
if HAVE_LIBC_MACHINE_DIR
|
|
|
|
SUBDIRS += $(LIBC_MACHINE_DIR)
|
|
|
|
endif
|
|
|
|
# NB: This must come last to avoid parallel build issues with current lib.a
|
|
|
|
# accumulation logic.
|
|
|
|
SUBDIRS += .
|
2000-02-17 19:39:52 +00:00
|
|
|
|
|
|
|
noinst_DATA = $(CRT0)
|
|
|
|
|
2001-12-13 23:50:11 +00:00
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libc.la
|
2000-02-17 19:39:52 +00:00
|
|
|
SUBLIBS = \
|
2002-06-14 20:51:09 +00:00
|
|
|
argz/libargz.$(aext) \
|
2001-12-13 23:50:11 +00:00
|
|
|
stdlib/libstdlib.$(aext) \
|
|
|
|
ctype/libctype.$(aext) \
|
2002-06-20 19:51:40 +00:00
|
|
|
search/libsearch.$(aext) \
|
2007-01-31 19:34:38 +00:00
|
|
|
$(LIBC_STDIO_LIB) \
|
2002-07-17 23:25:44 +00:00
|
|
|
$(LIBC_STDIO64_LIB) \
|
2010-03-02 12:05:18 +00:00
|
|
|
$(LIBC_XDR_LIB) \
|
2001-12-13 23:50:11 +00:00
|
|
|
string/libstring.$(aext) \
|
2000-02-17 19:39:52 +00:00
|
|
|
$(LIBC_SIGNAL_LIB) \
|
2001-12-13 23:50:11 +00:00
|
|
|
time/libtime.$(aext) \
|
|
|
|
locale/liblocale.$(aext) \
|
|
|
|
reent/libreent.$(aext) \
|
|
|
|
errno/liberrno.$(aext) \
|
|
|
|
misc/libmisc.$(aext) \
|
2017-11-27 23:54:09 -06:00
|
|
|
ssp/libssp.$(aext) \
|
2000-02-17 19:39:52 +00:00
|
|
|
$(LIBC_UNIX_LIB) \
|
|
|
|
$(LIBC_POSIX_LIB) \
|
2005-10-26 22:10:51 +00:00
|
|
|
$(LIBC_SYSCALL_LIB) \
|
|
|
|
$(LIBC_MACHINE_LIB) \
|
|
|
|
$(LIBC_SYS_LIB)
|
2001-12-13 23:50:11 +00:00
|
|
|
else
|
|
|
|
noinst_LIBRARIES = libc.a
|
|
|
|
SUBLIBS = \
|
2002-06-14 20:51:09 +00:00
|
|
|
argz/lib.$(aext) \
|
2001-12-13 23:50:11 +00:00
|
|
|
stdlib/lib.$(aext) \
|
|
|
|
ctype/lib.$(aext) \
|
2002-06-20 19:51:40 +00:00
|
|
|
search/lib.$(aext) \
|
2007-01-31 19:34:38 +00:00
|
|
|
$(LIBC_STDIO_LIB) \
|
2002-07-17 23:25:44 +00:00
|
|
|
$(LIBC_STDIO64_LIB) \
|
2010-03-02 12:05:18 +00:00
|
|
|
$(LIBC_XDR_LIB) \
|
2001-12-13 23:50:11 +00:00
|
|
|
string/lib.$(aext) \
|
|
|
|
$(LIBC_SIGNAL_LIB) \
|
|
|
|
time/lib.$(aext) \
|
|
|
|
locale/lib.$(aext) \
|
|
|
|
reent/lib.$(aext) \
|
|
|
|
errno/lib.$(aext) \
|
|
|
|
misc/lib.$(aext) \
|
2017-11-27 23:54:09 -06:00
|
|
|
ssp/lib.$(aext) \
|
2001-12-13 23:50:11 +00:00
|
|
|
$(LIBC_UNIX_LIB) \
|
|
|
|
$(LIBC_POSIX_LIB) \
|
2004-01-23 Artem B. Bityuckiy <abitytsky@softminecorp.com>
* acinclude.m4 (--enable-newlib-iconv): New configuration option.
(--enable-newlib-builtin-converters): Ditto.
* configure.in: Add code to set _ICONV_ENABLED flag.
Set _MB_LEN_MAX to 1 if not mb enabled.
* configure: Regenerated.
* aclocal.m4: Ditto.
* Makefile.in: Ditto.
* newlib.hin: Add _ICONV_ENABLED flag.
* libc/Makefile.am: Add support for iconv.
* libc/configure.in: Ditto.
* libc/Makefile.in: Regenerated.
* libc/aclocal.m4: Ditto.
* libc/configure: Ditto.
* libc/libc.texinfo: Add iconv documentation.
* libc/iconv/AUTHORS, libc/iconv/COPYING, libc/iconv/Makefile.am,
libc/iconv/Makefile.in, libc/iconv/README.ORIGINAL,
libc/iconv/README.TODO, libc/iconv/charset.aliases,
libc/iconv/iconv.tex, libc/iconv/ccs/Makefile.am,
libc/iconv/ccs/Makefile.in, libc/iconv/ccs/README.CCS.SOURCES,
libc/iconv/ccs/big5.c, libc/iconv/ccs/cns11643_plane1.c,
libc/iconv/ccs/cns11643_plane14.c, libc/iconv/ccs/cns11643_plane2.c,
libc/iconv/ccs/cp775.c, libc/iconv/ccs/cp850.c,
libc/iconv/ccs/cp852.c, libc/iconv/ccs/cp855.c,
libc/iconv/ccs/cp866.c, libc/iconv/ccs/gb_2312_80.c,
libc/iconv/ccs/iconv_mktbl, libc/iconv/ccs/iso_8859_1.c,
libc/iconv/ccs/iso_8859_15.c, libc/iconv/ccs/iso_8859_2.c,
libc/iconv/ccs/iso_8859_4.c, libc/iconv/ccs/iso_8859_5.c,
libc/iconv/ccs/jis_x0201.c, libc/iconv/ccs/jis_x0208_1983.c,
libc/iconv/ccs/jis_x0212_1990.c, libc/iconv/ccs/koi8_r.c,
libc/iconv/ccs/koi8_u.c, libc/iconv/ccs/ksx1001.c,
libc/iconv/ccs/shift_jis.c, libc/iconv/ccs/us_ascii.c,
libc/iconv/ccs/binary/Makefile.am, libc/iconv/ccs/binary/Makefile.in,
libc/iconv/ccs/binary/big5.cct,
libc/iconv/ccs/binary/cns11643_plane1.cct,
libc/iconv/ccs/binary/cns11643_plane14.cct,
libc/iconv/ccs/binary/cns11643_plane2.cct,
libc/iconv/ccs/binary/cp775.cct, libc/iconv/ccs/binary/cp850.cct,
libc/iconv/ccs/binary/cp852.cct, libc/iconv/ccs/binary/cp855.cct,
libc/iconv/ccs/binary/cp866.cct, libc/iconv/ccs/binary/gb_2312_80.cct,
libc/iconv/ccs/binary/iso_8859_1.cct,
libc/iconv/ccs/binary/iso_8859_15.cct,
libc/iconv/ccs/binary/iso_8859_2.cct,
libc/iconv/ccs/binary/iso_8859_4.cct,
libc/iconv/ccs/binary/iso_8859_5.cct,
libc/iconv/ccs/binary/jis_x0201.cct,
libc/iconv/ccs/binary/jis_x0208_1983.cct,
libc/iconv/ccs/binary/jis_x0212_1990.cct,
libc/iconv/ccs/binary/koi8_r.cct, libc/iconv/ccs/binary/koi8_u.cct,
libc/iconv/ccs/binary/ksx1001.cct,
libc/iconv/ccs/binary/shift_jis.cct,
libc/iconv/ccs/binary/us_ascii.cct,
libc/iconv/ces/Makefile.am, libc/iconv/ces/Makefile.in,
libc/iconv/ces/euc-jp.c, libc/iconv/ces/euc-kr.c,
libc/iconv/ces/euc-tw.c, libc/iconv/ces/gb2312.c,
libc/iconv/ces/iso-10646-ucs-2.c, libc/iconv/ces/iso-10646-ucs-4.c,
libc/iconv/ces/ucs-2-internal.c, libc/iconv/ces/ucs-4-internal.c,
libc/iconv/ces/utf-16.c, libc/iconv/ces/utf-8.c,
libc/iconv/lib/Makefile.am, libc/iconv/lib/Makefile.in,
libc/iconv/lib/aliases.c, libc/iconv/lib/bialiasesi.c,
libc/iconv/lib/biccs.c, libc/iconv/lib/bices.c,
libc/iconv/lib/ccs.c, libc/iconv/lib/ces.c,
libc/iconv/lib/ces_euc.c, libc/iconv/lib/ces_iso2022.c,
libc/iconv/lib/ces_table.c, libc/iconv/lib/converter.c,
libc/iconv/lib/deps.h, libc/iconv/lib/endian.h,
libc/iconv/lib/iconv.c, libc/iconv/lib/loaddata.c,
libc/iconv/lib/local.h, libc/include/iconv.h: New files.
* libc/sys/linux/include/iconv.h: Ditto.
* libc/include/sys/_types.h (_iconv_t): Added.
* doc/aclocal.m4: Regenerated.
* doc/configure: Ditto.
* doc/Makefile.in: Ditto.
* iconvdata/Makefile.in: Ditto.
* iconvdata/aclocal.m4: Ditto.
* iconvdata/configure: Ditto.
* libc/*aclocal.m4: Ditto.
* libc/*Makefile.in: Ditto.
* libc/*configure: Ditto.
* libm/*aclocal.m4: Ditto.
* libm/*Makefile.in: Ditto.
* libm/*configure: Ditto.
2004-01-23 21:37:46 +00:00
|
|
|
$(LIBC_SYSCALL_LIB) \
|
2005-10-26 22:10:51 +00:00
|
|
|
$(NEWLIB_ICONV_LIBS) \
|
|
|
|
$(LIBC_MACHINE_LIB) \
|
|
|
|
$(LIBC_SYS_LIB)
|
2001-12-13 23:50:11 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
libc_la_LDFLAGS = -Xcompiler -nostdlib
|
2000-02-17 19:39:52 +00:00
|
|
|
|
2001-12-13 23:50:11 +00:00
|
|
|
if USE_LIBTOOL
|
|
|
|
libc_la_SOURCES =
|
|
|
|
libc_la_LIBADD = $(SUBLIBS)
|
2002-09-20 17:11:29 +00:00
|
|
|
libc_la_DEPENDENCIES = $(SUBLIBS)
|
2001-12-13 23:50:11 +00:00
|
|
|
else
|
2000-02-17 19:39:52 +00:00
|
|
|
libc.a: $(SUBLIBS)
|
|
|
|
rm -f $@
|
|
|
|
rm -rf tmp
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp; \
|
|
|
|
for i in $(SUBLIBS); do \
|
|
|
|
$(AR) x ../$$i; \
|
|
|
|
done; \
|
|
|
|
$(AR) $(AR_FLAGS) ../$@ *.o
|
|
|
|
$(RANLIB) $@
|
|
|
|
rm -rf tmp
|
2001-12-13 23:50:11 +00:00
|
|
|
endif # USE_LIBTOOL
|
2000-02-17 19:39:52 +00:00
|
|
|
|
|
|
|
$(SUBLIBS): ; @true
|
|
|
|
|
|
|
|
# This is a list of the stmp-def files in each subdirectory which
|
|
|
|
# builds .def files. We don't list subdirectories which don't build
|
|
|
|
# .def files; if the list of subdirectories changes, we must change
|
|
|
|
# this as well.
|
|
|
|
SUBDEFS = \
|
|
|
|
stdlib/stmp-def \
|
|
|
|
ctype/stmp-def \
|
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The
stdio/def is handled dynamically, but libc.texi always expects it
to be included, and fails if it isn't. So making it required when
building docs is safe.
The xdr subdir is handled dynamically, but it doesn't include any
docs, so the dynamic logic isn't (currently) adding any value. So
making it required when building docs is safe.
That leaves: iconv, stdio64, posix, and signal subdirs. The chapters
have a little disclaimer saying they are system-dependent, but even
then, imo having stable manuals regardless of the target is preferable,
and we can add more disclaimer language to these chapters if we want.
This doesn't touch the man page codepaths, just the info/pdf.
2022-01-21 20:59:36 -05:00
|
|
|
stdio/stmp-def \
|
|
|
|
stdio64/stmp-def \
|
|
|
|
posix/stmp-def \
|
|
|
|
xdr/stmp-def \
|
2000-02-17 19:39:52 +00:00
|
|
|
string/stmp-def \
|
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The
stdio/def is handled dynamically, but libc.texi always expects it
to be included, and fails if it isn't. So making it required when
building docs is safe.
The xdr subdir is handled dynamically, but it doesn't include any
docs, so the dynamic logic isn't (currently) adding any value. So
making it required when building docs is safe.
That leaves: iconv, stdio64, posix, and signal subdirs. The chapters
have a little disclaimer saying they are system-dependent, but even
then, imo having stable manuals regardless of the target is preferable,
and we can add more disclaimer language to these chapters if we want.
This doesn't touch the man page codepaths, just the info/pdf.
2022-01-21 20:59:36 -05:00
|
|
|
signal/stmp-def \
|
2000-02-17 19:39:52 +00:00
|
|
|
time/stmp-def \
|
|
|
|
locale/stmp-def \
|
|
|
|
reent/stmp-def \
|
2011-01-05 17:18:16 +00:00
|
|
|
misc/stmp-def
|
2000-02-17 19:39:52 +00:00
|
|
|
|
2016-06-24 21:50:15 +01:00
|
|
|
# ditto for stmp-xml files in each subdirectory which builds .xml files
|
|
|
|
SUBXMLS = $(SUBDEFS:stmp-def=stmp-xml)
|
|
|
|
|
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The
stdio/def is handled dynamically, but libc.texi always expects it
to be included, and fails if it isn't. So making it required when
building docs is safe.
The xdr subdir is handled dynamically, but it doesn't include any
docs, so the dynamic logic isn't (currently) adding any value. So
making it required when building docs is safe.
That leaves: iconv, stdio64, posix, and signal subdirs. The chapters
have a little disclaimer saying they are system-dependent, but even
then, imo having stable manuals regardless of the target is preferable,
and we can add more disclaimer language to these chapters if we want.
This doesn't touch the man page codepaths, just the info/pdf.
2022-01-21 20:59:36 -05:00
|
|
|
libc.info: targetdep.tex $(SUBDEFS)
|
2000-02-17 19:39:52 +00:00
|
|
|
|
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The
stdio/def is handled dynamically, but libc.texi always expects it
to be included, and fails if it isn't. So making it required when
building docs is safe.
The xdr subdir is handled dynamically, but it doesn't include any
docs, so the dynamic logic isn't (currently) adding any value. So
making it required when building docs is safe.
That leaves: iconv, stdio64, posix, and signal subdirs. The chapters
have a little disclaimer saying they are system-dependent, but even
then, imo having stable manuals regardless of the target is preferable,
and we can add more disclaimer language to these chapters if we want.
This doesn't touch the man page codepaths, just the info/pdf.
2022-01-21 20:59:36 -05:00
|
|
|
libc.dvi: targetdep.tex $(SUBDEFS)
|
2010-04-22 23:32:42 +00:00
|
|
|
|
2000-02-17 19:39:52 +00:00
|
|
|
stmp-targetdep: force
|
2010-05-06 23:25:16 +00:00
|
|
|
rm -f tmp-targetdep.texi
|
|
|
|
targetdoc=`pwd`/tmp-targetdep.texi; \
|
2000-02-17 19:39:52 +00:00
|
|
|
for d in $(SUBDIRS); do \
|
2022-01-26 21:41:47 -05:00
|
|
|
if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \
|
2000-02-17 19:39:52 +00:00
|
|
|
(cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
2010-05-06 23:25:16 +00:00
|
|
|
cat $(srcdir)/sys.tex >>tmp-targetdep.texi
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp-targetdep.texi targetdep.tex
|
2000-02-17 19:39:52 +00:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
targetdep.tex: stmp-targetdep ; @true
|
|
|
|
|
|
|
|
$(SUBDEFS): stmp-targetdep ; @true
|
|
|
|
|
2021-12-14 20:30:39 +00:00
|
|
|
TEXINFO_TEX = ../../texinfo/texinfo.tex
|
2022-01-01 20:28:37 -05:00
|
|
|
info_TEXINFOS = libc.texi
|
newlib: libc: include all chapters all the time in the manual
THe stdio subdir is actually required by the documentation. The
stdio/def is handled dynamically, but libc.texi always expects it
to be included, and fails if it isn't. So making it required when
building docs is safe.
The xdr subdir is handled dynamically, but it doesn't include any
docs, so the dynamic logic isn't (currently) adding any value. So
making it required when building docs is safe.
That leaves: iconv, stdio64, posix, and signal subdirs. The chapters
have a little disclaimer saying they are system-dependent, but even
then, imo having stable manuals regardless of the target is preferable,
and we can add more disclaimer language to these chapters if we want.
This doesn't touch the man page codepaths, just the info/pdf.
2022-01-21 20:59:36 -05:00
|
|
|
libc_TEXINFOS = targetdep.tex $(SUBDEFS)
|
2006-08-01 20:20:25 +00:00
|
|
|
|
2016-06-24 21:50:15 +01:00
|
|
|
docbook-recursive: force
|
|
|
|
for d in $(SUBDIRS); do \
|
2022-01-26 21:41:47 -05:00
|
|
|
if test "$$d" != "." && test "$$d" != "$(LIBC_MACHINE_DIR)"; then \
|
2016-06-24 21:50:15 +01:00
|
|
|
(cd $$d && $(MAKE) docbook) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
$(SUBXMLS): docbook-recursive
|
|
|
|
|
|
|
|
man: $(SUBXMLS) libc.in.xml
|
|
|
|
xsltproc --xinclude --path ${builddir} --nonet ${srcdir}/../refcontainers.xslt ${srcdir}/libc.in.xml >libc.xml
|
|
|
|
xmlto --skip-validation man -m ${srcdir}/../man.xsl libc.xml
|
|
|
|
|
|
|
|
install-man: man
|
|
|
|
mkdir -p $(DESTDIR)$(mandir)/man3
|
|
|
|
$(INSTALL_DATA) *.3 $(DESTDIR)$(mandir)/man3
|
|
|
|
|
2000-02-17 19:39:52 +00:00
|
|
|
.PHONY: force
|
|
|
|
force:
|
|
|
|
|
2022-01-22 23:17:35 -05:00
|
|
|
CLEANFILES = \
|
2022-01-21 07:04:19 -05:00
|
|
|
sigset.texi stmp-sigset \
|
2010-05-06 23:25:16 +00:00
|
|
|
stdio64.texi stmp-stdio64 targetdep.tex stmp-targetdep \
|
2022-01-21 07:04:19 -05:00
|
|
|
tmp-sigset.texi tmp-iconvset.texi \
|
2016-06-24 21:50:15 +01:00
|
|
|
tmp-stdio64.texi tmp-posix.texi tmp-targetdep.texi \
|
|
|
|
*.xml *.3
|
2000-02-17 19:39:52 +00:00
|
|
|
|
2021-12-30 13:29:02 -05:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../.. -I ../../config
|
2000-02-17 19:39:52 +00:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|