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