Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-22 05:50:20 +0300
committerMike Frysinger <vapier@gentoo.org>2022-02-05 07:57:12 +0300
commitfc2b4ffee0ec7697a02ae7185f1acb7927f2f115 (patch)
treeffeef100a30966fce8e55fb3b82fa1db41f0c852 /newlib/libc/stdlib
parent44f6310bf93748ca1d55abcb9a2c82a432643256 (diff)
newlib: libc: move manual into top-level build
This doesn't migrate all the docs, just the libc's manual (pdf/info). This is to show the basic form of migrating the chew files. For subdirs that didn't have any docs, I've stripped their settings for clarity. If someone wanted to suddenly add docs, they can add the corresponding Makefile.inc files easily.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/Makefile.am58
-rw-r--r--newlib/libc/stdlib/Makefile.in68
-rw-r--r--newlib/libc/stdlib/Makefile.inc51
3 files changed, 72 insertions, 105 deletions
diff --git a/newlib/libc/stdlib/Makefile.am b/newlib/libc/stdlib/Makefile.am
index f0e3b0003..b88aee40b 100644
--- a/newlib/libc/stdlib/Makefile.am
+++ b/newlib/libc/stdlib/Makefile.am
@@ -222,6 +222,12 @@ endif # USE_LIBTOOL
include $(srcdir)/../../Makefile.shared
+LIBC_CHEWOUT_FILES =
+LIBC_CHAPTERS =
+include ./Makefile.inc
+CHEWOUT_FILES = $(LIBC_CHEWOUT_FILES)
+CHAPTERS = $(LIBC_CHAPTERS)
+
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
$(lpfx)$(MALLOCR).$(oext): $(MALLOCR).c
@@ -260,58 +266,6 @@ $(lpfx)$(MSIZER).$(oext): $(MALLOCR).c
$(lpfx)$(MALLOPTR).$(oext): $(MALLOCR).c
$(MALLOC_COMPILE) -DDEFINE_MALLOPT -c $(srcdir)/$(MALLOCR).c -o $@
-CHEWOUT_FILES= \
- _Exit.def \
- a64l.def \
- abort.def \
- abs.def \
- assert.def \
- atexit.def \
- atof.def \
- atoi.def \
- atoll.def \
- calloc.def \
- div.def \
- ecvtbuf.def \
- efgcvt.def \
- envlock.def \
- exit.def \
- getenv.def \
- itoa.def \
- labs.def \
- ldiv.def \
- llabs.def \
- lldiv.def \
- malloc.def \
- mblen.def \
- mbsnrtowcs.def \
- mbstowcs.def \
- mbtowc.def \
- mlock.def \
- mstats.def \
- on_exit.def \
- rand.def \
- rand48.def \
- random.def \
- rpmatch.def \
- strtod.def \
- strtol.def \
- strtoll.def \
- strtoul.def \
- strtoull.def \
- utoa.def \
- wcsnrtombs.def \
- wcstod.def \
- wcstol.def \
- wcstoll.def \
- wcstoul.def \
- wcstoull.def \
- system.def \
- wcstombs.def \
- wctomb.def
-
-CHAPTERS = stdlib.tex
-
$(lpfx)dtoa.$(oext): dtoa.c mprec.h
$(lpfx)ldtoa.$(oext): ldtoa.c mprec.h gdtoa.h
$(lpfx)gdtoa-ldtoa.$(oext): gdtoa-ldtoa.c mprec.h gdtoaimp.h gdtoa.h
diff --git a/newlib/libc/stdlib/Makefile.in b/newlib/libc/stdlib/Makefile.in
index f6a4f23f7..e3bb0d061 100644
--- a/newlib/libc/stdlib/Makefile.in
+++ b/newlib/libc/stdlib/Makefile.in
@@ -597,63 +597,25 @@ DOCBOOK_CHEW = ${top_srcdir}/../doc/makedocbook.py
DOCBOOK_OUT_FILES = $(CHEWOUT_FILES:.def=.xml)
DOCBOOK_CHAPTERS = $(CHAPTERS:.tex=.xml)
CLEANFILES = $(CHEWOUT_FILES) $(DOCBOOK_OUT_FILES)
+LIBC_CHEWOUT_FILES = _Exit.def a64l.def abort.def abs.def assert.def \
+ atexit.def atof.def atoi.def atoll.def calloc.def div.def \
+ ecvtbuf.def efgcvt.def envlock.def exit.def getenv.def \
+ itoa.def labs.def ldiv.def llabs.def lldiv.def malloc.def \
+ mblen.def mbsnrtowcs.def mbstowcs.def mbtowc.def mlock.def \
+ mstats.def on_exit.def rand.def rand48.def random.def \
+ rpmatch.def strtod.def strtol.def strtoll.def strtoul.def \
+ strtoull.def utoa.def wcsnrtombs.def wcstod.def wcstol.def \
+ wcstoll.def wcstoul.def wcstoull.def system.def wcstombs.def \
+ wctomb.def
+LIBC_CHAPTERS = stdlib.tex
+CHEWOUT_FILES = $(LIBC_CHEWOUT_FILES)
+CHAPTERS = $(LIBC_CHAPTERS)
MALLOC_COMPILE = $(LIB_COMPILE) -DINTERNAL_NEWLIB
-CHEWOUT_FILES = \
- _Exit.def \
- a64l.def \
- abort.def \
- abs.def \
- assert.def \
- atexit.def \
- atof.def \
- atoi.def \
- atoll.def \
- calloc.def \
- div.def \
- ecvtbuf.def \
- efgcvt.def \
- envlock.def \
- exit.def \
- getenv.def \
- itoa.def \
- labs.def \
- ldiv.def \
- llabs.def \
- lldiv.def \
- malloc.def \
- mblen.def \
- mbsnrtowcs.def \
- mbstowcs.def \
- mbtowc.def \
- mlock.def \
- mstats.def \
- on_exit.def \
- rand.def \
- rand48.def \
- random.def \
- rpmatch.def \
- strtod.def \
- strtol.def \
- strtoll.def \
- strtoul.def \
- strtoull.def \
- utoa.def \
- wcsnrtombs.def \
- wcstod.def \
- wcstol.def \
- wcstoll.def \
- wcstoul.def \
- wcstoull.def \
- system.def \
- wcstombs.def \
- wctomb.def
-
-CHAPTERS = stdlib.tex
all: all-am
.SUFFIXES:
.SUFFIXES: .def .xml .c .lo .o .obj
-$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(am__configure_deps)
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../../Makefile.shared $(srcdir)/./Makefile.inc $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
@@ -673,7 +635,7 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
-$(srcdir)/../../Makefile.shared $(am__empty):
+$(srcdir)/../../Makefile.shared $(srcdir)/./Makefile.inc $(am__empty):
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
diff --git a/newlib/libc/stdlib/Makefile.inc b/newlib/libc/stdlib/Makefile.inc
new file mode 100644
index 000000000..d2f199d8c
--- /dev/null
+++ b/newlib/libc/stdlib/Makefile.inc
@@ -0,0 +1,51 @@
+LIBC_CHEWOUT_FILES += \
+ %D%/_Exit.def \
+ %D%/a64l.def \
+ %D%/abort.def \
+ %D%/abs.def \
+ %D%/assert.def \
+ %D%/atexit.def \
+ %D%/atof.def \
+ %D%/atoi.def \
+ %D%/atoll.def \
+ %D%/calloc.def \
+ %D%/div.def \
+ %D%/ecvtbuf.def \
+ %D%/efgcvt.def \
+ %D%/envlock.def \
+ %D%/exit.def \
+ %D%/getenv.def \
+ %D%/itoa.def \
+ %D%/labs.def \
+ %D%/ldiv.def \
+ %D%/llabs.def \
+ %D%/lldiv.def \
+ %D%/malloc.def \
+ %D%/mblen.def \
+ %D%/mbsnrtowcs.def \
+ %D%/mbstowcs.def \
+ %D%/mbtowc.def \
+ %D%/mlock.def \
+ %D%/mstats.def \
+ %D%/on_exit.def \
+ %D%/rand.def \
+ %D%/rand48.def \
+ %D%/random.def \
+ %D%/rpmatch.def \
+ %D%/strtod.def \
+ %D%/strtol.def \
+ %D%/strtoll.def \
+ %D%/strtoul.def \
+ %D%/strtoull.def \
+ %D%/utoa.def \
+ %D%/wcsnrtombs.def \
+ %D%/wcstod.def \
+ %D%/wcstol.def \
+ %D%/wcstoll.def \
+ %D%/wcstoul.def \
+ %D%/wcstoull.def \
+ %D%/system.def \
+ %D%/wcstombs.def \
+ %D%/wctomb.def
+
+LIBC_CHAPTERS += %D%/stdlib.tex