makefile.w32-in 36.3 KB
Newer Older
1 2
# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
3
#   2008, 2009, 2010, 2011  Free Software Foundation, Inc.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

# 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
20 21 22 23 24

ALL = emacs

.PHONY: $(ALL)

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

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

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

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 76
	$(BLD)/filelock.$(O)		\
	$(BLD)/filemode.$(O)		\
	$(BLD)/fns.$(O)			\
77 78
	$(BLD)/indent.$(O)		\
	$(BLD)/insdel.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
79
	$(BLD)/keyboard.$(O)		\
80 81 82 83
	$(BLD)/keymap.$(O)		\
	$(BLD)/lread.$(O)		\
	$(BLD)/macros.$(O)		\
	$(BLD)/marker.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
84 85 86 87 88 89 90
	$(BLD)/md5.$(O)                 \
	$(BLD)/minibuf.$(O)		\
	$(BLD)/w32.$(O)			\
	$(BLD)/w32heap.$(O)		\
	$(BLD)/w32inevt.$(O)		\
	$(BLD)/w32proc.$(O)		\
	$(BLD)/w32console.$(O)		\
91
	$(BLD)/print.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
92
	$(BLD)/process.$(O)		\
93 94 95 96
	$(BLD)/regex.$(O)		\
	$(BLD)/scroll.$(O)		\
	$(BLD)/search.$(O)		\
	$(BLD)/sound.$(O)		\
97 98 99
	$(BLD)/syntax.$(O)

OBJ2 =  $(BLD)/sysdep.$(O)		\
100 101 102
	$(BLD)/term.$(O)		\
	$(BLD)/tparam.$(O)		\
	$(BLD)/undo.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
103
	$(BLD)/unexw32.$(O)		\
104 105
	$(BLD)/window.$(O)		\
	$(BLD)/xdisp.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
106 107
	$(BLD)/casetab.$(O)		\
	$(BLD)/floatfns.$(O)		\
108
	$(BLD)/frame.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
109 110 111
	$(BLD)/gmalloc.$(O)		\
	$(BLD)/intervals.$(O)		\
	$(BLD)/composite.$(O)		\
112
	$(BLD)/ralloc.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
113 114
	$(BLD)/textprop.$(O)		\
	$(BLD)/vm-limit.$(O)		\
115
	$(BLD)/region-cache.$(O)	\
Jason Rumney's avatar
Jason Rumney committed
116
	$(BLD)/strftime.$(O)		\
117
	$(BLD)/bidi.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
118 119 120
	$(BLD)/charset.$(O)		\
	$(BLD)/character.$(O)		\
	$(BLD)/chartab.$(O)		\
121
	$(BLD)/coding.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
122 123
	$(BLD)/category.$(O)		\
	$(BLD)/ccl.$(O)			\
124
	$(BLD)/font.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
125
	$(BLD)/fontset.$(O)		\
126 127
	$(BLD)/fringe.$(O)		\
	$(BLD)/image.$(O)		\
Jason Rumney's avatar
Jason Rumney committed
128
	$(BLD)/terminal.$(O)            \
129 130 131 132 133 134 135 136 137 138
	$(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)
139

Andrew Innes's avatar
Andrew Innes committed
140 141
LIBS =  $(TLIB0)	\
	$(TLIB1)	\
142
	$(TLIB2)	\
Andrew Innes's avatar
Andrew Innes committed
143
	$(TLASTLIB)	\
Jason Rumney's avatar
Jason Rumney committed
144
	$(WINMM)	\
Andrew Innes's avatar
Andrew Innes committed
145 146 147 148
	$(ADVAPI32)	\
	$(GDI32)	\
	$(COMDLG32)	\
	$(USER32)	\
149
	$(MPR)		\
Andrew Innes's avatar
Andrew Innes committed
150
	$(SHELL32)	\
151
	$(WINSPOOL)	\
Jason Rumney's avatar
Jason Rumney committed
152
	$(OLE32)	\
Jason Rumney's avatar
Jason Rumney committed
153
	$(COMCTL32)	\
154
	$(UNISCRIBE)    \
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
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

make-buildobj-SH:
197 198 199
	echo '#define BUILDOBJ $(DQUOTE)\'  > buildobj.h
	echo $(OBJ0)                   '\' >> buildobj.h
	echo $(OBJ1)                   '\' >> buildobj.h
200
	echo $(OBJ2)                   '\' >> buildobj.h
201
	echo '$(DQUOTE)'                   >> buildobj.h
Andrew Innes's avatar
Andrew Innes committed
202 203 204 205 206 207 208

bootstrap: bootstrap-emacs

#
# Build a temacs with a sufficiently large PURESIZE to load the
# Lisp files from loadup.el in source form.
#
209 210
# 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.
211
bootstrap-temacs:
212
	$(MAKE) $(MFLAGS) $(XMFLAGS) temacs CFLAGS=$(ARGQUOTE)$(CFLAGS) -DPURESIZE=5000000$(ARGQUOTE)
Andrew Innes's avatar
Andrew Innes committed
213 214

#
215
# Dump an Emacs executable named bootstrap-emacs containing the
Andrew Innes's avatar
Andrew Innes committed
216 217 218
# files from loadup.el in source form.
#
bootstrap-emacs: bootstrap-temacs
219
	"$(THISDIR)/$(BLD)/temacs.exe" -batch -l loadup bootstrap
Andrew Innes's avatar
Andrew Innes committed
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236
	- 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.
#
237
$(TRES): ../nt/emacs.rc stamp_BLD
238
	$(RC) $(RC_INCLUDE)../nt $(RC_OUT)$@ ../nt/emacs.rc
Andrew Innes's avatar
Andrew Innes committed
239 240

#
241
# Build the library.  Split up the build into two phases...otherwise we
Andrew Innes's avatar
Andrew Innes committed
242 243 244 245 246 247 248 249
# run out of command line space.
#
$(TLIB0):       $(OBJ0)
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)
$(TLIB1):       $(OBJ1)
	- $(DEL) $@
	$(AR) $(AR_OUT)$@ $(ALL_DEPS)
250
$(TLIB2):	$(OBJ2)
Andrew Innes's avatar
Andrew Innes committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
	- $(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
272
#
Eli Zaretskii's avatar
Eli Zaretskii committed
273 274
# 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
275
clean:
Eli Zaretskii's avatar
Eli Zaretskii committed
276
	- $(DEL) "s/*.h~" "m/*.h~"
277
	- $(DEL) $(COMPILER_TEMP_FILES)
Andrew Innes's avatar
Andrew Innes committed
278
	- $(DEL_TREE) $(OBJDIR)
Eli Zaretskii's avatar
Eli Zaretskii committed
279
	- $(DEL) stamp_BLD
Eli Zaretskii's avatar
Eli Zaretskii committed
280
	- $(DEL) buildobj.h
Andrew Innes's avatar
Andrew Innes committed
281

282 283 284 285 286
distclean:	cleanall
	- $(DEL) config.h epaths.h Makefile

maintainer-clean: distclean
	- $(DEL) TAGS
Andrew Innes's avatar
Andrew Innes committed
287 288 289 290 291 292 293

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

294 295 296 297 298
## 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.

299
TAGS: $(OBJ0) $(OBJ1) $(OBJ2)
300 301
	$(MAKE) $(MFLAGS) TAGS-$(MAKETYPE)

302
TAGS-LISP: $(OBJ0) $(OBJ1) $(OBJ2)
303 304 305 306 307 308 309 310 311
	$(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 \
312
	  $(patsubst $(BLD)%.$(O),$(CURDIR)%.c,$(OBJ2)) \
313
	  $(CURDIR)/*.h
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336

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

337 338
full-tags: TAGS TAGS-LISP ../nt/TAGS
.PHONY: full-tags
339

Andrew Innes's avatar
Andrew Innes committed
340 341
### DEPENDENCIES ###

342 343 344
EMACS_ROOT = ..
CONFIG_H   = $(EMACS_ROOT)/src/s/ms-w32.h \
	     $(EMACS_ROOT)/src/m/intel386.h \
345 346
	     $(EMACS_ROOT)/src/config.h \
	     $(EMACS_ROOT)/nt/inc/sys/stat.h
Andrew Innes's avatar
Andrew Innes committed
347

348
$(BLD)/alloc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
349
	$(SRC)/alloc.c \
350
	$(CONFIG_H) \
351 352
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
353
	$(SRC)/lisp.h \
354
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
355 356
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
357
	$(SRC)/character.h \
358
	$(SRC)/coding.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
359
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
360
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
361
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
362
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
363 364
	$(SRC)/keyboard.h \
	$(SRC)/process.h \
Andrew Innes's avatar
Andrew Innes committed
365
	$(SRC)/puresize.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
366
	$(SRC)/syssignal.h \
367 368 369
	$(SRC)/systime.h \
	$(SRC)/termhooks.h \
	$(SRC)/w32.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
370 371
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
372

373
$(BLD)/atimer.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
374
	$(SRC)/atimer.c \
375
	$(CONFIG_H) \
376 377
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
378
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
379
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
380
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
381
	$(SRC)/syssignal.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
382
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
383

384 385 386 387
$(BLD)/bidi.$(O) : \
	$(SRC)/bidi.c \
	$(CONFIG_H) \
	$(SRC)/lisp.h \
388 389
	$(SRC)/bidimirror.h \
	$(SRC)/biditype.h \
390 391
	$(SRC)/buffer.h \
	$(SRC)/character.h \
392 393
	$(SRC)/dispextern.h \
	$(SRC)/w32gui.h
394

395
$(BLD)/buffer.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
396
	$(SRC)/buffer.c \
397
	$(CONFIG_H) \
398
	$(EMACS_ROOT)/nt/inc/unistd.h \
Andrew Innes's avatar
Andrew Innes committed
399
	$(EMACS_ROOT)/nt/inc/sys/param.h \
400
	$(EMACS_ROOT)/nt/inc/sys/time.h \
401
	$(SRC)/lisp.h \
402
	$(SRC)/atimer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
403 404
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
405 406
	$(SRC)/character.h \
	$(SRC)/coding.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
407
	$(SRC)/commands.h \
Andrew Innes's avatar
Andrew Innes committed
408
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
409
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
410 411
	$(SRC)/frame.h \
	$(SRC)/indent.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
412 413 414 415
	$(SRC)/intervals.h \
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
	$(SRC)/region-cache.h \
416
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
417 418
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
419

420
$(BLD)/bytecode.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
421
	$(SRC)/bytecode.c \
422
	$(CONFIG_H) \
423
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
424
	$(SRC)/buffer.h \
425 426
	$(SRC)/character.h \
	$(SRC)/dispextern.h \
427
	$(SRC)/syntax.h \
428
	$(SRC)/w32gui.h \
429
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
430

431
$(BLD)/callint.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
432
	$(SRC)/callint.c \
433
	$(CONFIG_H) \
434
	$(EMACS_ROOT)/nt/inc/sys/time.h \
435
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
436
	$(SRC)/buffer.h \
437
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
438
	$(SRC)/commands.h \
439
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
440
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
441
	$(SRC)/keyboard.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
442
	$(SRC)/keymap.h \
443
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
444
	$(SRC)/w32gui.h \
Pavel Janík's avatar
Pavel Janík committed
445
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
446

447
$(BLD)/callproc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
448
	$(SRC)/callproc.c \
449
	$(CONFIG_H) \
450
	$(EMACS_ROOT)/nt/inc/unistd.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
451
	$(EMACS_ROOT)/nt/inc/sys/file.h \
452
	$(EMACS_ROOT)/nt/inc/sys/time.h \
453
	$(SRC)/lisp.h \
454 455
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
456
	$(SRC)/buffer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
457
	$(SRC)/ccl.h \
458
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
459 460 461
	$(SRC)/coding.h \
	$(SRC)/commands.h \
	$(SRC)/composite.h \
462
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
463
	$(SRC)/epaths.h \
464
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
465 466
	$(SRC)/process.h \
	$(SRC)/syssignal.h \
467
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
468
	$(SRC)/systty.h \
469
	$(SRC)/termhooks.h \
470 471
	$(SRC)/w32.h \
	$(SRC)/w32gui.h
Andrew Innes's avatar
Andrew Innes committed
472

473
$(BLD)/casefiddle.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
474
	$(SRC)/casefiddle.c \
475
	$(CONFIG_H) \
476
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
477
	$(SRC)/buffer.h \
478
	$(SRC)/character.h \
Andrew Innes's avatar
Andrew Innes committed
479
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
480 481
	$(SRC)/composite.h \
	$(SRC)/keymap.h \
Andrew Innes's avatar
Andrew Innes committed
482 483
	$(SRC)/syntax.h

484
$(BLD)/casetab.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
485
	$(SRC)/casetab.c \
486
	$(CONFIG_H) \
487
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
488
	$(SRC)/buffer.h \
489
	$(SRC)/character.h
Juanma Barranquero's avatar
Juanma Barranquero committed
490 491 492

$(BLD)/category.$(O) : \
	$(SRC)/category.c \
493
	$(CONFIG_H) \
494
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
495 496
	$(SRC)/buffer.h \
	$(SRC)/category.h \
497
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
498 499 500 501 502
	$(SRC)/charset.h \
	$(SRC)/keymap.h

$(BLD)/ccl.$(O) : \
	$(SRC)/ccl.c \
503
	$(CONFIG_H) \
504
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
505
	$(SRC)/ccl.h \
506
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
507
	$(SRC)/charset.h \
508 509
	$(SRC)/coding.h \
	$(SRC)/composite.h
Juanma Barranquero's avatar
Juanma Barranquero committed
510

511 512
$(BLD)/character.$(O) : \
	$(SRC)/character.c \
513
	$(CONFIG_H) \
514
	$(SRC)/lisp.h \
515 516 517 518 519 520
	$(SRC)/buffer.h \
	$(SRC)/character.h \
	$(SRC)/charset.h \
	$(SRC)/composite.h \
	$(SRC)/disptab.h

Juanma Barranquero's avatar
Juanma Barranquero committed
521 522
$(BLD)/charset.$(O) : \
	$(SRC)/charset.c \
523
	$(CONFIG_H) \
524
	$(EMACS_ROOT)/nt/inc/unistd.h \
525
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
526
	$(SRC)/buffer.h \
527
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
528 529
	$(SRC)/charset.h \
	$(SRC)/coding.h \
530
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
531
	$(SRC)/disptab.h
Andrew Innes's avatar
Andrew Innes committed
532

533 534
$(BLD)/chartab.$(O) : \
	$(SRC)/chartab.c \
535
	$(CONFIG_H) \
536
	$(SRC)/lisp.h \
537 538 539
	$(SRC)/ccl.h \
	$(SRC)/character.h \
	$(SRC)/charset.h
540

541
$(BLD)/cmds.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
542
	$(SRC)/cmds.c \
543
	$(CONFIG_H) \
544
	$(EMACS_ROOT)/nt/inc/sys/time.h \
545
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
546
	$(SRC)/buffer.h \
547
	$(SRC)/character.h \
548
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
549
	$(SRC)/commands.h \
550
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
551
	$(SRC)/dispextern.h \
552
	$(SRC)/frame.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
553 554 555
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
	$(SRC)/syntax.h \
556
	$(SRC)/systime.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
557 558 559 560 561
	$(SRC)/w32gui.h \
	$(SRC)/window.h

$(BLD)/coding.$(O) : \
	$(SRC)/coding.c \
562
	$(CONFIG_H) \
563
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
564
	$(SRC)/buffer.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
565
	$(SRC)/ccl.h \
566
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
567 568 569 570
	$(SRC)/charset.h \
	$(SRC)/coding.h \
	$(SRC)/composite.h \
	$(SRC)/dispextern.h \
571 572
	$(SRC)/frame.h \
	$(SRC)/termhooks.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
573 574
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
575

576
$(BLD)/composite.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
577
	$(SRC)/composite.c \
578
	$(CONFIG_H) \
579
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
580
	$(SRC)/buffer.h \
581
	$(SRC)/ccl.h \
582
	$(SRC)/character.h \
583
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
584
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
585
	$(SRC)/dispextern.h \
586 587
	$(SRC)/font.h \
	$(SRC)/frame.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
588
	$(SRC)/intervals.h \
589
	$(SRC)/termhooks.h \
590 591
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
592

593
$(BLD)/data.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
594
	$(SRC)/data.c \
595
	$(CONFIG_H) \
596
	$(EMACS_ROOT)/nt/inc/sys/time.h \
597
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
598
	$(SRC)/buffer.h \
599
	$(SRC)/ccl.h \
600
	$(SRC)/character.h \
601
	$(SRC)/coding.h \
602
	$(SRC)/composite.h \
603
	$(SRC)/dispextern.h \
604
	$(SRC)/font.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
605 606 607
	$(SRC)/frame.h \
	$(SRC)/keyboard.h \
	$(SRC)/puresize.h \
608
	$(SRC)/syssignal.h \
609 610 611
	$(SRC)/systime.h \
	$(SRC)/termhooks.h \
	$(SRC)/w32gui.h
Andrew Innes's avatar
Andrew Innes committed
612

613
$(BLD)/dired.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
614
	$(SRC)/dired.c \
615
	$(CONFIG_H) \
616 617 618 619 620
	$(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 \
621
	$(SRC)/lisp.h \
622 623
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
624
	$(SRC)/buffer.h \
625
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
626 627
	$(SRC)/charset.h \
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
628
	$(SRC)/commands.h \
629
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
630 631 632
	$(SRC)/ndir.h \
	$(SRC)/regex.h \
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
633

634
$(BLD)/dispnew.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
635
	$(SRC)/dispnew.c \
636
	$(CONFIG_H) \
637 638
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
639
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
640 641
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Andrew Innes's avatar
Andrew Innes committed
642
	$(SRC)/buffer.h \
643
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
644
	$(SRC)/cm.h \
645
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
646
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
647 648
	$(SRC)/composite.h \
	$(SRC)/dispextern.h \
Andrew Innes's avatar
Andrew Innes committed
649
	$(SRC)/disptab.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
650
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
651 652
	$(SRC)/indent.h \
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
653 654 655 656 657 658 659
	$(SRC)/keyboard.h \
	$(SRC)/process.h \
	$(SRC)/syssignal.h \
	$(SRC)/systime.h \
	$(SRC)/termchar.h \
	$(SRC)/termhooks.h \
	$(SRC)/termopts.h \
660
	$(SRC)/w32gui.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
661 662
	$(SRC)/w32term.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
663

664
$(BLD)/doc.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
665
	$(SRC)/doc.c \
666
	$(CONFIG_H) \
667
	buildobj.h \
668
	$(EMACS_ROOT)/nt/inc/unistd.h \
Andrew Innes's avatar
Andrew Innes committed
669
	$(EMACS_ROOT)/nt/inc/sys/file.h \
670
	$(EMACS_ROOT)/nt/inc/sys/time.h \
671
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
672
	$(SRC)/buffer.h \
673
	$(SRC)/character.h \
674
	$(SRC)/coding.h \
675
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
676
	$(SRC)/keyboard.h \
677 678
	$(SRC)/keymap.h \
	$(SRC)/systime.h
Andrew Innes's avatar
Andrew Innes committed
679

680
$(BLD)/doprnt.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
681
	$(SRC)/doprnt.c \
682
	$(CONFIG_H) \
683
	$(EMACS_ROOT)/nt/inc/unistd.h \
684
	$(SRC)/lisp.h \
685
	$(SRC)/character.h
Andrew Innes's avatar
Andrew Innes committed
686

687
$(BLD)/editfns.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
688
	$(SRC)/editfns.c \
689
	$(CONFIG_H) \
Andrew Innes's avatar
Andrew Innes committed
690
	$(EMACS_ROOT)/nt/inc/pwd.h \
691 692
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
693
	$(SRC)/lisp.h \
694 695
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
696
	$(SRC)/buffer.h \
697
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
698 699
	$(SRC)/coding.h \
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
700
	$(SRC)/dispextern.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
701
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
702
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
703 704 705
	$(SRC)/systime.h \
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
706

707
$(BLD)/emacs.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
708
	$(SRC)/emacs.c \
709
	$(CONFIG_H) \
710
	$(EMACS_ROOT)/nt/inc/unistd.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
711
	$(EMACS_ROOT)/nt/inc/sys/file.h \
712
	$(EMACS_ROOT)/nt/inc/sys/time.h \
713
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
714 715 716
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
	$(SRC)/buffer.h \
717
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
718
	$(SRC)/commands.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
719
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
720
	$(SRC)/dispextern.h \
721
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
722
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
723 724 725
	$(SRC)/keyboard.h \
	$(SRC)/keymap.h \
	$(SRC)/process.h \
Andrew Innes's avatar
Andrew Innes committed
726
	$(SRC)/syssignal.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
727 728 729
	$(SRC)/systime.h \
	$(SRC)/systty.h \
	$(SRC)/termhooks.h \
730
	$(SRC)/w32.h \
731
	$(SRC)/w32gui.h \
732
	$(SRC)/w32heap.h \
733
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
734

735
$(BLD)/eval.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
736
	$(SRC)/eval.c \
737
	$(CONFIG_H) \
738
	$(EMACS_ROOT)/nt/inc/sys/time.h \
739
	$(SRC)/lisp.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
740
	$(SRC)/atimer.h \
Andrew Innes's avatar
Andrew Innes committed
741
	$(SRC)/blockinput.h \
742
	$(SRC)/coding.h \
Andrew Innes's avatar
Andrew Innes committed
743
	$(SRC)/commands.h \
744
	$(SRC)/composite.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
745
	$(SRC)/dispextern.h \
746
	$(SRC)/frame.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
747 748 749
	$(SRC)/keyboard.h \
	$(SRC)/systime.h \
	$(SRC)/w32gui.h
Andrew Innes's avatar
Andrew Innes committed
750

751
$(BLD)/fileio.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
752
	$(SRC)/fileio.c \
753
	$(CONFIG_H) \
Andrew Innes's avatar
Andrew Innes committed
754
	$(EMACS_ROOT)/nt/inc/pwd.h \
755 756
	$(EMACS_ROOT)/nt/inc/unistd.h \
	$(EMACS_ROOT)/nt/inc/sys/time.h \
757
	$(SRC)/lisp.h \
758 759
	$(SRC)/atimer.h \
	$(SRC)/blockinput.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
760
	$(SRC)/buffer.h \
761
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
762 763 764
	$(SRC)/coding.h \
	$(SRC)/commands.h \
	$(SRC)/composite.h \
Andrew Innes's avatar
Andrew Innes committed
765
	$(SRC)/dispextern.h \
766
	$(SRC)/frame.h \
Andrew Innes's avatar
Andrew Innes committed
767
	$(SRC)/intervals.h \
Juanma Barranquero's avatar
Juanma Barranquero committed
768 769 770
	$(SRC)/systime.h \
	$(SRC)/w32gui.h \
	$(SRC)/window.h
Andrew Innes's avatar
Andrew Innes committed
771

772
$(BLD)/filelock.$(O) : \
Andrew Innes's avatar
Andrew Innes committed
773
	$(SRC)/filelock.c \
774
	$(CONFIG_H) \
Andrew Innes's avatar
Andrew Innes committed
775
	$(EMACS_ROOT)/nt/inc/pwd.h \
776
	$(EMACS_ROOT)/nt/inc/unistd.h \
Andrew Innes's avatar
Andrew Innes committed
777
	$(EMACS_ROOT)/nt/inc/sys/file.h \
778
	$(EMACS_ROOT)/nt/inc/sys/time.h \
779
	$(SRC)/lisp.h \
Andrew Innes's avatar
Andrew Innes committed
780
	$(SRC)/buffer.h \
781
	$(SRC)/character.h \
Juanma Barranquero's avatar
Juanma Barranquero committed