-# Makefile for GNU Emacs on the Microsoft W32 API.
-# Copyright (c) 2000-2001 Free Software Foundation, Inc.
+# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
+# Copyright (C) 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006 Free Software Foundation, Inc.
#
# This file is part of GNU Emacs.
#
#
# You should have received a copy of the GNU General Public License
# along with GNU Emacs; see the file COPYING. If not, write to the
-# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-# Boston, MA 02111-1307, USA.
+# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
#
ALL = emacs
TRES = $(BLD)/emacs.res
TLASTLIB = $(BLD)/lastfile.$(A)
+DOC = $(OBJDIR)/etc/DOC-X
+
FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)
#
OBJ1 = $(BLD)/abbrev.$(O) \
$(BLD)/alloc.$(O) \
- $(BLD)/alloca.$(O) \
$(BLD)/atimer.$(O) \
$(BLD)/buffer.$(O) \
$(BLD)/bytecode.$(O) \
$(BLD)/coding.$(O) \
$(BLD)/category.$(O) \
$(BLD)/ccl.$(O) \
- $(BLD)/fontset.$(O)
+ $(BLD)/fontset.$(O) \
+ $(BLD)/fringe.$(O) \
+ $(BLD)/image.$(O)
WIN32OBJ = $(BLD)/w32term.$(O) \
$(BLD)/w32xfns.$(O) \
$(USER32) \
$(MPR) \
$(SHELL32) \
+ $(WINSPOOL) \
$(libc)
#
# (it is the preload heap size in MB).
#
temacs: $(BLD) $(TEMACS)
-$(TEMACS): $(TLIB0) $(TLIB1) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES)
+$(TEMACS): $(TLIB0) $(TLIB1) $(TLIBW32) $(TLASTLIB) $(TOBJ) $(TRES) \
+ ../nt/$(BLD)/addsection.exe
$(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
"../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 16
+ echo $(OBJ0) > $(BLD)/buildobj.lst
+ echo $(OBJ1) >> $(BLD)/buildobj.lst
+ echo $(WIN32OBJ) >> $(BLD)/buildobj.lst
bootstrap: bootstrap-emacs
# Build a temacs with a sufficiently large PURESIZE to load the
# Lisp files from loadup.el in source form.
#
+# WARNING: Do NOT split the part inside $(ARGQUOTE)s into multiple lines as
+# this can break with GNU Make 3.81 and later if sh.exe is used.
bootstrap-temacs:
$(MAKE) $(MFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
$(SRC)/w32gui.h \
$(SRC)/window.h
-$(BLD)/alloca.$(O) : \
- $(SRC)/alloca.c \
- $(EMACS_ROOT)/src/s/ms-w32.h \
- $(EMACS_ROOT)/src/m/intel386.h \
- $(EMACS_ROOT)/src/config.h \
- $(SRC)/s/ms-w32.h \
- $(SRC)/m/intel386.h \
- $(SRC)/config.h \
- $(SRC)/atimer.h \
- $(SRC)/blockinput.h \
- $(SRC)/systime.h
-
$(BLD)/atimer.$(O) : \
$(SRC)/atimer.c \
$(EMACS_ROOT)/src/s/ms-w32.h \
$(EMACS_ROOT)/src/config.h \
$(SRC)/buffer.h \
$(SRC)/charset.h \
- $(SRC)/syntax.h
+ $(SRC)/syntax.h \
+ $(SRC)/window.h
$(BLD)/callint.$(O) : \
$(SRC)/callint.c \
$(SRC)/coding.h \
$(SRC)/composite.h \
$(SRC)/dispextern.h \
+ $(SRC)/intervals.h \
$(SRC)/w32bdf.h \
$(SRC)/w32gui.h \
$(SRC)/window.h
$(SRC)/systty.h \
$(SRC)/termhooks.h \
$(SRC)/w32bdf.h \
- $(SRC)/w32gui.h
+ $(SRC)/w32gui.h \
+ $(SRC)/w32heap.h \
+ $(SRC)/window.h
$(BLD)/eval.$(O) : \
$(SRC)/eval.c \
$(EMACS_ROOT)/src/s/ms-w32.h \
$(EMACS_ROOT)/src/m/intel386.h \
$(EMACS_ROOT)/src/config.h \
+ $(SRC)/atimer.h \
+ $(SRC)/blockinput.h \
$(SRC)/buffer.h \
$(SRC)/charset.h \
$(SRC)/commands.h \
$(SRC)/fontset.h \
$(SRC)/frame.h \
$(SRC)/keyboard.h \
+ $(SRC)/systime.h \
$(SRC)/termhooks.h \
$(SRC)/w32bdf.h \
$(SRC)/w32gui.h \
$(SRC)/w32term.h \
$(SRC)/window.h
+$(BLD)/fringe.$(O) : \
+ $(SRC)/fringe.c \
+ $(EMACS_ROOT)/src/s/ms-w32.h \
+ $(EMACS_ROOT)/src/m/intel386.h \
+ $(EMACS_ROOT)/src/config.h \
+ $(SRC)/atimer.h \
+ $(SRC)/blockinput.h \
+ $(SRC)/buffer.h \
+ $(SRC)/dispextern.h \
+ $(SRC)/frame.h \
+ $(SRC)/systime.h \
+ $(SRC)/w32bdf.h \
+ $(SRC)/w32gui.h \
+ $(SRC)/window.h
+
$(BLD)/gmalloc.$(O) : \
$(SRC)/gmalloc.c \
$(EMACS_ROOT)/src/s/ms-w32.h \
$(EMACS_ROOT)/nt/inc/sys/param.h \
$(SRC)/getpagesize.h
+$(BLD)/image.$(O): \
+ $(SRC)/image.c \
+ $(EMACS_ROOT)/src/s/ms-w32.h \
+ $(EMACS_ROOT)/src/m/intel386.h \
+ $(EMACS_ROOT)/src/config.h \
+ $(SRC)/atimer.h \
+ $(SRC)/blockinput.h \
+ $(SRC)/dispextern.h \
+ $(SRC)/epaths.h \
+ $(SRC)/frame.h \
+ $(SRC)/systime.h \
+ $(SRC)/termhooks.h \
+ $(SRC)/w32bdf.h \
+ $(SRC)/w32gui.h \
+ $(SRC)/w32heap.h \
+ $(SRC)/w32term.h \
+ $(SRC)/window.h
+
$(BLD)/indent.$(O) : \
$(SRC)/indent.c \
$(EMACS_ROOT)/src/s/ms-w32.h \
$(SRC)/indent.h \
$(SRC)/intervals.h \
$(SRC)/keyboard.h \
+ $(SRC)/keymap.h \
$(SRC)/macros.h \
$(SRC)/process.h \
$(SRC)/region-cache.h \
$(SRC)/systime.h \
$(SRC)/w32bdf.h \
$(SRC)/w32gui.h \
+ $(SRC)/w32heap.h \
$(SRC)/w32term.h
$(BLD)/w32reg.$(O): \