diff options
Diffstat (limited to 'newlib/Makefile.in')
-rw-r--r-- | newlib/Makefile.in | 60 |
1 files changed, 44 insertions, 16 deletions
diff --git a/newlib/Makefile.in b/newlib/Makefile.in index 468ae9985..c235995ac 100644 --- a/newlib/Makefile.in +++ b/newlib/Makefile.in @@ -56,8 +56,8 @@ host_triplet = @host@ subdir = . DIST_COMMON = NEWS README ChangeLog $(srcdir)/Makefile.in \ $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) acconfig.h $(srcdir)/newlib.hin \ - $(srcdir)/../mkinstalldirs + $(am__configure_deps) acconfig.h $(srcdir)/_newlib_version.hin \ + $(srcdir)/newlib.hin $(srcdir)/../mkinstalldirs ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/../libtool.m4 \ $(top_srcdir)/../ltoptions.m4 $(top_srcdir)/../ltsugar.m4 \ @@ -68,7 +68,7 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs -CONFIG_HEADER = newlib.h +CONFIG_HEADER = _newlib_version.h newlib.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; @@ -446,7 +446,7 @@ MAKEOVERRIDES = # dejagnu support RUNTESTFLAGS = -all: newlib.h +all: _newlib_version.h newlib.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: @@ -486,16 +486,28 @@ $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): -newlib.h: stamp-h1 +_newlib_version.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi -stamp-h1: $(srcdir)/newlib.hin $(top_builddir)/config.status +stamp-h1: $(srcdir)/_newlib_version.hin $(top_builddir)/config.status @rm -f stamp-h1 + cd $(top_builddir) && $(SHELL) ./config.status _newlib_version.h +$(srcdir)/_newlib_version.hin: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) $(top_srcdir)/acconfig.h + ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) + rm -f stamp-h1 + touch $@ + +newlib.h: stamp-h2 + @if test ! -f $@; then rm -f stamp-h2; else :; fi + @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h2; else :; fi + +stamp-h2: $(srcdir)/newlib.hin $(top_builddir)/config.status + @rm -f stamp-h2 cd $(top_builddir) && $(SHELL) ./config.status newlib.h distclean-hdr: - -rm -f newlib.h stamp-h1 + -rm -f _newlib_version.h stamp-h1 newlib.h stamp-h2 install-toollibLIBRARIES: $(toollib_LIBRARIES) @$(NORMAL_INSTALL) @list='$(toollib_LIBRARIES)'; test -n "$(toollibdir)" || list=; \ @@ -697,7 +709,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) mkid -fID $$unique tags: TAGS -TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ +TAGS: tags-recursive $(HEADERS) $(SOURCES) _newlib_version.hin newlib.hin $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ @@ -714,7 +726,7 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ - list='$(SOURCES) $(HEADERS) newlib.hin $(LISP) $(TAGS_FILES)'; \ + list='$(SOURCES) $(HEADERS) _newlib_version.hin newlib.hin $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ @@ -732,9 +744,9 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ fi; \ fi ctags: CTAGS -CTAGS: ctags-recursive $(HEADERS) $(SOURCES) newlib.hin $(TAGS_DEPENDENCIES) \ +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) _newlib_version.hin newlib.hin $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) - list='$(SOURCES) $(HEADERS) newlib.hin $(LISP) $(TAGS_FILES)'; \ + list='$(SOURCES) $(HEADERS) _newlib_version.hin newlib.hin $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ @@ -760,7 +772,8 @@ distclean-DEJAGNU: check-am: $(MAKE) $(AM_MAKEFLAGS) check-DEJAGNU check: check-recursive -all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) newlib.h +all-am: Makefile $(LIBRARIES) $(LTLIBRARIES) $(DATA) _newlib_version.h \ + newlib.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)" "$(DESTDIR)$(toollibdir)"; do \ @@ -937,7 +950,19 @@ crt1.o: $(CRT1_DIR)$(CRT1) $(CRT1_DIR)$(CRT1): ; @true -$(srcdir)/newlib.hin: +targ-include: + mkdir $@ + +targ-include/newlib.h: targ-include/_newlib_version.h + +targ-include/sys targ-include/machine targ-include/bits: targ-include/_newlib_version.h targ-include/newlib.h + mkdir $@ + +targ-include/newlib.h: newlib.h targ-include + cp newlib.h $@ + +targ-include/_newlib_version.h: _newlib_version.h targ-include + cp _newlib_version.h $@ all-recursive: stmp-targ-include @@ -946,8 +971,10 @@ all-recursive: stmp-targ-include # used while building. stmp-targ-include: config.status -rm -rf targ-include stmp-targ-include - mkdir targ-include targ-include/sys targ-include/machine targ-include/bits - cp newlib.h targ-include/newlib.h + $(MAKE) targ-include/sys \ + targ-include/machine \ + targ-include/bits \ + targ-include/newlib.h -for i in $(srcdir)/libc/machine/$(machine_dir)/machine/*.h; do \ if [ -f $$i ]; then \ cp $$i targ-include/machine/`basename $$i`; \ @@ -1015,6 +1042,7 @@ install-data-local: install-toollibLIBRARIES $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/`basename $$i`; \ done; \ $(INSTALL_DATA) newlib.h $(DESTDIR)$(tooldir)/include/newlib.h; \ + $(INSTALL_DATA) _newlib_version.h $(DESTDIR)$(tooldir)/include/_newlib_version.h; \ $(mkinstalldirs) $(DESTDIR)$(tooldir)/include/machine; \ for i in $(srcdir)/libc/include/machine/*.h; do \ $(INSTALL_DATA) $$i $(DESTDIR)$(tooldir)/include/machine/`basename $$i`; \ @@ -1174,7 +1202,7 @@ check-DEJAGNU: site.exp fi clean-local: - -rm -rf targ-include + -rm -rf targ-include newlib.h _newlib_version.h stamp-* # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |