annotate vpath.sed @ 108708:12c5e713faa1

Handle auto-depend with configure. * make-dist (src): Include *.mk. * config.bat: Concatenate deps.mk onto the end of src/Makefile. * configure.in (DEPFLAGS, MKDEPDIR): New output variables. (deps_frag): New output file. (AUTO_DEPEND): Remove this definition. * src/Makefile.in (DEPDIR): New constant. (DEPFLAGS): Set with configure, not cpp. (MKDEPDIR): New, set by configure. (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR. (clean): Use $DEPDIR. (deps_frag): Include from configure. Move static/dynamic dependency stuff to deps.mk/autodeps.mk. * src/deps.mk, src/autodeps.mk: New files, extracted from Makefile.in. * msdos/sed1v2.inp (DEPFLAGS, deps_frag): Edit to empty. (MKDEPDIR): Edit to ':'.
author Glenn Morris <rgm@gnu.org>
date Wed, 19 May 2010 23:11:27 -0700
parents 695cf19ef79e
children 375f2633d815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4703
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
1 /^VPATH *=/c\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
2 # This works only in GNU make. Using the patterns avoids\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
3 # object files being found by VPATH, and thus permits building\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
4 # when $srcdir is configured itself.\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
5 vpath %.c $(srcdir)\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
6 vpath %.h $(srcdir)\
c5419d943526 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
7 \
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 11834
diff changeset
8
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 11834
diff changeset
9 # arch-tag: 56a64b50-e4e8-443a-960f-f13af0f1a545