makefile.w32-in 37.9 KB
Newer Older
1
# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
2
# Copyright (C) 2000-2011  Free Software Foundation, Inc.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

# This file is part of GNU Emacs.

# GNU Emacs is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# GNU Emacs is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.

Andrew Innes's avatar
Andrew Innes committed
19 20 21 22 23

ALL = emacs

.PHONY: $(ALL)

Andrew Innes's avatar
Andrew Innes committed
24 25 26
# Set EMACSLOADPATH correctly (in case already defined in environment).
EMACSLOADPATH=$(CURDIR)/../lisp

Andrew Innes's avatar
Andrew Innes committed
27 28 29 30
#
# HAVE_CONFIG_H is required by some generic gnu sources stuck into
# the emacs source tree.
#
31
LOCAL_FLAGS     = -Demacs=1 -DHAVE_CONFIG_H -I../lib -I../nt/inc -DHAVE_NTGUI=1 $(EMACS_EXTRA_C_FLAGS)
Andrew Innes's avatar
Andrew Innes committed
32

33
SRC             = .
Andrew Innes's avatar
Andrew Innes committed
34 35 36 37 38
EMACS           = $(BLD)/emacs.exe
TEMACS          = $(BLD)/temacs.exe
TEMACS_TMP      = $(BLD)/temacs.bin
TLIB0           = $(BLD)/temacs0.$(A)
TLIB1           = $(BLD)/temacs1.$(A)
39
TLIB2           = $(BLD)/temacs2.$(A)
Andrew Innes's avatar
Andrew Innes committed
40 41 42
TOBJ            = $(BLD)/firstfile.$(O)
TRES		= $(BLD)/emacs.res
TLASTLIB	= $(BLD)/lastfile.$(A)
43
GNULIB		= ../lib/$(BLD)/libgnu.$(A)
Andrew Innes's avatar
Andrew Innes committed
44

45 46
DOC		= $(OBJDIR)/etc/DOC-X

Jason Rumney's avatar
Jason Rumney committed
47 48
FULL_LINK_FLAGS = $(LINK_FLAGS) $(TEMACS_EXTRA_LINK)

Andrew Innes's avatar
Andrew Innes committed
49 50 51 52 53 54 55 56 57
#
# Split up the objects into two sets so that we don't run out of
# command line space when we link them into a library.
#
# Put emacs.$(O) in a separate lib, since we need to have firstfile.$(O)
# as the "main" object file when linking.
#
OBJ0 =  $(BLD)/emacs.$(O)

Jason Rumney's avatar
Jason Rumney committed
58
OBJ1 =  $(BLD)/alloc.$(O)		\
59 60
	$(BLD)/atimer.$(O)		\
	$(BLD)/buffer.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
61 62 63 64
	$(BLD)/bytecode.$(O)		\
	$(BLD)/callint.$(O)		\
	$(BLD)/callproc.$(O)		\
	$(BLD)/casefiddle.$(O)		\
65 66 67
	$(BLD)/cmds.$(O)		\
	$(BLD)/data.$(O)		\
	$(BLD)/dired.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
68 69
	$(BLD)/dispnew.$(O)		\
	$(BLD)/doc.$(O)			\
70
	$(BLD)/doprnt.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
71
	$(BLD)/editfns.$(O)		\
72 73
	$(BLD)/eval.$(O)		\
	$(BLD)/fileio.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
74 75
	$(BLD)/filelock.$(O)		\
	$(BLD)/fns.$(O)			\
76 77
	$(BLD)/indent.$(O)		\
	$(BLD)/insdel.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
78
	$(BLD)/keyboard.$(O)		\
79 80 81 82
	$(BLD)/keymap.$(O)		\
	$(BLD)/lread.$(O)		\
	$(BLD)/macros.$(O)		\
	$(BLD)/marker.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
83 84 85 86 87 88
	$(BLD)/minibuf.$(O)		\
	$(BLD)/w32.$(O)			\
	$(BLD)/w32heap.$(O)		\
	$(BLD)/w32inevt.$(O)		\
	$(BLD)/w32proc.$(O)		\
	$(BLD)/w32console.$(O)		\
89
	$(BLD)/print.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
90
	$(BLD)/process.$(O)		\
91 92 93 94
	$(BLD)/regex.$(O)		\
	$(BLD)/scroll.$(O)		\
	$(BLD)/search.$(O)		\
	$(BLD)/sound.$(O)		\
95 96 97
	$(BLD)/syntax.$(O)

OBJ2 =  $(BLD)/sysdep.$(O)		\
98 99 100
	$(BLD)/term.$(O)		\
	$(BLD)/tparam.$(O)		\
	$(BLD)/undo.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
101
	$(BLD)/unexw32.$(O)		\
102 103
	$(BLD)/window.$(O)		\
	$(BLD)/xdisp.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
104 105
	$(BLD)/casetab.$(O)		\
	$(BLD)/floatfns.$(O)		\
106
	$(BLD)/frame.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
107
	$(BLD)/gmalloc.$(O)		\
108
	$(BLD)/gnutls.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
109 110
	$(BLD)/intervals.$(O)		\
	$(BLD)/composite.$(O)		\
111
	$(BLD)/ralloc.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
112 113
	$(BLD)/textprop.$(O)		\
	$(BLD)/vm-limit.$(O)		\
114
	$(BLD)/region-cache.$(O)	\
115
	$(BLD)/bidi.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
116 117 118
	$(BLD)/charset.$(O)		\
	$(BLD)/character.$(O)		\
	$(BLD)/chartab.$(O)		\
119
	$(BLD)/coding.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
120 121
	$(BLD)/category.$(O)		\
	$(BLD)/ccl.$(O)			\
122
	$(BLD)/font.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
123
	$(BLD)/fontset.$(O)		\
124 125
	$(BLD)/fringe.$(O)		\
	$(BLD)/image.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
126
	$(BLD)/terminal.$(O)            \
127 128 129 130 131 132 133 134 135 136
	$(BLD)/menu.$(O)		\
	$(BLD)/w32term.$(O)		\
	$(BLD)/w32xfns.$(O)		\
	$(BLD)/w32fns.$(O)		\
	$(BLD)/xfaces.$(O)		\
	$(BLD)/w32select.$(O)		\
	$(BLD)/w32menu.$(O)		\
	$(BLD)/w32reg.$(O)		\
	$(BLD)/w32font.$(O)		\
	$(BLD)/w32uniscribe.$(O)
137

Andrew Innes's avatar
Andrew Innes committed
138 139
LIBS =  $(TLIB0)	\
	$(TLIB1)	\
140
	$(TLIB2)	\
Andrew Innes's avatar
Andrew Innes committed
141
	$(TLASTLIB)	\
142
	$(GNULIB)	\
Jason Rumney's avatar
Jason Rumney committed
143
	$(WINMM)	\
Andrew Innes's avatar
Andrew Innes committed
144 145 146 147
	$(ADVAPI32)	\
	$(GDI32)	\
	$(COMDLG32)	\
	$(USER32)	\
148
	$(MPR)		\
Andrew Innes's avatar
Andrew Innes committed
149
	$(SHELL32)	\
150
	$(WINSPOOL)	\
Jason Rumney's avatar
Jason Rumney committed
151
	$(OLE32)	\
Jason Rumney's avatar
Jason Rumney committed
152
	$(COMCTL32)	\
153
	$(UNISCRIBE)    \
154
	$(USER_LIBS)    \
Andrew Innes's avatar
Andrew Innes committed
155 156 157 158 159 160 161 162 163 164
	$(libc)

#
# Build the executable and dump it.
#
all:            $(ALL)

#
# The dumped executable
#
165
emacs:          stamp_BLD $(EMACS)
166
$(EMACS):       $(DOC) $(TEMACS)
167
	"$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup dump
168
	-"$(THISDIR)/$(BLD)/emacs.exe" -batch -f list-load-path-shadows
Andrew Innes's avatar
Andrew Innes committed
169 170 171 172 173 174 175

#
# The undumped executable
# Note the extra post-link step to insert a static preload heap section.
# If preload runs out of memory, increase the last argument to addsection
# (it is the preload heap size in MB).
#
176
temacs:         stamp_BLD $(TEMACS)
177
$(TEMACS):      $(TLIB0) $(TLIB1) $(TLIB2) $(TLASTLIB) $(TOBJ) $(TRES) \
178
		  ../nt/$(BLD)/addsection.exe $(GNULIB)
Andrew Innes's avatar
Andrew Innes committed
179
	$(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES) $(LIBS)
Jason Rumney's avatar
Jason Rumney committed
180
	"../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
181 182 183

# These omit firstfile.${O}, but there's no documentation in there
# anyways.
184
buildobj.h: $(SRC)/makefile.w32-in
185 186
	$(MAKE) $(MFLAGS) make-buildobj-$(SHELLTYPE)

187 188
# Cannot have blanks between the backslash and the redirection
# characters, because CMD's `echo' will put them in buildobj.h.
189
make-buildobj-CMD:
190 191 192
	echo #define BUILDOBJ ^"\> buildobj.h
	echo $(OBJ0)            \>> buildobj.h
	echo $(OBJ1)            \>> buildobj.h
193
	echo $(OBJ2)            \>> buildobj.h
194
	echo ^">> buildobj.h
195

196 197 198
# "
# The above line is here to countermand the single quote
# on the last "echo" command above, wrt font-lock.
199
make-buildobj-SH:
200 201 202
	echo '#define BUILDOBJ $(DQUOTE)\'  > buildobj.h
	echo $(OBJ0)                   '\' >> buildobj.h
	echo $(OBJ1)                   '\' >> buildobj.h
203
	echo $(OBJ2)                   '\' >> buildobj.h
204
	echo '$(DQUOTE)'                   >> buildobj.h
Andrew Innes's avatar
Andrew Innes committed
205

206 207 208 209 210 211 212 213 214 215 216
GLOBAL_SOURCES =   dosfns.c msdos.c \
	xterm.c xfns.c xmenu.c xselect.c xrdb.c xsmfns.c fringe.c image.c \
	fontset.c menu.c dbusbind.c \
	w32.c w32console.c w32fns.c w32heap.c w32inevt.c \
	w32menu.c w32proc.c w32reg.c w32select.c w32term.c w32xfns.c \
	font.c w32font.c w32uniscribe.c \
	dispnew.c frame.c scroll.c xdisp.c window.c bidi.c \
	charset.c coding.c category.c ccl.c character.c chartab.c \
	cm.c term.c terminal.c xfaces.c \
	emacs.c keyboard.c macros.c keymap.c sysdep.c \
	buffer.c filelock.c insdel.c marker.c \
217
	minibuf.c fileio.c dired.c \
218 219 220 221 222 223
	cmds.c casetab.c casefiddle.c indent.c search.c regex.c undo.c \
	alloc.c data.c doc.c editfns.c callint.c \
	eval.c floatfns.c fns.c print.c lread.c \
	syntax.c bytecode.c \
	process.c callproc.c unexw32.c \
	region-cache.c sound.c atimer.c \
224
	doprnt.c intervals.c textprop.c composite.c
225
SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
226
	xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o dbusbind.o
227 228 229
obj = $(GLOBAL_SOURCES:.c=.o)

globals.h: gl-stamp
230
	@cmd /c rem true
231 232 233 234 235 236 237 238

gl-stamp: ../lib-src/$(BLD)/make-docfile.exe $(GLOBAL_SOURCES)
	- $(DEL) gl-tmp
	"../lib-src/$(BLD)/make-docfile" -d . -g $(SOME_MACHINE_OBJECTS) $(obj) > gl-tmp
	cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h"
	- $(DEL) gl-tmp
	echo timestamp > $@

Andrew Innes's avatar
Andrew Innes committed
239 240 241 242 243 244
bootstrap: bootstrap-emacs

#
# Build a temacs with a sufficiently large PURESIZE to load the
# Lisp files from loadup.el in source form.
#
245 246
# 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.
247 248 249 250
bootstrap-temacs-CMD:
	$(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(ESC_CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)

bootstrap-temacs-SH:
251
	$(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
Andrew Innes's avatar
Andrew Innes committed
252

253 254 255
bootstrap-temacs:
	$(MAKE) $(MFLAGS) bootstrap-temacs-$(SHELLTYPE)

Andrew Innes's avatar
Andrew Innes committed
256
#
257
# Dump an Emacs executable named bootstrap-emacs containing the
Andrew Innes's avatar
Andrew Innes committed
258 259 260
# files from loadup.el in source form.
#
bootstrap-emacs: bootstrap-temacs
261
	"$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup bootstrap
Andrew Innes's avatar
Andrew Innes committed
262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
	- mkdir "../bin"
	$(CP) $(EMACS) ../bin

#
# Force recompile of files that depend on PURESIZE
#
bootstrap-clean:
	- $(DEL) $(BLD)/alloc.$(O)
	- $(DEL) $(BLD)/data.$(O)
	- $(DEL) $(BLD)/intervals.$(O)
	- $(DEL) $(BLD)/keyboard.$(O)
	- $(DEL) $(BLD)/keymap.$(O)

#
# The resource file.  NT 3.10 requires the use of cvtres; even though
# it is not necessary on later versions, it is still ok to use it.
#
279
$(TRES): ../nt/emacs.rc stamp_BLD
280
	$(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc
Andrew Innes's avatar
Andrew Innes committed
281 282

#
283
# Build the library.  Split up the build into two phases...otherwise we
Andrew Innes's avatar
Andrew Innes committed
284 285 286 287 288 289 290 291
# run out of command line space.
#
$(TLIB0):       $(OBJ0)
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)
$(TLIB1):       $(OBJ1)
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)
292
$(TLIB2):	$(OBJ2)
Andrew Innes's avatar
Andrew Innes committed
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)

#
# Place lastfile.$(O) in its own library so that it can be loaded after
# the source libraries but before any system libraries.  Doing so defines
# the end of Emacs' data section portably across compilers and systems.
#
$(TLASTLIB):	$(BLD)/lastfile.$(O)
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)

#
# Assuming INSTALL_DIR is defined, build and install emacs in it.
#
install:        $(ALL)
	- mkdir "$(INSTALL_DIR)/bin"
	$(CP) $(EMACS) $(INSTALL_DIR)/bin

#
# Maintenance
314
#
Eli Zaretskii's avatar
Eli Zaretskii committed
315 316
# We used to delete *~, s/*~, m/*~ here, but that might inadvertently
# remove precious files if it happens to match their short 8+3 aliases.
Andrew Innes's avatar
Andrew Innes committed
317
clean:
Eli Zaretskii's avatar
Eli Zaretskii committed
318
	- $(DEL) "s/*.h~" "m/*.h~"
319
	- $(DEL) $(COMPILER_TEMP_FILES)
Andrew Innes's avatar
Andrew Innes committed
320
	- $(DEL_TREE) $(OBJDIR)
321
	- $(DEL) stamp_BLD gl-stamp globals.h
Eli Zaretskii's avatar
Eli Zaretskii committed
322
	- $(DEL) buildobj.h
Andrew Innes's avatar
Andrew Innes committed
323

324 325 326 327 328
distclean:	cleanall
	- $(DEL) config.h epaths.h Makefile

maintainer-clean: distclean
	- $(DEL) TAGS
Andrew Innes's avatar
Andrew Innes committed
329 330 331 332 333 334 335

cleanall:	clean
	- $(DEL_TREE) obj
	- $(DEL_TREE) obj-spd
	- $(DEL_TREE) oo
	- $(DEL_TREE) oo-spd

336 337 338 339 340
## Arrange to make a tags table TAGS-LISP for ../lisp,
## plus TAGS for the C files, which includes ../lisp/TAGS by reference.
##
## This works only with GNU Make.

341
TAGS: $(OBJ0) $(OBJ1) $(OBJ2) $(CURDIR)/m/intel386.h $(CURDIR)/s/ms-w32.h
342 343
	$(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)

344
TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
345 346 347 348 349 350 351 352 353
	$(MAKE) $(MFLAGS) TAGS-LISP-$(MAKETYPE)

TAGS-gmake:
	../lib-src/$(BLD)/etags.exe --include=TAGS-LISP --include=../nt/TAGS \
	  --regex=@../nt/emacs-src.tags \
	  $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ0))
	../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
	  $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ1))
	../lib-src/$(BLD)/etags.exe -a --regex=@../nt/emacs-src.tags \
354
	  $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ2)) \
355
	  $(CURDIR)/*.h $(CURDIR)/m/intel386.h $(CURDIR)/s/ms-w32.h
356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378

TAGS-nmake:
	echo This target is not supported with NMake
	exit -1

frc:
TAGS-LISP-gmake: frc
	$(MAKE) $(MFLAGS) -C ../lisp TAGS-LISP DEST=../src

TAGS-LISP-nmake:
	echo This target is not supported with NMake
	exit -1

../nt/TAGS: frc
	$(MAKE) $(MFLAGS) nt-TAGS-$(MAKETYPE)

nt-TAGS-gmake:
	$(MAKE) $(MFLAGS) -C ../nt TAGS

nt-TAGS-nmake:
	echo This target is not supported with NMake
	exit -1

379 380
full-tags: TAGS TAGS-LISP ../nt/TAGS
.PHONY: full-tags
381

Andrew Innes's avatar
Andrew Innes committed
382 383
### DEPENDENCIES ###

384 385 386
EMACS_ROOT = ..
CONFIG_H   = $(EMACS_ROOT)/src/s/ms-w32.h \
	     $(EMACS_ROOT)/src/m/intel386.h \
387 388
	     $(EMACS_ROOT)/src/config.h \
	     $(EMACS_ROOT)/nt/inc/sys/stat.h
389 390 391 392 393 394 395
LISP_H     = $(SRC)/lisp.h \
	     $(SRC)/globals.h \
	     $(EMACS_ROOT)/nt/inc/inttypes.h \
	     $(EMACS_ROOT)/nt/inc/stdint.h
PROCESS_H  = $(SRC)/process.h \
	     $(EMACS_ROOT)/nt/inc/unistd.h \
	     $(SRC)/gnutls.h
Andrew Innes's avatar
Andrew Innes committed
396

397
$(BLD)/alloc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
398
	$(SRC)/alloc.c \
399
	$(CONFIG_H) \
400
	$(EMACS_ROOT)/nt/inc/sys/time.h \
401
	$(LISP_H) \
402
	$(PROCESS_H) \
403
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
404 405
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
406
	$(SRC)/character.h \
407
	$(SRC)/coding.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
408
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
409
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
410
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
411
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
412
	$(SRC)/keyboard.h \
Andrew Innes's avatar
Andrew Innes committed
413
	$(SRC)/puresize.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
414
	$(SRC)/syssignal.h \
415 416 417
	$(SRC)/systime.h \
	$(SRC)/termhooks.h \
	$(SRC)/w32.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
418 419
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
420

421
$(BLD)/atimer.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
422
	$(SRC)/atimer.c \
423
	$(CONFIG_H) \
424 425
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
426
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
427
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
428
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
429
	$(SRC)/syssignal.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
430
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
431

432 433 434
$(BLD)/bidi.$(O) : \
	$(SRC)/bidi.c \
	$(CONFIG_H) \
435
	$(LISP_H) \
436 437
	$(SRC)/bidimirror.h \
	$(SRC)/biditype.h \
438 439
	$(SRC)/buffer.h \
	$(SRC)/character.h \
440 441
	$(SRC)/dispextern.h \
	$(SRC)/w32gui.h
442

443
$(BLD)/buffer.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
444
	$(SRC)/buffer.c \
445
	$(CONFIG_H) \
446
	$(EMACS_ROOT)/nt/inc/unistd.h \
Andrew Innes's avatar
Andrew Innes committed
447
	$(EMACS_ROOT)/nt/inc/sys/param.h \
448
	$(EMACS_ROOT)/nt/inc/sys/time.h \
449
	$(LISP_H) \
450
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
451 452
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
453 454
	$(SRC)/character.h \
	$(SRC)/coding.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
455
	$(SRC)/commands.h \
Andrew Innes's avatar
Andrew Innes committed
456
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
457
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
458 459
	$(SRC)/frame.h \
	$(SRC)/indent.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
460 461 462 463
	$(SRC)/intervals.h \
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
	$(SRC)/region-cache.h \
464
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
465 466
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
467

468
$(BLD)/bytecode.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
469
	$(SRC)/bytecode.c \
470
	$(CONFIG_H) \
471
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
472
	$(SRC)/buffer.h \
473 474
	$(SRC)/character.h \
	$(SRC)/dispextern.h \
475
	$(SRC)/syntax.h \
476
	$(SRC)/w32gui.h \
477
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
478

479
$(BLD)/callint.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
480
	$(SRC)/callint.c \
481
	$(CONFIG_H) \
482
	$(EMACS_ROOT)/nt/inc/sys/time.h \
483
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
484
	$(SRC)/buffer.h \
485
	$(SRC)/character.h \
486
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
487
	$(SRC)/commands.h \
488
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
489
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
490
	$(SRC)/keyboard.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
491
	$(SRC)/keymap.h \
492
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
493
	$(SRC)/w32gui.h \
Pavel Janík's avatar
Pavel Janík committed
494
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
495

496
$(BLD)/callproc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
497
	$(SRC)/callproc.c \
498
	$(CONFIG_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
499
	$(EMACS_ROOT)/nt/inc/sys/file.h \
500
	$(EMACS_ROOT)/nt/inc/sys/ioctl.h \
501
	$(EMACS_ROOT)/nt/inc/sys/time.h \
502
	$(LISP_H) \
503
	$(PROCESS_H) \
504 505
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
506
	$(SRC)/buffer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
507
	$(SRC)/ccl.h \
508
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
509 510 511
	$(SRC)/coding.h \
	$(SRC)/commands.h \
	$(SRC)/composite.h \
512
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
513
	$(SRC)/epaths.h \
514
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
515
	$(SRC)/syssignal.h \
516
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
517
	$(SRC)/systty.h \
518
	$(SRC)/termhooks.h \
519 520
	$(SRC)/w32.h \
	$(SRC)/w32gui.h
Andrew Innes's avatar
Andrew Innes committed
521

522
$(BLD)/casefiddle.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
523
	$(SRC)/casefiddle.c \
524
	$(CONFIG_H) \
525
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
526
	$(SRC)/buffer.h \
527
	$(SRC)/character.h \
Andrew Innes's avatar
Andrew Innes committed
528
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
529 530
	$(SRC)/composite.h \
	$(SRC)/keymap.h \
Andrew Innes's avatar
Andrew Innes committed
531 532
	$(SRC)/syntax.h

533
$(BLD)/casetab.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
534
	$(SRC)/casetab.c \
535
	$(CONFIG_H) \
536
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
537
	$(SRC)/buffer.h \
538
	$(SRC)/character.h
Juanma Barranquero's avatar
Juanma Barranquero committed
539 540 541

$(BLD)/category.$(O) : \
	$(SRC)/category.c \
542
	$(CONFIG_H) \
543
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
544 545
	$(SRC)/buffer.h \
	$(SRC)/category.h \
546
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
547 548 549 550 551
	$(SRC)/charset.h \
	$(SRC)/keymap.h

$(BLD)/ccl.$(O) : \
	$(SRC)/ccl.c \
552
	$(CONFIG_H) \
553
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
554
	$(SRC)/ccl.h \
555
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
556
	$(SRC)/charset.h \
557 558
	$(SRC)/coding.h \
	$(SRC)/composite.h
Juanma Barranquero's avatar
Juanma Barranquero committed
559

560 561
$(BLD)/character.$(O) : \
	$(SRC)/character.c \
562
	$(CONFIG_H) \
563
	$(LISP_H) \
564 565 566 567 568 569
	$(SRC)/buffer.h \
	$(SRC)/character.h \
	$(SRC)/charset.h \
	$(SRC)/composite.h \
	$(SRC)/disptab.h

Juanma Barranquero's avatar
Juanma Barranquero committed
570 571
$(BLD)/charset.$(O) : \
	$(SRC)/charset.c \
572
	$(CONFIG_H) \
573
	$(EMACS_ROOT)/nt/inc/unistd.h \
574
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
575
	$(SRC)/buffer.h \
576
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
577 578
	$(SRC)/charset.h \
	$(SRC)/coding.h \
579
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
580
	$(SRC)/disptab.h
Andrew Innes's avatar
Andrew Innes committed
581

582 583
$(BLD)/chartab.$(O) : \
	$(SRC)/chartab.c \
584
	$(CONFIG_H) \
585
	$(LISP_H) \
586 587 588
	$(SRC)/ccl.h \
	$(SRC)/character.h \
	$(SRC)/charset.h
589

590
$(BLD)/cmds.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
591
	$(SRC)/cmds.c \
592
	$(CONFIG_H) \
593
	$(EMACS_ROOT)/nt/inc/sys/time.h \
594
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
595
	$(SRC)/buffer.h \
596
	$(SRC)/character.h \
597
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
598
	$(SRC)/commands.h \
599
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
600
	$(SRC)/dispextern.h \
601
	$(SRC)/frame.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
602 603 604
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
	$(SRC)/syntax.h \
605
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
606 607 608 609 610
	$(SRC)/w32gui.h \
	$(SRC)/window.h

$(BLD)/coding.$(O) : \
	$(SRC)/coding.c \
611
	$(CONFIG_H) \
612
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
613
	$(SRC)/buffer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
614
	$(SRC)/ccl.h \
615
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
616 617 618 619
	$(SRC)/charset.h \
	$(SRC)/coding.h \
	$(SRC)/composite.h \
	$(SRC)/dispextern.h \
620 621
	$(SRC)/frame.h \
	$(SRC)/termhooks.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
622 623
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
624

625
$(BLD)/composite.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
626
	$(SRC)/composite.c \
627
	$(CONFIG_H) \
628
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
629
	$(SRC)/buffer.h \
630
	$(SRC)/ccl.h \
631
	$(SRC)/character.h \
632
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
633
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
634
	$(SRC)/dispextern.h \
635 636
	$(SRC)/font.h \
	$(SRC)/frame.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
637
	$(SRC)/intervals.h \
638
	$(SRC)/termhooks.h \
639 640
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
641

642
$(BLD)/data.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
643
	$(SRC)/data.c \
644
	$(CONFIG_H) \
645
	$(EMACS_ROOT)/nt/inc/sys/time.h \
646
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
647
	$(SRC)/buffer.h \
648
	$(SRC)/ccl.h \
649
	$(SRC)/character.h \
650
	$(SRC)/coding.h \
651
	$(SRC)/composite.h \
652
	$(SRC)/dispextern.h \
653
	$(SRC)/font.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
654 655 656
	$(SRC)/frame.h \
	$(SRC)/keyboard.h \
	$(SRC)/puresize.h \
657
	$(SRC)/syssignal.h \
658 659 660
	$(SRC)/systime.h \
	$(SRC)/termhooks.h \
	$(SRC)/w32gui.h
Andrew Innes's avatar
Andrew Innes committed
661

662
$(BLD)/dired.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
663
	$(SRC)/dired.c \
664
	$(CONFIG_H) \
665 666 667 668 669
	$(EMACS_ROOT)/nt/inc/grp.h \
	$(EMACS_ROOT)/nt/inc/pwd.h \
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/dir.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
670
	$(EMACS_ROOT)/lib/filemode.h \
671
	$(LISP_H) \
672 673
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
674
	$(SRC)/buffer.h \
675
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
676 677
	$(SRC)/charset.h \
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
678
	$(SRC)/commands.h \
679
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
680 681 682
	$(SRC)/ndir.h \
	$(SRC)/regex.h \
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
683

684
$(BLD)/dispnew.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
685
	$(SRC)/dispnew.c \
686
	$(CONFIG_H) \
687
	$(EMACS_ROOT)/nt/inc/sys/time.h \
688
	$(LISP_H) \
689
	$(PROCESS_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
690 691
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
692
	$(SRC)/buffer.h \
693
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
694
	$(SRC)/cm.h \
695
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
696
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
697 698
	$(SRC)/composite.h \
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
699
	$(SRC)/disptab.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
700
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
701 702
	$(SRC)/indent.h \
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
703 704 705 706 707 708
	$(SRC)/keyboard.h \
	$(SRC)/syssignal.h \
	$(SRC)/systime.h \
	$(SRC)/termchar.h \
	$(SRC)/termhooks.h \
	$(SRC)/termopts.h \
709
	$(SRC)/w32gui.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
710 711
	$(SRC)/w32term.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
712

713
$(BLD)/doc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
714
	$(SRC)/doc.c \
715
	$(CONFIG_H) \
716
	buildobj.h \
717
	$(EMACS_ROOT)/nt/inc/unistd.h \
Andrew Innes's avatar
Andrew Innes committed
718
	$(EMACS_ROOT)/nt/inc/sys/file.h \
719
	$(EMACS_ROOT)/nt/inc/sys/time.h \
720
	$(LISP_H) \
Andrew Innes's avatar
Andrew Innes committed
721
	$(SRC)/buffer.h \
722
	$(SRC)/character.h \
723
	$(SRC)/coding.h \
724
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
725
	$(SRC)/keyboard.h \
726 727
	$(SRC)/keymap.h \
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
728

729
$(BLD)/doprnt.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
730
	$(SRC)/doprnt.c \
731
	$(CONFIG_H) \
732
	$(EMACS_ROOT)/nt/inc/unistd.h \
733
	$(LISP_H) \
734
	$(SRC)/character.h
Andrew Innes's avatar
Andrew Innes committed
735

736
$(BLD)/editfns.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
737
	$(SRC)/editfns.c \
738
	$(CONFIG_H) \
Andrew Innes's avatar
Andrew Innes committed
739
	$(EMACS_ROOT)/nt/inc/pwd.h \
740 741
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
742
	$(EMACS_ROOT)/lib/intprops.h \
743
	$(EMACS_ROOT)/lib/strftime.h \
744
	$(LISP_H) \
745 746
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
747
	$(SRC)/buffer.h \
748
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
749 750
	$(SRC)/coding.h \
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
751
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
752
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
753
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
754 755 756
	$(SRC)/systime.h \
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
757

758
$(BLD)/emacs.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
759
	$(SRC)/emacs.c \
760
	$(CONFIG_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
761
	$(EMACS_ROOT)/nt/inc/sys/file.h \
762
	$(EMACS_ROOT)/nt/inc/sys/ioctl.h \
763
	$(EMACS_ROOT)/nt/inc/sys/time.h \
764
	$(LISP_H) \
765
	$(PROCESS_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
766 767 768
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
769
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
770
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
771
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
772
	$(SRC)/dispextern.h \
773
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
774
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
775 776
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
Andrew Innes's avatar
Andrew Innes committed
777
	$(SRC)/syssignal.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
778 779 780
	$(SRC)/systime.h \
	$(SRC)/systty.h \
	$(SRC)/termhooks.h \
781
	$(SRC)/unexec.h \
782
	$(SRC)/w32.h \
783
	$(SRC)/w32gui.h \
784
	$(SRC)/w32heap.h \
785
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
786

787
$(BLD)/eval.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
788
	$(SRC)/eval.c \
789
	$(CONFIG_H) \
790
	$(EMACS_ROOT)/nt/inc/sys/time.h \
791
	$(LISP_H) \
Juanma Barranquero's avatar
Juanma Barranquero committed
792
	$(SRC)/atimer.h \