1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
10 SIGNAL_SUBDIR = signal
14 SYSCALLS_SUBDIR = syscalls
21 # The order of SUBDIRS is important for the integrated documentation.
22 # Do not change the order without considering the doc impact.
23 SUBDIRS = argz stdlib ctype stdio string $(SIGNAL_SUBDIR) time locale sys reent \
24 $(extra_dir) errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) .
29 noinst_LTLIBRARIES = libc.la
31 argz/libargz.$(aext) \
32 stdlib/libstdlib.$(aext) \
33 ctype/libctype.$(aext) \
34 stdio/libstdio.$(aext) \
35 string/libstring.$(aext) \
37 time/libtime.$(aext) \
38 locale/liblocale.$(aext) \
40 reent/libreent.$(aext) \
42 errno/liberrno.$(aext) \
43 misc/libmisc.$(aext) \
49 noinst_LIBRARIES = libc.a
70 libc_la_LDFLAGS = -Xcompiler -nostdlib
74 libc_la_LIBADD = $(SUBLIBS)
81 for i in $(SUBLIBS); do \
84 $(AR) $(AR_FLAGS) ../$@ *.o
93 ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
97 info_TEXINFOS = libc.texinfo
99 # This is a list of the stmp-def files in each subdirectory which
100 # builds .def files. We don't list subdirectories which don't build
101 # .def files; if the list of subdirectories changes, we must change
115 libc.info: sigset.texi targetdep.tex $(SUBDEFS)
117 stmp-sigset: config.status
118 if test -n "$(LIBC_SIGNAL_LIB)"; then \
119 echo "@set SIGNALS" >tmp.texi; \
121 echo "@clear SIGNALS" >tmp.texi; \
123 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
126 sigset.texi: stmp-sigset ; @true
128 stmp-targetdep: force
130 targetdoc=`pwd`/tmp.texi; \
131 for d in $(SUBDIRS); do \
132 if test "$$d" != "."; then \
133 (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
136 cat $(srcdir)/sys.tex >>tmp.texi
137 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
140 targetdep.tex: stmp-targetdep ; @true
142 $(SUBDEFS): stmp-targetdep ; @true
147 CLEANFILES = $(CRT0) \
148 sigset.texi stmp-sigset tmp.texi targetdep.tex stmp-targetdep
150 ACLOCAL_AMFLAGS = -I ..
151 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host