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