Ignore errors from font-lock-compile-keywords.
[bpt/emacs.git] / lib-src / makefile.w32-in
CommitLineData
bd6766d3 1# -*- Makefile -*- for GNU Emacs on the Microsoft W32 API.
92b47a4a
TTN
2# Copyright (C) 2000, 2001, 2002, 2003, 2004,
3# 2005 Free Software Foundation, Inc.
7bbaaedd
AI
4#
5# This file is part of GNU Emacs.
52402e4f 6#
7bbaaedd
AI
7# GNU Emacs is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 2, or (at your option)
10# any later version.
52402e4f 11#
7bbaaedd
AI
12# GNU Emacs is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
52402e4f 16#
7bbaaedd
AI
17# You should have received a copy of the GNU General Public License
18# along with GNU Emacs; see the file COPYING. If not, write to the
364c38d3
LK
19# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20# Boston, MA 02110-1301, USA.
7bbaaedd
AI
21#
22
57854d7a 23ALL = make-docfile hexl ctags etags movemail ebrowse
7bbaaedd
AI
24
25.PHONY: $(ALL)
26
27LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
d19249e7 28 -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I../nt/inc \
e260c47a 29 -I../src
7bbaaedd
AI
30
31# don't know what (if) to do with these yet...
32#
33# $(BLD)/sorted-doc.exe \
34# $(BLD)/env.exe \
35# $(BLD)/server.exe \
36# $(BLD)/emacstool.exe \
37# $(BLD)/leditcfns.exe \
38# $(BLD)/emacsclient.exe \
39# $(BLD)/cvtmail.exe \
40# $(BLD)/digest-doc.exe \
41# $(BLD)/test-distrib.exe \
42
7bbaaedd
AI
43LIBS = $(BASE_LIBS) $(ADVAPI32)
44
45$(BLD)/make-docfile.exe: $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O)
46 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/make-docfile.$(O) $(BLD)/ntlib.$(O) $(LIBS)
47$(BLD)/hexl.exe: $(BLD)/hexl.$(O)
48 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
49$(BLD)/fakemail.exe: $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O)
50 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS)
51
52make-docfile: $(BLD) $(BLD)/make-docfile.exe
53ctags: $(BLD) $(BLD)/ctags.exe
54etags: $(BLD) $(BLD)/etags.exe
d19249e7 55ebrowse: $(BLD) $(BLD)/ebrowse.exe
7bbaaedd
AI
56hexl: $(BLD) $(BLD)/hexl.exe
57movemail: $(BLD) $(BLD)/movemail.exe
58fakemail: $(BLD) $(BLD)/fakemail.exe
59
60GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O)
61GETOPTDEPS = $(GETOPTOBJS) getopt.h
62MOVEMAILOBJS = $(BLD)/movemail.$(O) \
63 $(BLD)/pop.$(O) \
64 $(BLD)/ntlib.$(O) \
65 $(GETOPTOBJS)
66
67$(BLD)/movemail.exe: $(MOVEMAILOBJS) getopt.h
68# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
69 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(MOVEMAILOBJS) $(WSOCK32) $(LIBS)
70
71ETAGSOBJ = $(BLD)/etags.$(O) \
72 $(BLD)/getopt.$(O) \
73 $(BLD)/getopt1.$(O) \
74 $(BLD)/ntlib.$(O) \
75 $(BLD)/regex.$(O)
76
77$(BLD)/etags.exe: $(ETAGSOBJ)
78 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
79
80
d19249e7
JR
81EBROWSEOBJ = $(BLD)/ebrowse.$(O) \
82 $(BLD)/getopt.$(O) \
83 $(BLD)/getopt1.$(O) \
84 $(BLD)/ntlib.$(O)
85
86$(BLD)/ebrowse.exe: $(EBROWSEOBJ)
88257bc8 87 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(EBROWSEOBJ) $(LIBS)
d19249e7 88
7bbaaedd
AI
89$(BLD)/regex.$(O): ../src/regex.c ../src/regex.h ../src/config.h
90 $(CC) $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
91 ../src/regex.c $(CC_OUT)$@
92
93ETAGS_CFLAGS = -DHAVE_GETCWD
94$(BLD)/etags.$(O): etags.c
95 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) $(CC_OUT)$@ etags.c
96
97CTAGSOBJ = $(BLD)/ctags.$(O) \
98 $(BLD)/getopt.$(O) \
99 $(BLD)/getopt1.$(O) \
100 $(BLD)/ntlib.$(O) \
101 $(BLD)/regex.$(O)
102
103$(BLD)/ctags.exe: $(CTAGSOBJ)
104 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
105
106ctags.c: etags.c
107 - $(DEL) ctags.c
108 $(CP) etags.c ctags.c
109
110CTAGS_CFLAGS = -DCTAGS $(ETAGS_CFLAGS)
111$(BLD)/ctags.$(O): ctags.c
112 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) $(CC_OUT)$@ ctags.c
113
114#
115# don't know what to do with these yet...
116#
117# $(BLD)/sorted-doc.exe: $(BLD)/sorted-doc.$(O)
118# $(BLD)/yow.exe: $(BLD)/yow.$(O)
119# $(BLD)/emacstool.exe: $(BLD)/emacstool.$(O)
120# $(BLD)/leditcfns.exe: $(BLD)/leditcfns.$(O)
121# $(BLD)/server.exe: $(BLD)/server.$(O)
122# $(BLD)/cvtmail.exe: $(BLD)/cvtmail.$(O)
123# $(BLD)/digest-doc.exe: $(BLD)/digest-doc.$(O)
124# $(BLD)/emacsclient.exe: $(BLD)/emacsclient.$(O)
125# $(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
126
127#
3cf5c994
JD
128# From ..\src\Makefile.in
129# It doesn't matter if the real name is *.obj for the files in this list,
130# make-docfile blindly replaces .o with .c anyway. Keep .o in this list
131# as it is required by code in doc.c.
7bbaaedd 132#
3cf5c994
JD
133obj= sunfns.o dosfns.o msdos.o \
134 xterm.o xfns.o xmenu.o xselect.o xrdb.o fringe.o image.o \
135 mac.o macterm.o macfns.o macmenu.o fontset.o \
136 w32.o w32bdf.o w32console.o w32fns.o w32heap.o w32inevt.o \
137 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o \
138 dispnew.o frame.o scroll.o xdisp.o window.o \
139 charset.o coding.o category.o ccl.o \
140 cm.o term.o xfaces.o \
141 emacs.o keyboard.o macros.o keymap.o sysdep.o \
142 buffer.o filelock.o insdel.o marker.o \
143 minibuf.o fileio.o dired.o filemode.o \
144 cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \
145 alloc.o data.o doc.o editfns.o callint.o \
146 eval.o floatfns.o fns.o print.o lread.o \
147 abbrev.o syntax.o bytecode.o \
148 process.o callproc.o \
149 region-cache.o sound.o atimer.o \
150 doprnt.o strftime.o intervals.o textprop.o composite.o md5.o
151
7bbaaedd
AI
152#
153# These are the lisp files that are loaded up in loadup.el
154#
155lispsource = ../lisp/
156
98d926f2 157MOUSE_SUPPORT = $(lispsource)select.elc $(lispsource)scroll-bar.elc $(lispsource)mouse.elc $(lispsource)tooltip.elc
7f379e5b
JR
158WINNT_SUPPORT = $(lispsource)ls-lisp.elc $(lispsource)disp-table.elc $(lispsource)w32-fns.elc $(lispsource)dos-w32.elc $(lispsource)w32-vars.elc
159
160# lisp files that are loaded up on other platforms
161MSDOS_SUPPORT = $(lispsource)dos-fns.elc $(lispsource)dos-vars.elc $(lispsource)international/ccl.elc $(lispsource)international/codepage.elc
162VMS_SUPPORT = $(lispsource)vmsproc.elc $(lispsource)vms-patch.elc
7bbaaedd 163
83a9c0b2 164lisp1= \
7f379e5b
JR
165 $(lispsource)abbrev.elc \
166 $(lispsource)buff-menu.elc \
e63e8d3e 167 $(lispsource)button.elc \
8dc48ef0 168 $(lispsource)emacs-lisp/byte-run.elc \
98d926f2 169 $(lispsource)cus-face.elc \
7f379e5b
JR
170 $(lispsource)cus-start.elc \
171 $(lispsource)custom.elc \
dd87b4cc 172 $(lispsource)emacs-lisp/backquote.elc \
7f379e5b
JR
173 $(lispsource)emacs-lisp/lisp-mode.elc \
174 $(lispsource)emacs-lisp/lisp.elc \
7f379e5b 175 $(lispsource)facemenu.elc \
7bbaaedd 176 $(MOUSE_SUPPORT) \
98d926f2
EZ
177 $(lispsource)faces.elc \
178 $(lispsource)files.elc \
8dc48ef0 179 $(lispsource)emacs-lisp/float-sup.elc \
98d926f2 180 $(lispsource)format.elc \
8dc48ef0 181 $(lispsource)frame.elc \
7f379e5b
JR
182 $(lispsource)help.elc \
183 $(lispsource)indent.elc \
184 $(lispsource)isearch.elc \
98d926f2 185 $(lispsource)rfn-eshadow.elc \
7bbaaedd
AI
186 $(lispsource)loadup.el \
187 $(lispsource)loaddefs.el \
7f379e5b 188 $(lispsource)bindings.elc \
8dc48ef0 189 $(lispsource)emacs-lisp/map-ynp.elc \
98d926f2 190 $(lispsource)env.elc \
7f379e5b 191 $(lispsource)international/mule.elc \
7bbaaedd 192 $(lispsource)international/mule-conf.el \
7f379e5b
JR
193 $(lispsource)international/mule-cmds.elc \
194 $(lispsource)international/characters.elc \
7a8940da 195 $(lispsource)international/ucs-tables.elc \
7f379e5b 196 $(lispsource)international/utf-8.elc \
98d926f2 197 $(lispsource)international/utf-16.elc \
7f379e5b
JR
198 $(lispsource)international/latin-1.el \
199 $(lispsource)international/latin-2.el \
200 $(lispsource)international/latin-3.el \
201 $(lispsource)international/latin-4.el \
202 $(lispsource)international/latin-5.el \
203 $(lispsource)international/latin-8.el \
204 $(lispsource)international/latin-9.el \
83a9c0b2
JR
205 $(lispsource)case-table.elc
206
207lisp2 = \
7f379e5b
JR
208 $(lispsource)language/chinese.elc \
209 $(lispsource)language/cyrillic.elc \
210 $(lispsource)language/indian.elc \
52402e4f 211 $(lispsource)language/devanagari.el \
98d926f2 212 $(lispsource)language/kannada.el \
0a0dc511
JB
213 $(lispsource)language/malayalam.el \
214 $(lispsource)language/tamil.el \
76054cc8 215 $(lispsource)language/english.el \
7f379e5b
JR
216 $(lispsource)language/ethiopic.elc \
217 $(lispsource)language/european.elc \
76054cc8
AI
218 $(lispsource)language/czech.el \
219 $(lispsource)language/slovak.el \
220 $(lispsource)language/romanian.el \
221 $(lispsource)language/greek.el \
222 $(lispsource)language/hebrew.el \
76054cc8
AI
223 $(lispsource)language/japanese.el \
224 $(lispsource)language/korean.el \
225 $(lispsource)language/lao.el \
226 $(lispsource)language/thai.el \
7f379e5b
JR
227 $(lispsource)language/tibetan.elc \
228 $(lispsource)language/vietnamese.elc \
76054cc8 229 $(lispsource)language/misc-lang.el \
7f379e5b
JR
230 $(lispsource)language/utf-8-lang.el \
231 $(lispsource)language/georgian.el \
98d926f2 232 $(lispsource)menu-bar.elc \
7bbaaedd 233 $(lispsource)paths.el \
7f379e5b
JR
234 $(lispsource)register.elc \
235 $(lispsource)replace.elc \
236 $(lispsource)simple.elc \
237 $(lispsource)startup.elc \
238 $(lispsource)subr.elc \
239 $(lispsource)term/tty-colors.elc \
7a8940da 240 $(lispsource)font-core.elc \
98d926f2
EZ
241 $(lispsource)emacs-lisp/syntax.elc \
242 $(lispsource)font-lock.elc \
243 $(lispsource)jit-lock.elc \
7f379e5b
JR
244 $(lispsource)textmodes/fill.elc \
245 $(lispsource)textmodes/page.elc \
246 $(lispsource)textmodes/paragraphs.elc \
247 $(lispsource)textmodes/text-mode.elc \
98d926f2 248 $(lispsource)emacs-lisp/timer.elc \
7f379e5b 249 $(lispsource)vc-hooks.elc \
98d926f2 250 $(lispsource)jka-cmpr-hook.elc \
7f379e5b 251 $(lispsource)ediff-hook.elc \
7bbaaedd
AI
252 $(VMS_SUPPORT) \
253 $(MSDOS_SUPPORT) \
254 $(WINNT_SUPPORT) \
7f379e5b
JR
255 $(lispsource)widget.elc \
256 $(lispsource)window.elc \
7bbaaedd
AI
257 $(lispsource)version.el
258
259
52402e4f 260DOC = DOC
cb6ccbc9 261$(DOC): $(BLD) $(BLD)/make-docfile.exe ../src/$(BLD)/temacs.exe $(lisp1) $(lisp2)
7bbaaedd 262 - $(DEL) $(DOC)
cf6d30d7 263 "$(THISDIR)/$(BLD)/make-docfile" -o $(DOC) -d ../src $(obj)
83a9c0b2
JR
264 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp1)
265 "$(THISDIR)/$(BLD)/make-docfile" -a $(DOC) -d ../src $(lisp2)
7bbaaedd
AI
266 $(CP) $(DOC) ../etc/DOC-X
267 - mkdir "../src/$(OBJDIR)"
268 - mkdir "../src/$(OBJDIR)/etc"
269 $(CP) $(DOC) ../src/$(OBJDIR)/etc/DOC-X
270
271{$(BLD)}.$(O){$(BLD)}.exe:
272 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $*.$(O) $(LIBS)
273
274#
275# Build the executables
276#
277all: $(BLD) $(ALL) $(DOC)
278
279#
280# Assuming INSTALL_DIR is defined, build and install emacs in it.
281#
282INSTALL_FILES = $(ALL)
283install: $(INSTALL_FILES)
284 - mkdir "$(INSTALL_DIR)/bin"
285 $(CP) $(BLD)/etags.exe $(INSTALL_DIR)/bin
88257bc8 286 $(CP) $(BLD)/ebrowse.exe $(INSTALL_DIR)/bin
7bbaaedd
AI
287 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
288 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
289 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
7bbaaedd
AI
290 - mkdir "$(INSTALL_DIR)/etc"
291 $(CP) $(DOC) $(INSTALL_DIR)/etc
292
293#
294# Maintenance
52402e4f 295#
7bbaaedd 296clean:
5cdd7eef 297 - $(DEL) *~ DOC* $(COMPILER_TEMP_FILES)
7bbaaedd 298 - $(DEL) ctags.c
d238808a 299 - $(DEL) getopt.h
7bbaaedd
AI
300 - $(DEL_TREE) $(OBJDIR)
301
302cleanall: clean
303 - $(DEL_TREE) obj
304 - $(DEL_TREE) obj-spd
305 - $(DEL_TREE) oo
306 - $(DEL_TREE) oo-spd
307
308#
309# Headers we would preprocess if we could.
310#
311../src/config.h: ../nt/$(CONFIG_H)
df1b2142
JR
312 echo config.h has changed. Re-run configure.bat.
313 exit -1
314
d238808a
JB
315getopt.h: getopt_.h
316 $(CP) $(ALL_DEPS) $@
7bbaaedd
AI
317
318### DEPENDENCIES ###
319
320EMACS_ROOT = ..
321SRC = .
322
323$(BLD)/alloca.$(O) : \
324 $(SRC)/alloca.c \
325 $(EMACS_ROOT)/src/s/ms-w32.h \
326 $(EMACS_ROOT)/src/m/intel386.h \
327 $(EMACS_ROOT)/src/config.h \
328 $(EMACS_ROOT)/src/blockinput.h
329
330$(BLD)/b2m.$(O) : \
331 $(SRC)/b2m.c \
332 $(EMACS_ROOT)/src/s/ms-w32.h \
333 $(EMACS_ROOT)/src/m/intel386.h \
334 $(EMACS_ROOT)/lib-src/../src/config.h
335
336$(BLD)/ctags.$(O) : \
337 $(SRC)/ctags.c \
338 $(EMACS_ROOT)/nt/inc/sys/param.h \
339 $(EMACS_ROOT)/src/s/ms-w32.h \
340 $(EMACS_ROOT)/src/m/intel386.h \
341 $(EMACS_ROOT)/lib-src/../src/config.h \
342 $(SRC)/ntlib.h \
343 $(SRC)/getopt.h
344
345$(BLD)/cvtmail.$(O) : \
346 $(SRC)/cvtmail.c
347
348$(BLD)/digest-doc.$(O) : \
349 $(SRC)/digest-doc.c
350
351$(BLD)/emacsclient.$(O) : \
352 $(SRC)/emacsclient.c \
353 $(EMACS_ROOT)/src/s/ms-w32.h \
354 $(EMACS_ROOT)/src/m/intel386.h \
355 $(EMACS_ROOT)/lib-src/../src/config.h
356
7bbaaedd
AI
357$(BLD)/emacstool.$(O) : \
358 $(SRC)/emacstool.c \
359 $(EMACS_ROOT)/nt/inc/sys/file.h
360
361$(BLD)/etags.$(O) : \
362 $(SRC)/etags.c \
363 $(EMACS_ROOT)/nt/inc/sys/param.h \
364 $(EMACS_ROOT)/src/s/ms-w32.h \
365 $(EMACS_ROOT)/src/m/intel386.h \
366 $(EMACS_ROOT)/lib-src/../src/config.h \
367 $(SRC)/ntlib.h \
368 $(SRC)/getopt.h
369
370$(BLD)/fakemail.$(O) : \
371 $(SRC)/fakemail.c \
372 $(SRC)/ntlib.h \
373 $(EMACS_ROOT)/src/s/ms-w32.h \
374 $(EMACS_ROOT)/src/m/intel386.h \
375 $(EMACS_ROOT)/lib-src/../src/config.h \
376 $(EMACS_ROOT)/nt/inc/pwd.h
377
378$(BLD)/getdate.$(O) : \
379 $(SRC)/getdate.c \
380 $(EMACS_ROOT)/src/s/ms-w32.h \
381 $(EMACS_ROOT)/src/m/intel386.h \
382 $(EMACS_ROOT)/src/config.h \
383 $(MSTOOLS_SYS)/types.h
384
385$(BLD)/getopt.$(O) : \
386 $(SRC)/getopt.c \
387 $(EMACS_ROOT)/src/s/ms-w32.h \
388 $(EMACS_ROOT)/src/m/intel386.h \
389 $(EMACS_ROOT)/src/config.h \
390 $(SRC)/ntlib.h \
391 $(SRC)/getopt.h
392
393$(BLD)/getopt1.$(O) : \
394 $(SRC)/getopt1.c \
395 $(EMACS_ROOT)/src/s/ms-w32.h \
396 $(EMACS_ROOT)/src/m/intel386.h \
397 $(EMACS_ROOT)/src/config.h \
398 $(SRC)/getopt.h
399
400$(BLD)/hexl.$(O) : \
401 $(SRC)/hexl.c
402
403$(BLD)/leditcfns.$(O) : \
404 $(SRC)/leditcfns.c
405
406$(BLD)/make-docfile.$(O) : \
407 $(SRC)/make-docfile.c \
408 $(EMACS_ROOT)/src/config.h
409
410$(BLD)/make-path.$(O) : \
411 $(SRC)/make-path.c
412
413$(BLD)/movemail.$(O) : \
414 $(SRC)/movemail.c \
415 $(EMACS_ROOT)/src/s/ms-w32.h \
416 $(EMACS_ROOT)/src/m/intel386.h \
417 $(EMACS_ROOT)/lib-src/../src/config.h \
418 $(EMACS_ROOT)/nt/inc/sys/file.h \
7bbaaedd
AI
419 $(EMACS_ROOT)/lib-src/../src/syswait.h \
420 $(EMACS_ROOT)/nt/inc/pwd.h \
421 $(SRC)/ntlib.h
422 $(CC) $(CFLAGS) -DUSG $(CC_OUT)$@ movemail.c
423
424$(BLD)/ntlib.$(O) : \
425 $(SRC)/ntlib.c \
426 $(SRC)/ntlib.h \
427 $(EMACS_ROOT)/nt/inc/pwd.h
428
429$(BLD)/pop.$(O) : \
430 $(SRC)/pop.c \
431 $(SRC)/pop.h \
432 $(SRC)/ntlib.h
433
434$(BLD)/profile.$(O) : \
435 $(SRC)/profile.c \
436 $(EMACS_ROOT)/src/s/ms-w32.h \
437 $(EMACS_ROOT)/src/m/intel386.h \
438 $(EMACS_ROOT)/lib-src/../src/config.h \
7bbaaedd
AI
439 $(EMACS_ROOT)/lib-src/../src/systime.h
440
441$(BLD)/qsort.$(O) : \
442 $(SRC)/qsort.c
443
444$(BLD)/sorted-doc.$(O) : \
445 $(SRC)/sorted-doc.c
446
447$(BLD)/tcp.$(O) : \
448 $(SRC)/tcp.c
449
450$(BLD)/test-distrib.$(O) : \
451 $(SRC)/test-distrib.c
452
453$(BLD)/timer.$(O) : \
454 $(SRC)/timer.c \
455 $(EMACS_ROOT)/src/s/ms-w32.h \
456 $(EMACS_ROOT)/src/m/intel386.h \
457 $(EMACS_ROOT)/lib-src/../src/config.h
458
459$(BLD)/yow.$(O) : \
460 $(SRC)/yow.c \
461 $(EMACS_ROOT)/lib-src/../src/paths.h