* viper*el: replaced old-style backquotes.
[emacs.git] / lib-src / makefile.nt
blob0962025ec41a0156f979120e391b092dddb18c47
1 #  Makefile for GNU Emacs lib-src directory.
2 #   Geoff Voelker (voelker@cs.washington.edu)
3 #  Copyright (C) 1994 Free Software Foundation, Inc.
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., 59 Temple Place - Suite 330,
20 #  Boston, MA 02111-1307, USA.
23
24 # Sets up the system dependent macros.
26 !include ..\nt\makefile.def
28 LOCAL_FLAGS     = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
29         -DNO_ARCHIVES=1 -DHAVE_CONFIG_H=1 -I..\nt\inc -I..\src
31 LINK_FLAGS      = $(ARCH_LDFLAGS) -debug:PARTIAL -machine:$(ARCH) -subsystem:console -entry:mainCRTStartup setargv.obj
33 ALL             = $(BLD)\make-docfile.exe \
34                 $(BLD)\hexl.exe         \
35                 $(BLD)\ctags.exe        \
36                 $(BLD)\etags.exe        \
37                 $(BLD)\movemail.exe     \
38                 $(BLD)\fakemail.exe     \
40                 
41 # don't know what (if) to do with these yet...
43 #               $(BLD)\sorted-doc.exe   \
44 #               $(BLD)\env.exe          \
45 #               $(BLD)\server.exe       \
46 #               $(BLD)\emacstool.exe    \
47 #               $(BLD)\leditcfns.exe    \
48 #               $(BLD)\emacsclient.exe  \
49 #               $(BLD)\cvtmail.exe      \
50 #               $(BLD)\digest-doc.exe   \
51 #               $(BLD)\test-distrib.exe \
54 LIBS          = $(BASE_LIBS)
56 $(BLD)\make-docfile.exe:        $(BLD)\make-docfile.obj $(BLD)\ntlib.obj
57                 $(LINK) -out:$@ $(LINK_FLAGS) $(BLD)\make-docfile.obj $(BLD)\ntlib.obj $(LIBS)
58 $(BLD)\hexl.exe:                $(BLD)\hexl.obj
59 $(BLD)\fakemail.exe:            $(BLD)\fakemail.obj $(BLD)\ntlib.obj
60                 $(LINK) -out:$@ $(LINK_FLAGS) -debug:full $(BLD)\fakemail.obj $(BLD)\ntlib.obj $(LIBS)
62 make-docfile:   $(BLD) $(BLD)\make-docfile.exe
63 etags:          $(BLD) $(BLD)\etags.exe
64 hexl:           $(BLD) $(BLD)\hexl.exe
65 movemail:       $(BLD) $(BLD)\movemail.exe
66 fakemail:       $(BLD) $(BLD)\fakemail.exe
68 GETOPTOBJS = $(BLD)\getopt.obj $(BLD)\getopt1.obj
69 GETOPTDEPS = $(GETOPTOBJS) getopt.h
70 MOVEMAILOBJS =  $(BLD)\movemail.obj \
71                 $(BLD)\pop.obj \
72                 $(BLD)\ntlib.obj \
73                 $(GETOPTOBJS)
75 $(BLD)\movemail.exe:    $(MOVEMAILOBJS) getopt.h
76 # put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
77                 $(LINK) -out:$@ $(LINK_FLAGS) -debug:FULL $(MOVEMAILOBJS) wsock32.lib $(LIBS)
79 ETAGSOBJ      = $(BLD)\etags.obj \
80                 $(BLD)\getopt.obj \
81                 $(BLD)\getopt1.obj \
82                 $(BLD)\ntlib.obj \
83                 $(BLD)\regex.obj \
84                 $(BLD)\alloca.obj
87 $(BLD)\etags.exe:       $(ETAGSOBJ)
88                 $(LINK) -out:$@ $(LINK_FLAGS) $(ETAGSOBJ) $(LIBS)
91 $(BLD)\regex.obj: ../src/regex.c ../src/regex.h ../src/config.h
92                 $(CC)  $(CFLAGS) -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER \
93                 ../src/regex.c -Fo$@
95 ETAGS_CFLAGS  = -DETAGS_REGEXPS -DHAVE_GETCWD
96 $(BLD)\etags.obj: etags.c
97                 $(CC) $(CFLAGS) $(ETAGS_CFLAGS) -Fo$@ etags.c
99 CTAGSOBJ      = $(BLD)\ctags.obj \
100                 $(BLD)\getopt.obj \
101                 $(BLD)\getopt1.obj \
102                 $(BLD)\ntlib.obj \
103                 $(BLD)\regex.obj \
104                 $(BLD)\alloca.obj
106 $(BLD)\ctags.exe:           ctags.c $(CTAGSOBJ)
107                 $(LINK) -out:$@ $(LINK_FLAGS) $(CTAGSOBJ) $(LIBS)
109 ctags.c:        etags.c
110                 - $(DEL) ctags.c
111                 copy etags.c ctags.c
113 CTAGS_CFLAGS  = -DCTAGS $(ETAGS_CFLAGS)
114 $(BLD)\ctags.obj: ctags.c
115                 $(CC) $(CFLAGS) $(CTAGS_CFLAGS) -Fo$@ ctags.c
118 # don't know what to do with these yet...
120 # $(BLD)\sorted-doc.exe:        $(BLD)\sorted-doc.obj
121 # $(BLD)\yow.exe:               $(BLD)\yow.obj
122 # $(BLD)\emacstool.exe:         $(BLD)\emacstool.obj
123 # $(BLD)\leditcfns.exe:         $(BLD)\leditcfns.obj
124 # $(BLD)\server.exe:            $(BLD)\server.obj
125 # $(BLD)\cvtmail.exe:           $(BLD)\cvtmail.obj
126 # $(BLD)\digest-doc.exe:        $(BLD)\digest-doc.obj
127 # $(BLD)\emacsclient.exe:       $(BLD)\emacsclient.obj
128 # $(BLD)\test-distrib.exe:      $(BLD)\test-distrib.obj
131 # From ..\src\makefile.nt.
133 obj = abbrev.c alloc.c alloca.c buffer.c bytecode.c callint.c callproc.c casefiddle.c cm.c cmds.c charset.c coding.c category.c ccl.c data.c dired.c dispnew.c doc.c  doprnt.c editfns.c emacs.c eval.c fileio.c filelock.c filemode.c fns.c fontset.c indent.c insdel.c keyboard.c keymap.c lastfile.c lread.c macros.c marker.c minibuf.c xfaces.c mocklisp.c print.c process.c regex.c scroll.c search.c syntax.c sysdep.c term.c termcap.c tparam.c undo.c unexw32.c window.c xdisp.c casetab.c floatfns.c frame.c gmalloc.c intervals.c ralloc.c textprop.c vm-limit.c region-cache.c strftime.c w32.c w32console.c w32faces.c w32fns.c w32heap.c w32inevt.c w32proc.c w32reg.c w32menu.c w32select.c w32term.c w32xfns.c 
136 # These are the lisp files that are loaded up in loadup.el
138 lispsource = ../lisp/
140 FACE_SUPPORT = $(lispsource)facemenu.elc
141 MOUSE_SUPPORT = $(lispsource)select.elc $(lispsource)scroll-bar.elc
142 FLOAT_SUPPORT = $(lispsource)float-sup.elc
143 WINNT_SUPPORT = $(lispsource)ls-lisp.elc $(lispsource)w32-fns.elc $(lispsource)dos-w32.elc
145 lisp= \
146         $(lispsource)abbrev.elc \
147         $(lispsource)buff-menu.elc \
148         $(lispsource)byte-run.elc \
149         $(lispsource)cus-start.el \
150         $(lispsource)custom.elc \
151         $(lispsource)faces.elc \
152         $(lispsource)files.elc \
153         $(lispsource)textmodes/fill.elc \
154         $(lispsource)format.elc \
155         $(FACE_SUPPORT) \
156         $(MOUSE_SUPPORT) \
157         $(FLOAT_SUPPORT) \
158         $(lispsource)frame.elc\
159         $(X_WINDOWS_SUPPORT) \
160         $(lispsource)help.elc \
161         $(lispsource)indent.elc \
162         $(lispsource)isearch.elc \
163         $(lispsource)emacs-lisp/lisp-mode.elc \
164         $(lispsource)emacs-lisp/lisp.elc \
165         $(lispsource)loadup.el \
166         $(lispsource)loaddefs.el \
167         $(lispsource)map-ynp.elc \
168         $(lispsource)menu-bar.elc \
169         $(lispsource)international/mule.elc \
170         $(lispsource)international/mule-conf.el \
171         $(lispsource)international/mule-cmds.elc \
172         $(lispsource)international/characters.elc \
173         $(lispsource)language/chinese.elc \
174         $(lispsource)language/cyrillic.elc \
175         $(lispsource)language/devanagari.elc \
176         $(lispsource)language/english.elc \
177         $(lispsource)language/ethiopic.elc \
178         $(lispsource)language/european.elc \
179         $(lispsource)language/greek.elc \
180         $(lispsource)language/hebrew.elc \
181         $(lispsource)language/indian.elc \
182         $(lispsource)language/japanese.elc \
183         $(lispsource)language/korean.elc \
184         $(lispsource)language/lao.elc \
185         $(lispsource)language/thai.elc \
186         $(lispsource)language/tibetan.elc \
187         $(lispsource)language/vietnamese.elc \
188         $(lispsource)language/misc-lang.elc \
189         $(lispsource)textmodes/page.elc \
190         $(lispsource)textmodes/paragraphs.elc \
191         $(lispsource)paths.el \
192         $(lispsource)register.elc \
193         $(lispsource)replace.elc \
194         $(lispsource)simple.elc \
195         $(lispsource)startup.elc \
196         $(lispsource)subr.elc \
197         $(lispsource)textmodes/text-mode.elc \
198         $(lispsource)vc-hooks.elc \
199         $(lispsource)ediff-hook.elc \
200         $(VMS_SUPPORT) \
201         $(MSDOS_SUPPORT) \
202         $(WINNT_SUPPORT) \
203         $(lispsource)window.elc \
204         $(lispsource)version.el
207 DOC           = DOC 
208 $(DOC):         $(BLD)\make-docfile.exe
209                 - $(DEL) $(DOC)
210                 $(BLD)\make-docfile -d ..\src $(obj) > $(DOC)
211                 $(BLD)\make-docfile -d ..\src $(lisp) >> $(DOC)
212                 $(CP) $(DOC) ..\etc\DOC-X
213                 - mkdir ..\src\$(OBJDIR)
214                 - mkdir ..\src\$(OBJDIR)\etc
215                 $(CP) $(DOC) ..\src\$(OBJDIR)\etc\DOC-X
217 {$(BLD)}.obj{$(BLD)}.exe:
218                 $(LINK) -out:$@ $(LINK_FLAGS) $*.obj $(LIBS)
221 # Build the executables
223 all:            $(BLD) $(ALL) $(DOC)
226 # Assuming INSTALL_DIR is defined, build and install emacs in it.
228 INSTALL_FILES = $(ALL)
229 install:        $(INSTALL_FILES)
230                 - mkdir $(INSTALL_DIR)\bin
231                 $(CP) $(BLD)\etags.exe $(INSTALL_DIR)\bin
232                 $(CP) $(BLD)\ctags.exe $(INSTALL_DIR)\bin
233                 $(CP) $(BLD)\hexl.exe $(INSTALL_DIR)\bin
234                 $(CP) $(BLD)\movemail.exe $(INSTALL_DIR)\bin
235                 $(CP) $(BLD)\fakemail.exe $(INSTALL_DIR)\bin
236                 - mkdir $(INSTALL_DIR)\etc
237                 $(CP) $(DOC) $(INSTALL_DIR)\etc
240 # Maintenance
242 clean:;         - $(DEL) *~ *.pdb DOC*
243                 - $(DEL) *.orig *.rej *.crlf ctags.c
244                 - $(DEL_TREE) deleted
245                 - $(DEL_TREE) obj
246                 - $(DEL_TREE) obj-spd
249 # Headers we would preprocess if we could.
251 ..\src\config.h:        ..\nt\$(CONFIG_H)
252                         $(CP) $** $@
253 ..\src\paths.h:         ..\nt\paths.h
254                         $(CP) $** $@
256 ### DEPENDENCIES ###
258 EMACS_ROOT      = ..
259 SRC             = .
261 $(BLD)\alloca.obj : \
262         $(SRC)\alloca.c \
263         $(EMACS_ROOT)\src\s\ms-w32.h \
264         $(EMACS_ROOT)\src\m\intel386.h \
265         $(EMACS_ROOT)\src\config.h \
266         $(EMACS_ROOT)\src\blockinput.h
268 $(BLD)\b2m.obj : \
269         $(SRC)\b2m.c \
270         $(EMACS_ROOT)\src\s\ms-w32.h \
271         $(EMACS_ROOT)\src\m\intel386.h \
272         $(EMACS_ROOT)\lib-src\..\src\config.h
274 $(BLD)\ctags.obj : \
275         $(SRC)\ctags.c \
276         $(EMACS_ROOT)\nt\inc\sys\param.h \
277         $(EMACS_ROOT)\src\s\ms-w32.h \
278         $(EMACS_ROOT)\src\m\intel386.h \
279         $(EMACS_ROOT)\lib-src\..\src\config.h \
280         $(SRC)\ntlib.h \
281         $(SRC)\getopt.h
283 $(BLD)\cvtmail.obj : \
284         $(SRC)\cvtmail.c
286 $(BLD)\digest-doc.obj : \
287         $(SRC)\digest-doc.c
289 $(BLD)\emacsclient.obj : \
290         $(SRC)\emacsclient.c \
291         $(EMACS_ROOT)\src\s\ms-w32.h \
292         $(EMACS_ROOT)\src\m\intel386.h \
293         $(EMACS_ROOT)\lib-src\..\src\config.h
295 $(BLD)\emacsserver.obj : \
296         $(SRC)\emacsserver.c \
297         $(EMACS_ROOT)\src\s\ms-w32.h \
298         $(EMACS_ROOT)\src\m\intel386.h \
299         $(EMACS_ROOT)\lib-src\..\src\config.h \
300         $(EMACS_ROOT)\nt\inc\sys\file.h
302 $(BLD)\emacstool.obj : \
303         $(SRC)\emacstool.c \
304         $(EMACS_ROOT)\nt\inc\sys\file.h
306 $(BLD)\etags.obj : \
307         $(SRC)\etags.c \
308         $(EMACS_ROOT)\nt\inc\sys\param.h \
309         $(EMACS_ROOT)\src\s\ms-w32.h \
310         $(EMACS_ROOT)\src\m\intel386.h \
311         $(EMACS_ROOT)\lib-src\..\src\config.h \
312         $(SRC)\ntlib.h \
313         $(SRC)\getopt.h
315 $(BLD)\fakemail.obj : \
316         $(SRC)\fakemail.c \
317         $(SRC)\ntlib.h \
318         $(EMACS_ROOT)\src\s\ms-w32.h \
319         $(EMACS_ROOT)\src\m\intel386.h \
320         $(EMACS_ROOT)\lib-src\..\src\config.h \
321         $(EMACS_ROOT)\nt\inc\pwd.h
323 $(BLD)\getdate.obj : \
324         $(SRC)\getdate.c \
325         $(EMACS_ROOT)\src\s\ms-w32.h \
326         $(EMACS_ROOT)\src\m\intel386.h \
327         $(EMACS_ROOT)\src\config.h \
328         $(MSTOOLS_SYS)\types.h
330 $(BLD)\getopt.obj : \
331         $(SRC)\getopt.c \
332         $(EMACS_ROOT)\src\s\ms-w32.h \
333         $(EMACS_ROOT)\src\m\intel386.h \
334         $(EMACS_ROOT)\src\config.h \
335         $(SRC)\ntlib.h \
336         $(SRC)\getopt.h
338 $(BLD)\getopt1.obj : \
339         $(SRC)\getopt1.c \
340         $(EMACS_ROOT)\src\s\ms-w32.h \
341         $(EMACS_ROOT)\src\m\intel386.h \
342         $(EMACS_ROOT)\src\config.h \
343         $(SRC)\getopt.h
345 $(BLD)\hexl.obj : \
346         $(SRC)\hexl.c
348 $(BLD)\leditcfns.obj : \
349         $(SRC)\leditcfns.c
351 $(BLD)\make-docfile.obj : \
352         $(SRC)\make-docfile.c \
353         $(EMACS_ROOT)\src\config.h
355 $(BLD)\make-path.obj : \
356         $(SRC)\make-path.c
358 $(BLD)\movemail.obj : \
359         $(SRC)\movemail.c \
360         $(EMACS_ROOT)\src\s\ms-w32.h \
361         $(EMACS_ROOT)\src\m\intel386.h \
362         $(EMACS_ROOT)\lib-src\..\src\config.h \
363         $(EMACS_ROOT)\nt\inc\sys\file.h \
364         $(EMACS_ROOT)\src\vmsproc.h \
365         $(EMACS_ROOT)\lib-src\..\src\syswait.h \
366         $(EMACS_ROOT)\nt\inc\pwd.h \
367         $(SRC)\ntlib.h
368                 $(CC) $(CFLAGS) -DUSG -Fo$@ movemail.c
370 $(BLD)\ntlib.obj : \
371         $(SRC)\ntlib.c \
372         $(SRC)\ntlib.h \
373         $(EMACS_ROOT)\nt\inc\pwd.h
375 $(BLD)\pop.obj : \
376         $(SRC)\pop.c \
377         $(SRC)\pop.h \
378         $(SRC)\ntlib.h
380 $(BLD)\profile.obj : \
381         $(SRC)\profile.c \
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)\src\vmstime.h \
386         $(EMACS_ROOT)\lib-src\..\src\systime.h
388 $(BLD)\qsort.obj : \
389         $(SRC)\qsort.c
391 $(BLD)\sorted-doc.obj : \
392         $(SRC)\sorted-doc.c
394 $(BLD)\tcp.obj : \
395         $(SRC)\tcp.c
397 $(BLD)\test-distrib.obj : \
398         $(SRC)\test-distrib.c
400 $(BLD)\timer.obj : \
401         $(SRC)\timer.c \
402         $(EMACS_ROOT)\src\s\ms-w32.h \
403         $(EMACS_ROOT)\src\m\intel386.h \
404         $(EMACS_ROOT)\lib-src\..\src\config.h
406 $(BLD)\yow.obj : \
407         $(SRC)\yow.c \
408         $(EMACS_ROOT)\lib-src\..\src\paths.h