1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
10 SIGNAL_SUBDIR = signal
14 SYSCALLS_SUBDIR = syscalls
26 STDIO64_SUBDIR = stdio64
29 if ENABLE_NEWLIB_ICONV
30 NEWLIB_ICONV_DIRS = iconv
31 NEWLIB_ICONV_LIBS = iconv/ces/lib.$(aext) iconv/ccs/lib.$(aext) iconv/lib/lib.$(aext)
37 # The order of SUBDIRS is important for the integrated documentation.
38 # Do not change the order without considering the doc impact.
39 SUBDIRS = argz stdlib ctype search $(STDIO_SUBDIR) $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale sys reent \
40 $(extra_dir) errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) .
45 noinst_LTLIBRARIES = libc.la
47 argz/libargz.$(aext) \
48 stdlib/libstdlib.$(aext) \
49 ctype/libctype.$(aext) \
50 search/libsearch.$(aext) \
53 string/libstring.$(aext) \
55 time/libtime.$(aext) \
56 locale/liblocale.$(aext) \
57 reent/libreent.$(aext) \
59 errno/liberrno.$(aext) \
60 misc/libmisc.$(aext) \
67 noinst_LIBRARIES = libc.a
86 $(NEWLIB_ICONV_LIBS) \
91 libc_la_LDFLAGS = -Xcompiler -nostdlib
95 libc_la_LIBADD = $(SUBLIBS)
96 libc_la_DEPENDENCIES = $(SUBLIBS)
103 for i in $(SUBLIBS); do \
106 $(AR) $(AR_FLAGS) ../$@ *.o
115 ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
119 # This is a list of the stmp-def files in each subdirectory which
120 # builds .def files. We don't list subdirectories which don't build
121 # .def files; if the list of subdirectories changes, we must change
127 $(LIBC_STDIO64_DEF) \
136 libc.info: sigset.texi extra.texi stdio64.texi iconvset.texi \
137 targetdep.tex $(SUBDEFS)
139 libc.dvi: sigset.texi extra.texi stdio64.texi iconvset.texi \
140 targetdep.tex $(SUBDEFS)
142 stmp-sigset: config.status
143 if test -n "$(LIBC_SIGNAL_LIB)"; then \
144 echo "@set SIGNALS" >tmp.texi; \
146 echo "@clear SIGNALS" >tmp.texi; \
148 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
151 sigset.texi: stmp-sigset ; @true
153 stmp-iconvset: config.status
154 if test -n "$(NEWLIB_ICONV_LIBS)"; then \
155 echo "@set ICONV" >tmp.texi; \
157 echo "@clear ICONV" >tmp.texi; \
159 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi iconvset.texi
162 iconvset.texi: stmp-iconvset ; @true
164 stmp-extra: config.status
165 if test -n "$(LIBC_EXTRA_LIB)"; then \
166 echo "@set EXTRA" >tmp.texi; \
168 echo "@clear EXTRA" >tmp.texi; \
170 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi extra.texi
173 extra.texi: stmp-extra ; @true
175 stmp-stdio64: config.status
176 if test -n "$(LIBC_STDIO64_LIB)"; then \
177 echo "@set STDIO64" >tmp.texi; \
179 echo "@clear STDIO64" >tmp.texi; \
181 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi stdio64.texi
184 stdio64.texi: stmp-stdio64 ; @true
186 stmp-targetdep: force
188 targetdoc=`pwd`/tmp.texi; \
189 for d in $(SUBDIRS); do \
190 if test "$$d" != "."; then \
191 (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
194 cat $(srcdir)/sys.tex >>tmp.texi
195 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
198 targetdep.tex: stmp-targetdep ; @true
200 $(SUBDEFS): stmp-targetdep ; @true
202 info_TEXINFOS = libc.texinfo
203 libc_TEXINFOS = sigset.texi extra.texi stdio64.texi iconvset.texi \
204 targetdep.tex $(SUBDEFS)
209 CLEANFILES = $(CRT0) \
210 sigset.texi stmp-sigset extra.texi stmp-extra \
211 stdio64.texi stmp-stdio64 tmp.texi targetdep.tex stmp-targetdep
213 ACLOCAL_AMFLAGS = -I ..
214 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host