summaryrefslogtreecommitdiff
path: root/src/autodeps.mk
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-05-19 23:11:27 -0700
committerGlenn Morris <rgm@gnu.org>2010-05-19 23:11:27 -0700
commit9d5cf9b6b62d2a3e4e063e180b4b2a659b6ab4f0 (patch)
tree04d04a57b4fd023e0fb4508a94d9c1e5269c54b4 /src/autodeps.mk
parent21566ba7e5c6d0ba3fdd14da8320e76bc3cb63fe (diff)
downloademacs-9d5cf9b6b62d2a3e4e063e180b4b2a659b6ab4f0.tar.gz
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 ':'.
Diffstat (limited to 'src/autodeps.mk')
-rw-r--r--src/autodeps.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/autodeps.mk b/src/autodeps.mk
new file mode 100644
index 00000000000..c3cc91e22a7
--- /dev/null
+++ b/src/autodeps.mk
@@ -0,0 +1,6 @@
+### autodeps.mk --- src/Makefile fragment for GNU Emacs
+
+## This is inserted in src/Makefile if AUTO_DEPEND=yes.
+
+ALLOBJS=$(START_FILES) ${obj} ${otherobj} prefix-args.o
+-include $(ALLOBJS:%.o=${DEPDIR}/%.d)