1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
10 SIGNAL_SUBDIR = signal
14 SYSCALLS_SUBDIR = syscalls
22 STDIO64_SUBDIR = stdio64
25 if ENABLE_NEWLIB_ICONV
26 NEWLIB_ICONV_DIRS = iconv
27 NEWLIB_ICONV_LIBS = iconv/ces/lib.$(aext) iconv/ccs/lib.$(aext) iconv/lib/lib.$(aext)
33 # The order of SUBDIRS is important for the integrated documentation.
34 # Do not change the order without considering the doc impact.
35 SUBDIRS = argz stdlib ctype search stdio $(STDIO64_SUBDIR) string $(SIGNAL_SUBDIR) time locale sys reent \
36 $(extra_dir) errno misc machine $(UNIX_SUBDIR) $(POSIX_SUBDIR) $(SYSCALLS_SUBDIR) $(NEWLIB_ICONV_DIRS) .
41 noinst_LTLIBRARIES = libc.la
43 argz/libargz.$(aext) \
44 stdlib/libstdlib.$(aext) \
45 ctype/libctype.$(aext) \
46 search/libsearch.$(aext) \
47 stdio/libstdio.$(aext) \
49 string/libstring.$(aext) \
51 time/libtime.$(aext) \
52 locale/liblocale.$(aext) \
54 reent/libreent.$(aext) \
56 errno/liberrno.$(aext) \
57 misc/libmisc.$(aext) \
63 noinst_LIBRARIES = libc.a
87 libc_la_LDFLAGS = -Xcompiler -nostdlib
91 libc_la_LIBADD = $(SUBLIBS)
92 libc_la_DEPENDENCIES = $(SUBLIBS)
99 for i in $(SUBLIBS); do \
102 $(AR) $(AR_FLAGS) ../$@ *.o
111 ln sys/crt0.o $@ >/dev/null 2>/dev/null || cp sys/crt0.o $@
115 info_TEXINFOS = libc.texinfo
117 # This is a list of the stmp-def files in each subdirectory which
118 # builds .def files. We don't list subdirectories which don't build
119 # .def files; if the list of subdirectories changes, we must change
125 $(LIBC_STDIO64_DEF) \
134 libc.info: sigset.texi extra.texi stdio64.texi iconvset.texi \
135 targetdep.tex $(SUBDEFS)
137 stmp-sigset: config.status
138 if test -n "$(LIBC_SIGNAL_LIB)"; then \
139 echo "@set SIGNALS" >tmp.texi; \
141 echo "@clear SIGNALS" >tmp.texi; \
143 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi sigset.texi
146 sigset.texi: stmp-sigset ; @true
148 stmp-iconvset: config.status
149 if test -n "$(NEWLIB_ICONV_LIBS)"; then \
150 echo "@set ICONV" >tmp.texi; \
152 echo "@clear ICONV" >tmp.texi; \
154 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi iconvset.texi
157 iconvset.texi: stmp-iconvset ; @true
159 stmp-extra: config.status
160 if test -n "$(LIBC_EXTRA_LIB)"; then \
161 echo "@set EXTRA" >tmp.texi; \
163 echo "@clear EXTRA" >tmp.texi; \
165 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi extra.texi
168 extra.texi: stmp-extra ; @true
170 stmp-stdio64: config.status
171 if test -n "$(LIBC_STDIO64_LIB)"; then \
172 echo "@set STDIO64" >tmp.texi; \
174 echo "@clear STDIO64" >tmp.texi; \
176 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi stdio64.texi
179 stdio64.texi: stmp-stdio64 ; @true
181 stmp-targetdep: force
183 targetdoc=`pwd`/tmp.texi; \
184 for d in $(SUBDIRS); do \
185 if test "$$d" != "."; then \
186 (cd $$d && $(MAKE) TARGETDOC=$${targetdoc} doc) || exit 1; \
189 cat $(srcdir)/sys.tex >>tmp.texi
190 $(SHELL) $(newlib_basedir)/../move-if-change tmp.texi targetdep.tex
193 targetdep.tex: stmp-targetdep ; @true
195 $(SUBDEFS): stmp-targetdep ; @true
200 CLEANFILES = $(CRT0) \
201 sigset.texi stmp-sigset extra.texi stmp-extra \
202 stdio64.texi stmp-stdio64 tmp.texi targetdep.tex stmp-targetdep
204 ACLOCAL_AMFLAGS = -I ..
205 CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host