2000-02-18 03:39:52 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2002-07-18 07:25:44 +08:00
|
|
|
if HAVE_STDIO64_DIR
|
|
|
|
STDIO64_SUBDIR = stdio64
|
|
|
|
endif
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
# The order of SUBDIRS is important for the integrated documentation.
|
|
|
|
# Do not change the order without considering the doc impact.
|
2002-07-18 07:25:44 +08:00
|
|
|
SUBDIRS = argz stdlib ctype search stdio $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale sys reent \
|
2002-05-02 02:44:13 +08:00
|
|
|
$(extra_dir) errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
noinst_DATA = $(CRT0)
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
if USE_LIBTOOL
|
|
|
|
noinst_LTLIBRARIES = libc.la
|
2000-02-18 03:39:52 +08:00
|
|
|
SUBLIBS = \
|
2002-06-15 04:51:09 +08:00
|
|
|
argz/libargz.$(aext) \
|
2001-12-14 07:50:11 +08:00
|
|
|
stdlib/libstdlib.$(aext) \
|
|
|
|
ctype/libctype.$(aext) \
|
2002-06-21 03:51:40 +08:00
|
|
|
search/libsearch.$(aext) \
|
2001-12-14 07:50:11 +08:00
|
|
|
stdio/libstdio.$(aext) \
|
2002-07-18 07:25:44 +08:00
|
|
|
$(LIBC_STDIO64_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
string/libstring.$(aext) \
|
2000-02-18 03:39:52 +08:00
|
|
|
$(LIBC_SIGNAL_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
time/libtime.$(aext) \
|
|
|
|
locale/liblocale.$(aext) \
|
2000-02-18 03:39:52 +08:00
|
|
|
$(LIBC_SYS_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
reent/libreent.$(aext) \
|
2002-05-02 02:44:13 +08:00
|
|
|
$(LIBC_EXTRA_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
errno/liberrno.$(aext) \
|
|
|
|
misc/libmisc.$(aext) \
|
2000-02-18 03:39:52 +08:00
|
|
|
$(LIBC_MACHINE_LIB) \
|
|
|
|
$(LIBC_UNIX_LIB) \
|
|
|
|
$(LIBC_POSIX_LIB) \
|
|
|
|
$(LIBC_SYSCALL_LIB)
|
2001-12-14 07:50:11 +08:00
|
|
|
else
|
|
|
|
noinst_LIBRARIES = libc.a
|
|
|
|
SUBLIBS = \
|
2002-06-15 04:51:09 +08:00
|
|
|
argz/lib.$(aext) \
|
2001-12-14 07:50:11 +08:00
|
|
|
stdlib/lib.$(aext) \
|
|
|
|
ctype/lib.$(aext) \
|
2002-06-21 03:51:40 +08:00
|
|
|
search/lib.$(aext) \
|
2001-12-14 07:50:11 +08:00
|
|
|
stdio/lib.$(aext) \
|
2002-07-18 07:25:44 +08:00
|
|
|
$(LIBC_STDIO64_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
string/lib.$(aext) \
|
|
|
|
$(LIBC_SIGNAL_LIB) \
|
|
|
|
time/lib.$(aext) \
|
|
|
|
locale/lib.$(aext) \
|
|
|
|
$(LIBC_SYS_LIB) \
|
|
|
|
reent/lib.$(aext) \
|
2002-05-02 02:44:13 +08:00
|
|
|
$(LIBC_EXTRA_LIB) \
|
2001-12-14 07:50:11 +08:00
|
|
|
errno/lib.$(aext) \
|
|
|
|
misc/lib.$(aext) \
|
|
|
|
$(LIBC_MACHINE_LIB) \
|
|
|
|
$(LIBC_UNIX_LIB) \
|
|
|
|
$(LIBC_POSIX_LIB) \
|
|
|
|
$(LIBC_SYSCALL_LIB)
|
|
|
|
endif
|
|
|
|
|
|
|
|
libc_la_LDFLAGS = -Xcompiler -nostdlib
|
2000-02-18 03:39:52 +08:00
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
if USE_LIBTOOL
|
|
|
|
libc_la_SOURCES =
|
|
|
|
libc_la_LIBADD = $(SUBLIBS)
|
2002-09-21 01:11:29 +08:00
|
|
|
libc_la_DEPENDENCIES = $(SUBLIBS)
|
2001-12-14 07:50:11 +08:00
|
|
|
else
|
2000-02-18 03:39:52 +08: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-14 07:50:11 +08:00
|
|
|
endif # USE_LIBTOOL
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
$(SUBLIBS): ; @true
|
|
|
|
|
|
|
|
crt0.o: sys/crt0.o
|
|
|
|
rm -f $@
|
|
|
|
ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
|
|
|
|
|
|
|
|
sys/crt0.o: ; @true
|
|
|
|
|
|
|
|
info_TEXINFOS = libc.texinfo
|
|
|
|
|
|
|
|
# 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 \
|
|
|
|
stdio/stmp-def \
|
2002-07-18 07:25:44 +08:00
|
|
|
$(LIBC_STDIO64_DEF) \
|
2000-02-18 03:39:52 +08:00
|
|
|
string/stmp-def \
|
|
|
|
$(LIBC_SIGNAL_DEF) \
|
|
|
|
time/stmp-def \
|
|
|
|
locale/stmp-def \
|
|
|
|
reent/stmp-def \
|
2002-05-02 02:44:13 +08:00
|
|
|
$(LIBC_EXTRA_DEF) \
|
2000-02-18 03:39:52 +08:00
|
|
|
misc/stmp-def
|
|
|
|
|
2002-07-18 07:25:44 +08:00
|
|
|
libc.info: sigset.texi extra.texi stdio64.texi targetdep.tex $(SUBDEFS)
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
stmp-sigset: config.status
|
|
|
|
if test -n "$(LIBC_SIGNAL_LIB)"; then \
|
|
|
|
echo "@set SIGNALS" >tmp.texi; \
|
|
|
|
else \
|
|
|
|
echo "@clear SIGNALS" >tmp.texi; \
|
|
|
|
fi
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
sigset.texi: stmp-sigset ; @true
|
|
|
|
|
2002-07-16 23:30:32 +08:00
|
|
|
stmp-extra: config.status
|
|
|
|
if test -n "$(LIBC_EXTRA_LIB)"; then \
|
|
|
|
echo "@set EXTRA" >tmp.texi; \
|
|
|
|
else \
|
|
|
|
echo "@clear EXTRA" >tmp.texi; \
|
|
|
|
fi
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi extra.texi
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
extra.texi: stmp-extra ; @true
|
|
|
|
|
2002-07-18 07:25:44 +08:00
|
|
|
stmp-stdio64: config.status
|
|
|
|
if test -n "$(LIBC_STDIO64_LIB)"; then \
|
|
|
|
echo "@set STDIO64" >tmp.texi; \
|
|
|
|
else \
|
|
|
|
echo "@clear STDIO64" >tmp.texi; \
|
|
|
|
fi
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi stdio64.texi
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
stdio64.texi: stmp-stdio64 ; @true
|
|
|
|
|
2000-02-18 03:39:52 +08:00
|
|
|
stmp-targetdep: force
|
|
|
|
rm -f tmp.texi
|
|
|
|
targetdoc=`pwd`/tmp.texi; \
|
|
|
|
for d in $(SUBDIRS); do \
|
|
|
|
if test "$$d" != "."; then \
|
|
|
|
(cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
cat $(srcdir)/sys.tex >>tmp.texi
|
|
|
|
$(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
targetdep.tex: stmp-targetdep ; @true
|
|
|
|
|
|
|
|
$(SUBDEFS): stmp-targetdep ; @true
|
|
|
|
|
|
|
|
.PHONY: force
|
|
|
|
force:
|
|
|
|
|
2001-12-14 07:50:11 +08:00
|
|
|
CLEANFILES = $(CRT0) \
|
2002-07-18 07:25:44 +08:00
|
|
|
sigset.texi stmp-sigset extra.texi stmp-extra \
|
|
|
|
stdio64.texi stmp-stdio64 tmp.texi targetdep.tex stmp-targetdep
|
2000-02-18 03:39:52 +08:00
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I ..
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host
|