# Makefile for GNU Emacs.
-# Copyright (C) 1985, 87, 88, 93, 94, 95 Free Software Foundation, Inc.
+# Copyright (C) 1985, 87, 88, 93, 94, 95, 1999 Free Software Foundation, Inc.
# This file is part of GNU Emacs.
#if HAVE_TIFF
#ifndef LIBTIFF
-#define LIBTIFF -ltiff34
+#define LIBTIFF -ltiff
#endif /* not defined LIBTIFF */
#else /* not HAVE_TIFF */
#define LIBTIFF
#define UNEXEC_SRC unexec.c
#endif
-#ifdef USE_TEXT_PROPERTIES
#define INTERVAL_SRC intervals.h
#define INTERVAL_OBJ intervals.o textprop.o
-#else
-#define INTERVAL_SRC
-#define INTERVAL_OBJ
-#endif
#ifdef HAVE_GETLOADAVG
#define GETLOADAVG_OBJ
ln temacs emacs
#else
#ifdef HAVE_SHM
- ./temacs -nl -batch -l loadup dump
+ LC_ALL=C ./temacs -nl -batch -l loadup dump
#else /* ! defined (HAVE_SHM) */
- ./temacs -batch -l loadup dump
+ LC_ALL=C ./temacs -batch -l loadup dump
#endif /* ! defined (HAVE_SHM) */
#endif /* ! defined (CANNOT_DUMP) */
-./emacs -q -batch -f list-load-path-shadows
pre-crt0.o: pre-crt0.c
ecrt0.o: ecrt0.c $(config_h)
CRT0_COMPILE ${srcdir}/ecrt0.c
-dired.o: dired.c commands.h buffer.h $(config_h) charset.h coding.h regex.h
+dired.o: dired.c commands.h buffer.h $(config_h) charset.h coding.h regex.h \
+ systime.h
dispnew.o: dispnew.c commands.h frame.h window.h buffer.h dispextern.h \
termchar.h termopts.h termhooks.h cm.h disptab.h systty.h systime.h \
xterm.h blockinput.h charset.h msdos.h $(config_h)
doprnt.o: doprnt.c charset.h $(config_h)
dosfns.o: buffer.h termchar.h termhooks.h frame.h msdos.h dosfns.h $(config_h)
editfns.o: editfns.c window.h buffer.h systime.h INTERVAL_SRC charset.h \
- $(config_h)
+ coding.h $(config_h)
emacs.o: emacs.c commands.h systty.h syssignal.h blockinput.h process.h \
termhooks.h buffer.h INTERVAL_SRC $(config_h)
fileio.o: fileio.c window.h buffer.h systime.h INTERVAL_SRC charset.h \
filelock.o: filelock.c buffer.h systime.h epaths.h $(config_h)
filemode.o: filemode.c $(config_h)
frame.o: frame.c xterm.h window.h frame.h termhooks.h commands.h keyboard.h \
- buffer.h charset.h fontset.h msdos.h $(config_h)
+ buffer.h charset.h fontset.h msdos.h dosfns.h $(config_h)
fontset.o: fontset.h fontset.c ccl.h charset.h frame.h $(config_h)
getloadavg.o: getloadavg.c $(config_h)
indent.o: indent.c frame.h window.h indent.h buffer.h $(config_h) termchar.h \
$(config_h)
sysdep.o: sysdep.c $(config_h) dispextern.h termhooks.h termchar.h termopts.h \
frame.h syssignal.h systty.h systime.h syswait.h blockinput.h window.h \
- msdos.h
+ msdos.h dosfns.h
term.o: term.c termchar.h termhooks.h termopts.h $(config_h) cm.h frame.h \
disptab.h keyboard.h charset.h coding.h ccl.h msdos.h
termcap.o: termcap.c $(config_h)
of UNEXEC when substituting it in. */
UNEXEC_ALIAS=UNEXEC
$(UNEXEC_ALIAS): UNEXEC_SRC $(config_h)
-w16select.o: w16select.c lisp.h dispextern.h frame.h blockinput.h \
+w16select.o: w16select.c dispextern.h frame.h blockinput.h \
msdos.h $(config_h)
widget.o: widget.c xterm.h frame.h dispextern.h widgetprv.h \
$(srcdir)/../lwlib/lwlib.h $(config_h)
termchar.h frame.h window.h disptab.h termhooks.h charset.h $(config_h) \
msdos.h
xfaces.o: xfaces.c dispextern.h frame.h xterm.h buffer.h blockinput.h \
- window.h charset.h msdos.h $(config_h)
+ window.h charset.h msdos.h dosfns.h $(config_h)
xfns.o: xfns.c buffer.h frame.h window.h keyboard.h xterm.h\
$(srcdir)/../lwlib/lwlib.h blockinput.h epaths.h charset.h $(config_h)
xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h keyboard.h \
coding.h ccl.h buffer.h $(config_h)
xrdb.o: xrdb.c $(config_h) epaths.h
hftctl.o: hftctl.c $(config_h)
-sound.o: sound.c dispextern.h lisp.h $(config_h)
+sound.o: sound.c dispextern.h $(config_h)
/* The files of Lisp proper */
lispsource=${lispsource}
tags: TAGS TAGS-LISP
.PHONY: tags
+
+
+/* Bootstrapping. */
+
+bootstrap: bootstrap-emacs
+
+/* Build a temacs with a sufficiently large PURESIZE to load the
+ Lisp files from loadup.el in source form. */
+
+bootstrap-temacs:
+ $(MAKE) $(MFLAGS) temacs ALL_CFLAGS="$(ALL_CFLAGS) -DPURESIZE=5000000"
+
+/* Dump an Emacs executable named bootstrap-emacs containing the
+ files from loadup.el in source form. */
+
+bootstrap-emacs: bootstrap-temacs
+#ifdef CANNOT_DUMP
+ ln temacs bootstrap-emacs
+#else
+#ifdef HAVE_SHM
+ ./temacs -nl -batch -l loadup bootstrap
+#else /* ! defined (HAVE_SHM) */
+ ./temacs --batch --load loadup bootstrap
+#endif /* ! defined (HAVE_SHM) */
+#endif /* ! defined (CANNOT_DUMP) */
+ mv emacs bootstrap-emacs
+ rm -f temacs
+