summaryrefslogtreecommitdiff
path: root/config.bat
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 /config.bat
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 'config.bat')
-rw-r--r--config.bat5
1 files changed, 3 insertions, 2 deletions
diff --git a/config.bat b/config.bat
index 20b8b285e59..4ce30874e8f 100644
--- a/config.bat
+++ b/config.bat
@@ -192,8 +192,9 @@ if exist dir.h ren dir.h vmsdir.h
rem Create "makefile" from "makefile.in".
rm -f Makefile junk.c
sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c
-gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >Makefile
-rm -f junk.c
+gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >makefile.tmp
+copy makefile.tmp + deps.mk Makefile
+rm -f junk.c makefile.tmp
if "%X11%" == "" goto src5
mv Makefile makefile.tmp